Hello-
I’m newly transitioning from AS2 to AS3 and had a question in regards to controlling external swfs. Basically, I have one container swf, that cycles through an array loading in several external swf files into a MC called “content_holder”. Once an external swf is complete, the user then clicks “next” and proceeds to the next swf, and so on…
I need to find out a way to be able to pause and play the external swf files from the main container movie. When the pause button is pressed, I would like for all external animations and sound to freeze. Then, when the play button is pressed, I would like the external movie to resume from the same location it was at when paused, both animation and sound. Some of the external files have embedded sound, and others load it externally via AS. I would like for this to be a toggle button, but I can figure that out as long as I understand the concept of pause/play functionality of external swfs from the main movie.
This is my code that I use to load the externals swfs, if this helps… I also have a listener for the Loader to detect when load is complete. The swfs loading into “content_holder” are what I need to pause/play.
//load first swf
var swfRequest:URLRequest = new URLRequest(contentArray[currentIndex]);
content_holder.load(swfRequest);
How can I create and control a pause/play feature for external swfs from the main movie? Any help/advice would be greatly appreciated!
Thanks much!