AS loops MC flash MX or 5

Hi, does anyone know how to loop a movie clip 3 times and then go away? The thing is a MC with 17 layers, i want to be able to loop them all 3 times and then go away.

i know the go away part is the stop() ; but i dont know where to put it and i dont know where to put the AS if i can loop this clip.

I would really appriciate your help

-Ryan

uh… try something like this


///// first frame////
i++
///// last frame////
if (i==3) { 
stop() 
} else { 
gotoAndPlay(1) 
}

okay, that looped it. Thank you

Ummm do u know how to get the movie to go away after it is looped?

Thanks

///// REPLACE 
stop()
///// BY
this.clear()

thanks for the reply, but the this.clear() didnt do it. The movie didnt stop or clear.

Thanks for helpin me

oh… sorry… you should use

this.unloadMovie()

:slight_smile:

this.removeMovieClip()

:wink:

or that… =)

thanks for helpin me :slight_smile: