PDA

View Full Version : Urgent help needed!


rajeshsivapalan
12-14-2004, 09:03 AM
:confused: Doubt regarding loop...

Hi All,
Seasons greetings...

I am facing a problem in flash animation and giving action script.

if i make a movie of 70 frames of simple animation...say for example a ball moving from one place to another. I give different kind of animation from 25 to 45 frames. I give gotoAndPlay(25); .....I want this process to continue only 2 times and then movie to move ahead from 46 frame..

How to do that?

please help!

__________________
regards
Rajesh from India.
Web designer

bradyj
12-16-2004, 09:47 PM
I'm a little confused, so help me clarify.

You want the ball to bounce 25 frames, bounce another 25 frames, then stop bouncing? Why not make three layers in your timeframe -- duplicates of each other. The first layer is 25 frames of animation and then there's no more frames -- the next layer is blank for the first 25 frames, and then does 25 frames of animation, then no more frames. The third layer is blank for 50 frames and then does what it needs to do, that way you don't have to fiddle with actionscript -- though actionscript is useful... sometimes when you do simple animations, it's just best to do a simple solution for later.

Am I off here or is it something else:)?