Jump to content


Photo

looping animation @ end of an intro


  • Please log in to reply
2 replies to this topic

#1 chadmw7

chadmw7

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 10 August 2008 - 11:21 PM

I'm working on a flash intro now that I've almost finished and I'm trying to get past one thing... At the end of the intro, the button comes up that gives you the option to watch it again. When that happens, I would like to have an animation on the end that repeats until you select something. So far I've put the animation into a MC and then put that on the timeline at the end. It plays it but it repeats back to the beginning of the intro instead of repeating to the beginning of the last mc. I was thinking that movie clips repeat themselves if you don't tell them not to. Is there some code I have to put in to tell it to repeat? That may not be enough information so far but can anyone offer any suggestions?

#2 chadmw7

chadmw7

    Young Padawan

  • Members
  • Pip
  • 2 posts

Posted 11 August 2008 - 08:28 AM

Ok, here's an update...I tried a few things after posting this last night and after digging and reading a little more. What I did get to work is this - I put a gotoAndPlay(578); at the end. Of course, you can tell that I put it in the main scene instead of the MC. The first thing I tried was putting a gotoAndPlay(1); in the MC which seemed like the cleanest way to do it but I couldn't get it to work that way. Whenever I previewed it, it looped back to the beginning of the whole intro even though I put the code in the MC. Can you think of any reason that it would do that?

Also, even though I got it to loop the other way, it still needs a little help. It looks okay but when it loops, there's a skip or a pause or something. You can definitely tell the point at which it loops. It almost looks like there's a single solid black frame or something. When I shuttle through the timeline, there's nothing like that in the main Scene or the MC. I really need the loop to be smooth. Any thoughts there?

#3 Spide®™

Spide®™

    P2L Jedi

  • Members
  • PipPipPip
  • 767 posts
  • Gender:Male
  • Location:UK England

Posted 12 August 2008 - 10:53 AM

gotoAndPlay(1); will be telling your whole flash file to goto and play from frame 1
I think it would be better to give your MC's instence names, and tell the AS what to do that way

Did you try
Putting

stop();

gotoAndPlay(578);

in the first MC

This will tell your flash to play the intro, then stop, and goto and play next looping animation

I'am not good at all with AS, but that sounds kinda right to me ( i think )




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users