SXFlump

author:
Levi Eggert
description:
Parses Flump exports into Sparrow runtime
compatible:
v2.0
tag:
flump, runtime

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

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