A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Unload anything in a specific movieclip?

  1. #1
    Goober JulieOolie's Avatar
    Join Date
    Mar 2003
    Location
    So Cal
    Posts
    129

    Unload anything in a specific movieclip?

    I have a blank movie clip in my main movie that on the click of some buttons will load something into it, but when other buttons are clicked I need to make whatever is in there unload. Is there a way you can tell it to unload whatever is in that movie clip? Or do I need to just write out an if/else statement to check whats there and unload it?
    <3 Julie

    AIM: Julie3360
    YIM: TheAtarisR0ck

    I'm always asking for help so I thought it would be appropriate to give a big THANK YOU to anyone who's ever helped me!

  2. #2
    Senior Member
    Join Date
    Nov 2003
    Posts
    524
    Hi,
    When you load something new into a movie clip it replaces everthing that was in there. So no need to unload it.everything

  3. #3
    Goober JulieOolie's Avatar
    Join Date
    Mar 2003
    Location
    So Cal
    Posts
    129
    Hi, I noticed that it does that but I have two movie clip that I am loading things into some buttons will load things into both, other buttons will only load things into 1. So on the buttons that are only loading something into 1, I need to find a way to make sure that whatever is in the other MC is unloaded. Any ideas?
    <3 Julie

    AIM: Julie3360
    YIM: TheAtarisR0ck

    I'm always asking for help so I thought it would be appropriate to give a big THANK YOU to anyone who's ever helped me!

  4. #4
    Member
    Join Date
    Nov 2003
    Location
    Netherlands
    Posts
    91
    Use unloadMovie("target"), or MovieClip.unloadMovie();

    No need for an if statement.
    (You can't really go wrong with Actionscript anyway)
    Ha, ha! He is one of the Legion Lost;
    He was never meant to win;

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