PDA

View Full Version : AS loops MC flash MX or 5



soccerstar
March 24th, 2003, 08:31 PM
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

ahmed
March 24th, 2003, 09:13 PM
uh.. try something like this

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

soccerstar
March 24th, 2003, 09:22 PM
okay, that looped it. Thank you

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

Thanks

ahmed
March 24th, 2003, 09:23 PM
///// REPLACE
stop()
///// BY
this.clear()

soccerstar
March 24th, 2003, 09:29 PM
thanks for the reply, but the this.clear() didnt do it. The movie didnt stop or clear.

Thanks for helpin me

ahmed
March 24th, 2003, 09:37 PM
oh.. sorry... you should use
this.unloadMovie() :)

senocular
March 24th, 2003, 09:39 PM
this.removeMovieClip()

;)

ahmed
March 24th, 2003, 09:43 PM
or that.. =)

soccerstar
March 24th, 2003, 10:28 PM
thanks for helpin me :)