Animating in a circle using ActionScript 3.0

  1. 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.
  2. 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.
  3. 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.
  4. 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”.
  5. 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>

<![CDATA[

Function(objlD)[

Try

Bookmark and Share
Share This Post
Subscribe to comments Comment | Trackback |
Post Tags:

Browse Timeline




Your Ad Here

Add a Comment


XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


© Copyright 2007 art,website and SEO . Thanks for visiting!