//grab stage and juggler SPStage *stage = Sparrow.stage; SPJuggler *juggler = Sparrow.juggler; //grab SXFlumpLibrary Singleton SXFlumpLibrary *library = [SXFlumpLibrary instance]; //load export or exports [library loadFlumpExports:[NSArray arrayWithObjects:@"test3.xml", nil]]; //grab movie from export SXFlumpMovie *movie = [library getFlumpMovie:@"test3.xml" :@"myMovie"]; //Then just like a SPMovieClip add to juggler [juggler addObject:movie]; [stage addChild:movie]; [movie play]; // listen for the COMPLETED event (dispatched once per loop) [movie addEventListenerForType:SP_EVENT_TYPE_COMPLETED block:^(id event) { printf("\ncompleted"); }];
No comments so far. Feel free to edit this part of the page.