Posted: Mon Dec 22, 2014 9:23 am
Post subject: Loader ispring output file to a as3 project
|
|
I am using ispring pro7 right now. What i need to do is import a ispring outputed swf file to the beginning of my as3 project. And the difficulty that i find was i dont know when the ispring output swf was finished.
Please see the following as3 code: I find a solution that count the mouse click to check whether the imported file is ended or not. But that is not suitable for me because the slide show of the Is there any way that i can check the swf slide show was ended and play the next slide of my as3 project?
Sorry for my bad English. Hope you guys can understand what i mean. Thanks all.
stop(); var myLoader:Loader = new Loader(); // create a new instance of the Loader class var url:URLRequest = new URLRequest("ppt2ispringfile.swf"); myLoader.load(url); addChild(myLoader);
stage.addEventListener(MouseEvent.CLICK,mouseClicked);
var counter = 8; // total movement of the ppt var currentcount = 0;
function mouseClicked(ev:MouseEvent):void { if (currentcount == counter){ myLoader.unload(); removeChild(myLoader); //myLoader.unloadAndStop(); nextFrame(); } currentcount +=1; trace(currentcount); }
|