PDA

View Full Version : getting out of duplicated mc's


4starters
10-19-2001, 11:17 AM
Hi there,

I just started to study actionscript.
I made a mc, duplicated it several times and something has to be done in every frame, so I wrote:

onClipEvent (enterFrame) {
if (!endcondition){
if (condition == true) {
do something....
}
else{
removeMovieClip("one of the duplicated")
}
}
else{
gotoAndPlay("nextscene",1);
}
}

When certain conditions are met, I want to leave the current scene and proceed to the next one. With the code above, it doesn't work, does somebody know what I'm doing wrong?

thnx in advance