Author Message

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);
}


Profile profile test

Posted: Mon Dec 22, 2014 2:58 pm   Post subject: Re: Loader ispring output file to a as3 project

Thank you for posting here!

Our specialist will contact you via email. Thank you for your patience!


Profile profile test
Display posts from previous:  Sort by  

  


Who is online
Who is online In total there are 11 users online :: 3 registered, 0 hidden and 8 guests (based on users active over the past 5 minutes)
Most users ever online was 108 on Thu Nov 21, 2013 3:41 pm

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]