~~NOTOC~~ ====== SXFlump ====== ---- dataentry extension ---- author_mail : levi_eggert@hotmail.com Levi Eggert description : Parses Flump exports into Sparrow runtime # enter a short description of the extension lastupdate_dt : # the date you created the extension compatible : v2.0 # the Sparrow version you tested the extension with depends : # if the ext. depends on others, list them here tags : flump, runtime # enter a few tags, separated by commas homepage_url : # if the ext. has an URL (e.g. a Gist-page), add it here download_url : # a direct link to the download (e.g. the Gist-archive) ---- ===== Usage ===== //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"); }]; ===== Changelog ===== * //2013/06/24 22:34//: First public version ===== Source Code ===== https://github.com/levieggert/SXFlump ===== Discussion ===== //No comments so far. Feel free to edit this part of the page.//