A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Deleting a movieclip

  1. #1
    Wazap. Check out my site.
    Join Date
    Jan 2007
    Posts
    7

    Deleting a movieclip

    I need to know the action script to delete a movieclip if I click on it. I need to delete it write out of the animation, so it can't be seen again, or perform its duties that it was going to do.

  2. #2
    Hey Timmy!!! walsher's Avatar
    Join Date
    Jan 2005
    Location
    Latrobe, PA
    Posts
    1,899
    Well that well depend if its dynmatically loaded or just there. If its loaded you'll need to use removeMovieClip(). Its in the timeline all ready, I'd recommand using the _visible property and setting it to false.

  3. #3
    Wazap. Check out my site.
    Join Date
    Jan 2007
    Posts
    7
    AAAHHHH!!! I don't understand! I tried it, but it STILL doesn't work! AAHH! I HATE FLASH MX! AAHH! AAAAHHHH!

  4. #4
    Hey Timmy!!! walsher's Avatar
    Join Date
    Jan 2005
    Location
    Latrobe, PA
    Posts
    1,899
    Well how is the movieclip on the screen. Did you physical put it there or did you use action script?

  5. #5
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    fwiw...you can remove a clip (set physically or dynamically) by first swapping its
    depth, then using removeMovieClip -

    myClip.swapDepths(10000);
    myClip.removeMovieClip();

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