*Note - this article is now being retired due to Adobe scrapping their Flash Player in 2020.
Please click here for the HTML5 version of this article
Adobe Flash CS was rich in its capabilities of creating animation. One of the things it has the capability to do is to create a motion along a random path called a motion guide. There are many tutorials on how to create a motion guide using the flash tools but this tutorial will explain how to do it solely using actionscript. The reason that I wrote this article is that I have found it easier (and cleaner) in the long run to use my own function to animate an object instead of the GUI tools. The GUI tools are great when first learning and also in many situations but when doing a lot of animation causing the stage to get messy, sometimes it may be better to do it programatically.
This tutorial is for those who already have some Adobe Flash/Actionscript 3 programming experience.
You can download the
.FLA file before proceeding and reference the tutorial for explanations. All code is in Frame 1.
To Download...Right click, Save Target As -->
motionguide.fla