remove movie clip help
- ColdLogic
-
ColdLogic
- Member since: Nov. 12, 2003
- Offline.
-
- Forum Stats
- Member
- Level 19
- Blank Slate
for(a=1;a<10;a++) {
_root["enemy-2-"+a].removeMovieClip();
removeMovieClip(_root["enemy-2-"+a]);
}
these are supposed to remove the clips, but its not working for some reason and comeing up with 0 errors, what am I doing wrong, Ive seen other post both those methods in example, but neither works for me, Im useing AS2. could anyone help me out?
the instance name is correct and the MCs are duplicated at runtime.
- Denvish
-
Denvish
- Member since: Apr. 25, 2003
- Offline.
-
- Send Private Message
- Browse All Posts (15,977)
- Block
-
- Forum Stats
- Member
- Level 46
- Blank Slate
At 2/11/09 09:53 AM, ColdLogic wrote: for(a=1;a<10;a++) {
_root["enemy-2-"+a].removeMovieClip();
removeMovieClip(_root["enemy-2-"+a]);
}
Try
_root["enemy-2-"+a].removeMovieClip();
- ColdLogic
-
ColdLogic
- Member since: Nov. 12, 2003
- Offline.
-
- Forum Stats
- Member
- Level 19
- Blank Slate
thanks that did work heh stupid mistake


