-
How to stop() a mc loaded with createEmptyMovieClip()?
Subject pretty much says it all...
createEmptyMovieClip("container", this.getNextHighestDepth());
container.loadMovie("path/to/someMovie.swf");
ok... now how can I:
a.) stop(); (or equivelent) someMovie.swf?
b.) get the basics about someMovie.swf, like .currentFrame and .totalFrames?
This shouldn't make me bang my head on the wall, but it does!
TIA!
pat
-
Senior Member
The reason you can't stop it or get total frames is because at the time you issued a loadMovie call the swf hasn't yet loaded by the next line. Such things in flash are asynchronous and they happen later. You can use MovieClipLoader, if you don't know how to use it look in the flash docs. You can have a function you wrote get called by MovieClipLoader instance when the swf has done loading and from that point on you can do whatever you want with it.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|