I am loading an external swf that is just an animation. When I open a section in my app, I want that swf to stop playing. I cant manage to figure out how to stop it. Here is my function to load the swf
any idea?PHP Code:var target:String = "data/clouds.swf";
var req:URLRequest = new URLRequest(target);
var ldr:Loader = new Loader();
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE, cloudsHandler);
ldr.load(req);
cloudHolder.addChild(ldr);
//then trying to stop it
function buildVideo():void
{
var c = cloudHolder.getChildAt(0);
c.content.stop(); //this does not work
}


Reply With Quote