by rickybernecker on November 11th, 2007

rickybernecker

Question

Help answer this question below.

I am using Flash 8 to make a solar system.
planets need to move at different speeds, but i don't want to have to insert so many keyframes for the fast moving planets.
is there an actionscript that would let me repeat an orbit a given number of times?

  • Like
  • Report

Answers. 1 helpful answer below.

  • by KevinW42 on November 24th, 2007

    KevinW42

    First draw your planet. Select it and press F8. Choose movie clip and click OK. Double click the planet. You are now in the movie clip time line. Make the planet do one orbit and SINGLE click anywhere off the planet. Open the script window and insert this code:

    var i;
    i++; // counts number of times movie clip has played
    if (i >= <number>) {
    stop(); // stops movie clip after <number> of repeats
    }

    • Like
    • Report

    No comments. Post one | Permalink

Want to attach an image to your answer? Click here.

Did this answer your question? If not, then ask a new question or create a poll.

More Questions. Additional questions in this category.

You're reading I am using Flash 8 to make a solar system. planets need to move at different speeds, but i don't want to have to insert so many keyframes for the fast moving planets. is there an actionscript that would let me repeat an orbit a given number of times?

Follow us on Facebook!

Related Ads

ANSWERBAG BUZZ

How to make solar system in flash
Solar system in flash 8
Make solar system flash
How to create solar system in flash
Solar system flash