Animating in a circle using ActionScript 3.0
- First you need to find or create an image no bigger then 150×200 pixels. Import that into the library, open up your library and drag it onto the stage.
- Then, if need be you can scale your image down by selecting it. Press Ctrl+Alt +S at the same time to scale your image down 50 percent.
- Then click on your image and press F8 to convert it to a Movie Clip, making sure your registration point is centred . Then delete your Movie Clip from the stage.
- Open up your library and right click on your Movie Clip and select linkage and choose ‘Export for ActionScript ‘ and name the class “Image” with a capital”I”.
- Now name your only layer “Action”, press F9 to open up your actions panel and copy the ActionScript that is. Then Ctrl+Enter to test your movie.
Using Code injection to write with Javascript code in your AS file.
When playing with ExternalInterface.call(), sometimes you need to do more than just calling a function. For instance you can define a Javascript function that you’ll be using later. ??
This is simply done by using an XML:
Var initObJS:XML=
<script>
<


