AS3Tip: Tween in AS3.0 project
Wednesday, July 25th, 2007- AS3Tip: Tween in AS3.0 project
- FlexTips
- FlexTip: Preventing CheckBox selection with Key.SPACE
- FlexTip: mx:Text vs. mx:TextArea
- FlexTip: Problem with masks and scalable Flash
- FlexTip: WordWrap for mx:Text
- Useful Flex tips
- FlexTip - Stop displaying Focus
- FlexTip: Add Thumbs to Mx:Slider programatically
- FlexTips: How to add Bitmap to UIComponent
- FlexTip: XMLSocket connect() after disconnect from server
If you want make just pure AS3.0 project, not Flex project, there is problem with Tween. Adobe has not included Tween to pure AS3.0 project, it’s included in Flex framework library (at least I don’t know something). So you have few possibilites how to use Tween in your project. By including Flex framework library, make your own Tween Class, or use any already built framework, packages which has custom Tween class inside.
Let me know, how you are using Tween in your AS3.0 projects, maybe you will help someone.
Here is list of already build Tween classes for you (I will update it, when someone point out new class):
tagged under: ActionScript.AS3 Tip.Tween





1 Trackbacks/Pingbacks
5 Comments
Kevin Hoyt
• Visit Site
July 25th, 2007
There’s a cool feature in Flash CS3 called “Export Motion XML” which I’ve written about on my blog. In my example, I use the XML in Flex, but there’s no reason the classes and XML couldn’t be used in pure AS3 projects as well. This does a lot more than just tween, and may be worth looking into.
Regards,
Kevin Hoyt
Platform Evangelist
Adobe Systems, Inc.
Tink
• Visit Site
July 25th, 2007
You can add the Flash ActionScript 3.0 library and use
fl.transitions.Tween
fl.motion.Motion
Joey van Dijk
• Visit Site
December 13th, 2007
Hi there,
I saw some tips from Colin Moock with Flex Builder 2, but now having Flex Builder 3 it almost crashed my interface yesterday.
I really find it awkward that you can use Flex Builder for Actionscript project but they ‘forgot’ to implement the Tween classes?!
So is there a way to make it work in Flex Builder 3 and otherwise to point it out to Adobe?
This is important because if you want to create small fast Actionscript 3 projects I thought Flex Builder 3 would be the perfect editor for it on a Mac.
o’reilly
• Visit Site
January 15th, 2008
I had this problem too when I finally decided to move on from the Flash Authoring Tool to just a plain text editor and the free Flex SDK (why the move? because I began noticing that my projects were increasingly being done in pure ActionScript to the point where I no longer used the timeline).
Anyway, since I already had the authoring tool installed (and collecting dust), all I did to regain the beloved fl.transitions.Tween class was copy the fl package from C:\Program Files\Adobe\CS3\Adobe Flash CS3\en\Configuration\ActionScript 3.0\Classes and import them into my projects. Note: I don’t believe you can freely distribute the fl package because of licensing.
As for the Tween class in Flex (mx.effects package), I have no idea how to use it since the Tween in the fl package is what I’m used to.
Bailey
• Visit Site
January 28th, 2008
Well thats a bit of a pain. We programmers will get it one way or another!
Thanks o’reilly, worked for me.
Live Preview
Leave a comment