A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: loading and unloading movie question

  1. #1
    Junior Member
    Join Date
    Mar 2000
    Posts
    28
    I have an MC with 10 buttons, each button sends the main timeline to different frames. These frames each load a new movie into level 1. How do I send the main timeline (level 0) back to frame 1 when the movie unloads? What would be the most effecient way? I've tried a couple of ways and didn't succeed. Sorry, I am an Action Script newbie here, so explain well.

  2. #2
    Senior Member
    Join Date
    Jul 2000
    Posts
    254
    Originally posted by Bill
    I have an MC with 10 buttons, each button sends the main timeline to different frames. These frames each load a new movie into level 1. How do I send the main timeline (level 0) back to frame 1 when the movie unloads? What would be the most effecient way? .
    in the last frame of the movie in level 1, use.

    _level0.gotoAndStop(1);

    since you're targetting level 0, you just simply have
    a gotoAndWhatever...

    should work.
    //d

  3. #3
    Junior Member
    Join Date
    Mar 2000
    Posts
    28

    one more thought

    What about unloading the movie in level1? will this do it or do i need the unload move command in there as well? where would it go, before or after that line?

  4. #4
    Junior Member
    Join Date
    Mar 2000
    Posts
    28

    No wait

    I got it, thanks very much!

  5. #5
    Senior Member
    Join Date
    Jul 2000
    Posts
    254
    no problem. btw, imho, instead of unloading clips, you might
    consider hiding them by a)toggling the visibility when
    not in use through setProperty, or b) making a frame
    on the loaded clip that stops at blank space that you
    can target when the clip isn't in use. if the swf gets
    cached, there's usually (in more instances than not) no
    reason to unload it.

    glad i could help.

    /d/

  6. #6
    Junior Member
    Join Date
    Mar 2000
    Posts
    28

    really?

    so, if you're not unloading, what happens when the button is pressed that loads that movie? will it automatically play the loaded movie or try to load it again into the level it's already in?

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