PDA

View Full Version : DELETE / REMOVE >> duplicated MovieClips


jayoe
04-15-2009, 05:11 AM
i = 1812;
_root.mns1.mnasb1.onRelease = function() {
i++;
duplicateMovieClip(msp1, "msp1"+i, getNextHighestDepth());
eval("msp1"+i)._x = 0;
eval("msp1"+i)._y = -147;
eval("msp1"+i)._alpha = 100;
var nclip = eval("msp1"+i);



I got this ActionScript that makes duplicated MovieClips.

So I end up with a bunch of MovieClips.

Anyways.

There's MovieClips I want to keep on screen and MovieClips I don't want.

I want to be able to click on special DELETE BUTTON then have which ever MovieClip I click on next disappear/Delete/Remove etc..

How could I do this..

bluemagica
04-15-2009, 05:40 AM
this.onMouseDown = function()
{
this.removeMovieClip();
}

jayoe
04-15-2009, 06:07 AM
That won't work either. Thanks for your help but no thanks for future reference.

kkbbcute
04-15-2009, 06:51 AM
Make sure you put bluemagica's code in the mc itself. ;)

jayoe
04-15-2009, 08:41 AM
It's alot more complicated than that.

These MovieClips are duplicates of other MovieClips and are dragged and positioned around on the stage, some are keepers and some aren't.

I read somewhere that when you duplicate a MovieClip actions applied to it aren't carried on in it's duplicate/clone.. And again some are keepers and some aren't.

So applying such a code would not work etc..

I know this would involve some MovieClip cursor over information extraction onEnterFrame Remove.MovieClip yada yada. However I'm not to familiar with ActionScripts full spectrum of code variables etc.. So I'm posting here for tips hints using this site just what it's for, NOT smartass remarks.

If your not gonna help don't bother!

kkbbcute
04-15-2009, 01:41 PM
If your not gonna help don't bother!

Don't use that kind of attitude, bluemagica may have been harsh to you, but you don't extend that tone to other forum members.

If I wasn't helping you (clarifying your code placement) would I even be asking that question? Please be more considerate to the people who are helping you.

bluemagica
04-15-2009, 05:41 PM
That won't work either. Thanks for your help but no thanks for future reference.
did you even try it?

So applying such a code would not work
you are supposed to put the code, "in" the movieclip, not "on" it! Put that in the timeline inside the mc!

jayoe
04-15-2009, 10:30 PM
kkbbcute that was a general message to everyone!
bluemagica I already told you no thanks and further comments are NOT welcome!