HODGEDEV FLASH BLOG

FlashDevelop3 R2 and the Flex 3.3 SDK video tutorial Part 02: Packages, Classes and drawing API, oh my!

by Brian Hodge on Mar.19, 2009, under FlashDevelop

Click here to watch FlashDevelop3 R2 and the Flex 3.3 SDK Part 02: Packages, Classes and drawing API, oh my!

This part of the series starts off by displaying the Actionscript3 API site;

First, I explain where to learn information about things like Sprite and Event, which were automatically imported and implemented by FlashDevelop3 when we created our project.

Second, we head over to http://blog.greensock.com/ and download TweenMax, though we will only be using TweenLite today (TweenLite included with TweenMax download).

Third, we extract the package into our Actionscript3 class path folder, if you do not already have one, this is a common grounds for you to keep classes and packages, please create one, make note of where you created it, we will be requiring that path in FlashDevelop3 in the next step. Now extract the “gs” folder into the newly created class path folder.

Fourth, we head over to FlashDevelop3 and we select the project from the project tree, mine is on the right, right mouse click on the project name and go to properties. Once the popup arrives, head to the Classpaths tab, and click the Add Classpath button. Be sure to input the location of the class path. NOTE: This path does not include the “gs” folder at the end, we will reference packages in this classpath in their import lines.

Example:
import gs.TweenLite;

Fifth, we import the flash.display.Graphics class, create a new Sprite and draw to it using an instance of the Graphics class.

Sixth, we animate the Sprite we drew to using TweenLite. With one line of code, we have an easy to manage animation with a nice looking Elastic ease applied to it, and it only took twenty seconds to write the animation code out.

Stay tuned for part 03, I hope this is helpful.

:, ,

3 Comments for this entry

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...

Archives

All entries, chronologically...