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
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.
May 10th, 2009 on 1:33 pm
Good work! Thank you very much! I always wanted to write in my blog something like that. Can I take part of your post to my blog? Of course, I will add backlink?May 10th, 2009 on 4:32 pm
No problem, feel free to link to the video as well. Thanks for visiting.May 13th, 2009 on 8:42 am
Wow! Thank you very much! I always wanted to write in my site something like that