Actionscript loading swf into a container
- Started
- Last post
- 4 Responses
- CyBrain0
Just realized the gotoAndPlay function is working. I'm going to have to do an addChildAt line because my loaded movie is at the top and covering everything as the movie finishes.
- CyBrain0
Ok, I have it working. The if statement removes the listener when currentFrame == totalFrames, but gotoAndPlay("end") won't work. This is all a frame script on the shell root timeline.
- instrmntl0
is the timeline in the swf, or in the clip interactive_mc that is in swf?
- instrmntl0
interactiveContainer = MovieClip(loadEvent.currentTarge...
- CyBrain
I'm loading in a swf. I need to run an enterframe script to know when the loaded swf reaches totalFrames. The movie loads just fine, but when I try to trace out any properties of the loaded movie, (currentFrame compared to totalFrames) everything craps out.
Here's my code.
http://pastebin.com/zRuVSkRiIt shouldn't be impossible to control a loaded movie after loading it and getting it to play but I've been stumped for hours on this.
Any clues as to where I went wrong?