After using SWFLoader with autoPlay:false to load a swf and stop it's contents, how can you get the content to play later (on demand)?
Here's my set of loaded swf files...
var queue:LoaderMax = new LoaderMax({name:"mainQueue", onProgress:progressHandler, onComplete:completeHandler, onError:errorHandler});
queue.append( new SWFLoader("swfs/main.swf", {name:"mainClip", estimatedBytes:211461, container:container_mc, x:0, y:0, visible:false, autoPlay:false}) );
queue.append( new SWFLoader("swfs/promo1.swf", {name:"promo1", estimatedBytes:190440, container:container_mc, x:0, y:0, visible:false, autoPlay:false}) );
queue.append( new SWFLoader("swfs/promo2.swf", {name:"promo2", estimatedBytes:76251, container:container_mc, x:0, y:0, visible:false, autoPlay:false}) );
I see that there is a protected method in SWFLoader.as called _stopMovieClips(obj:DisplayObject) used when autoPlay==false, but I don't see a public method such as playMovieClips() to be used later if you have used autoPlay:false initially.
What is the best strategy for preloading several swfs with autoPlay set to false, then targeting one of these later and play() it's contents?
I'm loading in AS3 .SWF files that are timeline animations provided by a designer with no stop frames on them, so I need to use autoPlay:false, and want to trigger one to play at a later time (after loading is complete, of course).
I traced the following trying to pinpoint the loaded swf to target, but I'm having difficulty trying to get it to play...
trace((container_mc.getChildAt(0).name)); // mainClip
trace((container_mc.getChildAt(0).parent).name); // container_mc
trace((container_mc.getChildAt(0).parent.parent).name); // root1
trace((queue.content)); // [object ContentDisplay]
It's probably something very simple, I'm just not finding a quick solution in the documentation and I want to make sure that I do this the proper way, as intended by LoaderMax.
Thanks,
~K