A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Why, why, why?

  1. #1
    Master of all chickens kelfke's Avatar
    Join Date
    May 2003
    Location
    Belgium
    Posts
    114

    Why, why, why?

    I have a balloon. When I press on it it has to be removed. So I use this code.
    Code:
     
    on (press) {
    	_root.removeMovieClip("balloon1");
    }
    Now I wonna know why it doesn't work. Can anybody tell me that?

  2. #2
    Senior Member Lyra's Avatar
    Join Date
    Oct 2001
    Location
    South Africa
    Posts
    243
    as far as I can see, you can only "removeMovieClip" that you have loaded dynamically with script (attachMovie("blue", "blue1", 1); (frame action)
    then you need to put script (on a button) like this


    on(press){
    removeMovieClip("_root.blue1");
    }


    Is this true?

    When I test it,

    _root.removeMovieClip("blue1"); does not work, but removeMovieClip("_root.blue1"); does.

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