Be a Supporter!

remove movie clip help

  • 220 Views
  • 2 Replies
New Topic Respond to this Topic
ColdLogic
ColdLogic
  • Member since: Nov. 12, 2003
  • Offline.
Forum Stats
Member
Level 19
Blank Slate
remove movie clip help 2009-02-11 09:53:44 Reply

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.
Forum Stats
Member
Level 46
Blank Slate
Response to remove movie clip help 2009-02-11 11:25:42 Reply

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();


- - Flash - Music - Images - -

BBS Signature
ColdLogic
ColdLogic
  • Member since: Nov. 12, 2003
  • Offline.
Forum Stats
Member
Level 19
Blank Slate
Response to remove movie clip help 2009-02-11 12:03:47 Reply

thanks that did work heh stupid mistake