AS2 to AS3
- Started
- Last post
- 9 Responses
- ukit
What would be the equivalent of this in AS3?
import mx.transitions.Tween;
import mx.transitions.easing.*;new Tween(my_mc, "_alpha", Strong.easeIn, 0, 100, 1, true);
- spmitch0
TweenLIte
http://blog.greensock.com/tweenl…
- airey0
yeah get into tweenlite, it's pretty awesome.
- amullins0
a bit heavier but just as useful - http://code.google.com/p/tweener…
- ukit0
Thanks guys, I can always count on you
- no you can't nancy. we may all be playing a trick on you!airey
- funny guypensamente
- MediaPimp0
to directly answer your question...
import fl.transitions.*;
import fl.transitions.easing.*;everything else stays the same...
- +1. an actual answer?!? we don't get much of these round here...airey
- who is we here?pensamente
- MediaPimp0
oh.. one more thing... instead of "_alpha" it becomes "alpha" no more underscore in AS3
- pensamente0
funny that no one did answer the question
I'll try:
import fl.transitions.Tween;
import fl.transitions.easing.*;var myTween:Tween = new Tween(my_mc, "alpha", Strong.easeIn, 0, 100, 1, true);
I do like tween engines :)
- pensamente0
go as4! yeah
:B- this ego stuff that make we answer ourselfs with this kind of inner humorpensamente
- cs4 uses as3. hopefully as4 is years away. i'm struggling learning 3 ffs! (i am simple though)airey
- i just started AS3 and it is tough.jayoh
- TheFatBaron0
Also, alpha and similar properties are 0 to 1, not 0 to 100