A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: [Stuck] How to load one movie after another from a movie clip?

  1. #1
    Junior Member
    Join Date
    Jun 2006
    Posts
    15

    [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

  2. #2
    Junior Member
    Join Date
    Jun 2006
    Posts
    15
    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
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center