-
[Stuck] How to load one movie after another from a movie clip?
Learned experts,
Just upgraded to CS4/AS3, and I can't figure out how to load one .swf after another, allowing each to be run once, and only once. I don't think I should have to alter the target movies, as I should be ale to tell when the laoded movie is at it's last frame.
So I have an string[] that holds the filenames of the target swfs to load. In effect:
movieURL = "path/to/movie.swf";
mcHolder.loadMovie(movieURL, "mcHolder") // anchor Movie in Library
while (mcHolder._currentFrame < mcHolder._totalFrames) {
// let movie play once...
trace("mcHolder._currentFrame: " + mcHolder._currentFrame);
}
..on the main timeline. "mcHolder" is the exported, and instance, name of a blank Movie in the library. It is the only object in the main/parent movie.
But this does not work. All I want is to go through each movie, in the order of the array. I already know how to iterate through the Array.
What I need is a way to tell when the running movie is at the last frame so I can use loadMovie() to load another movie and run it.
I tried Loader(), but it was a real pain to get it work, and I never got close. I'm stuck!
TIA!
pat
-
I mis-spoke. I am using CS4, but dumbed my AS down to AS2. I figured it ould be easier...
I don't mind going to AS3, as long as it works!
pat
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
|