I’m trying to load a SWF and then tell it to play. I can’t seem to communicate with the loaded SWF to tell it to play. I’m probably not referencing it correctly. Any help is appreciated. Thx
import flash.display.*;
import flash.net.*;
import flash.events.*;
var myLoader:Loader = new Loader();
var myRequest:URLRequest = new URLRequest("home.swf");
myLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, loadComplete);
function loadComplete(event:Event):void {
addChild(myLoader);
[COLOR="Red"]myLoader.content.gotoAndPlay(2);[/COLOR]
}
myLoader.load(myRequest);