Be a Supporter!

Removing Linked MovieClips

  • 313 Views
  • 3 Replies
New Topic Respond to this Topic
scuddle666
scuddle666
  • Member since: Dec. 25, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Removing Linked MovieClips 2012-02-28 02:10:41 Reply

I'm currently attaching a blood splat movieclip in the position of a killed enemy. I have that part working fine, using

"_root.attachMovie("lblood", "blood"+_root.i, _root.d);
_root["blood"+_root.i]._x = this._x;
_root["blood"+_root.i]._y = this._y;
_root.i += 1;
_root.d += 1;"

The problem I'm having is once I move onto a separate frame/level, They remain there on the next screen. How would I go about removing them?

Thanks in advanced.

Wolfos
Wolfos
  • Member since: Jan. 19, 2008
  • Offline.
Forum Stats
Member
Level 25
Game Developer
Response to Removing Linked MovieClips 2012-02-28 05:19:43 Reply

ITT: ActionScript 2.
Damn, why you program like that?

scuddle666
scuddle666
  • Member since: Dec. 25, 2008
  • Offline.
Forum Stats
Member
Level 04
Blank Slate
Response to Removing Linked MovieClips 2012-02-28 19:37:37 Reply

At 14 hours ago, Wolfos wrote: ITT: ActionScript 2.
Damn, why you program like that?

What's wrong with the way I program?

Wolfos
Wolfos
  • Member since: Jan. 19, 2008
  • Offline.
Forum Stats
Member
Level 25
Game Developer
Response to Removing Linked MovieClips 2012-02-29 07:39:29 Reply

You program in multiple frames, why? You really should learn AS3 and OOP, frames are for animators.