A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: actionscripting question

  1. #1
    Junior Member
    Join Date
    May 2002
    Posts
    11
    I'm trying to load one movie clip, then another after the first is loaded kind of like this:

    (playingMC 1)
    --replaced by--
    (MC 2)
    --replaced by--
    (MC 3)

    Since (MC 3) is so large, it freezes the movie clip before it. So I want (MC 2) which says, "loading" on it to play and then be replaced by (MC 3).

    Here's my actionscript:

    on (release) {
    unloadMovieNum(1);
    loadMovieNum("/files/load.swf", 1);
    loadMovieNum("/files/demo.swf", 1);
    }

    However, when I run it what I get is:

    (playingMC 1)
    --replaced by--
    (MC 3)

    Basically, how can i get it to load (MC 2) then load (MC 3) afterwards?

    Thanks.

  2. #2
    Banned
    Join Date
    Apr 2001
    Location
    Montréal, Québec.
    Posts
    25,397
    When loading movies in the same holder clip or on the same level, you don't need to unload the previous movie, since the new movie will automatically replace the previous one.
    Rather than having both of your loadMovie actions on the same button script (which will get you in this kind of trouble!), what you should do is load movie 2 at the end of but in movie 1, and then load movie 3 at the end of movie 2.

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