gotoAndPlay("framelabel") certain amount of times

I am working on an animated character. It is fairly simple, when it gets to the last frame of the animation I would like it to go back to the ninth frame of the animation, which I have labeled as “nine” and play through that maybe 3 or 4 times.
What code would I add in to do this?

right now-
<hr>
gotoAndPlay(“nine”)
<hr>

thanks for any help
:cowboy:

you could set up some sort of variable and do an if else statement, like for each time it played it would add to that variable and not play after it reached that limit.

Well that sounds great, but I don’t know how to do that.

=)

Post the file real quick.

There is probably an extremly simple way to do this, so anyone else with an idea is free to put mine to shame. But…

I would stick with your goto and play “nine”, and on that frame i would put some actions. I would also add an empty mc with maybe 3 or 4 (or however many you want) keyframes with a stop on them and name the instance. The actions on “nine” would tell the mc to advance a frame. On the last frame inside the mc you can tell the main timeline to go to whatever frame is your ending one.

OK, i just read that back, and it made very little sense… if you cant work it out and no one else has a better idea, ill make u a quick example. Good luck.

http://www.kirupaforum.com/forums/showthread.php?s=&threadid=28692 :sigh:

oops, random hero beat me. Yeah, ignore me, listen to him.

too big…

okay Kax, (and everyone else thankyou)
you are referring me to the thread that is referred to in the thread that I am linking to right?
L
I just glanced through it quick and am going to try it. This is a stand alone mc, for now anyway, he (the character mc) might be his own swf or his own mc- there may not be another mc to refer to once it is finished playing.
That may not matter though, like I said I am going to go look more carefully.
thanks again
:s:

If you can’t get it to work, repost on this thread and I’ll take the time to build an example.

:stuck_out_tongue:

I posted a link to that thread because it’s still on the first page of the forums!! Which means you didn’t bother to search first. :-\

Anyway, you’re welcome. =)

:run:
I did search first…I did a search on loop, looping and could not find the info I wanted. I always search first…
Anyway, after that I was not sure what else to search for so I posted the thread

Whips Actionscript Troll

WA-KSSSH! WA-KSSSH!

Blah! Master says work, so work I shall…

:thumb:
it worked Kax…thanks everyone…
R.H. don’t whip the as troll too hard…L

man, and I got the troll up for nothing. oh well. For that, you’re puttin’ him back.

just for giggles, I finished it anyway.

ahhh cool.
you did it just a little different than the other example I used so now I know 2 ways to do it…

:smirk:

:crazy: