Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looping a simple motion tween 1

Status
Not open for further replies.

chazmania

Technical User
Jul 6, 2005
63
GB
Hi there,

This is pretty simple, (to all of you!) but I am using Flash MX.

I have created a simple short motion tween (ball moving across the stage) but I would like it to loop for the entire duration that the page is viewed.

If you have any advice, please break it down into newbie language! (I'm really new to actionscript etc)

Thanks is advice!

Chaz
 
The easiest way to loop your animation is... do nothing! If you do not place any script, your movie will loop forever.

If you want to use actions, here's how:
1. Create two extra layers in the timeline and name them "labels" and "actions"
2. Go to the first frame of your animation and select the frame in the "labels" layer
3. In the Property panel, type in "start" where it says <Frame Label>
4. Now you have a frame with a red flag with the label "start"
5. Go to the last frame of your animation and select the frame in the "actions" layer
6. Press F6 - this turns the frame to a key frame
7. Go to Actions panel: make sure it says "Actions - Frame"
8. Type in the script:
[tt]gotoAndPlay("start")[/tt]

If you want to loop your animation independent to your main timeline animation, you have to place your animation in a MovieClip and place the MovieClip in the main timeline.

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top