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