Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
extensions:sxflump [2013/06/24 22:47] – [Data entry] iosnighthawkextensions:sxflump [2015/09/14 11:14] (current) – external edit 127.0.0.1
Line 1: Line 1:
 +~~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 =====
 +
 +<code objc>
 +//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");
 +}];     
 +</code>
 +
 +===== 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.//
  extensions/sxflump.txt · Last modified: 2015/09/14 11:14 by 127.0.0.1
 
Powered by DokuWiki