View Full Version : I can't remember the code..
Unleash
October 24th, 2007, 10:16 AM
Well I know there is a simple line for easing effects, something like mx.transition(......;.....).
But I can't really remember, so do any of you lot know what this line is?
Charleh
October 24th, 2007, 11:52 AM
its a namespace which contains the object definitions
You can import the namespace into your project so that you dont need to full qualify it for the compiler to know which object you are talking about
I think the ones you want are in the mx.effects.easing namespace
You can add
import mx.effects.easing.*; at the top of your class definition to avoid having to use mx.effects.easing every time you want to use an easing component (you dont have to type all that out once its imported, just use the object name)
edit:
import mx.transitions.Tween;
import mx.transitions.easing.*;
then you can use new Tween(params);
prg9
October 24th, 2007, 12:12 PM
Well I know there is a simple line for easing effects, something like mx.transition(......;.....). But I can't really remember, so do any of you lot know what this line is?
(D'oh - Charlie beat me! (was gathering links)
"Code for easing effects" (would be a better title for in the future :beam: )
Have a look at the following links:
Tween Class:
kirupa.com - Using the Tween Class (http://www.kirupa.com/developer/actionscript/tween.htm)
kirupa.com - Using the Tween Class, Part 2 (http://www.kirupa.com/developer/actionscript/tween_part2.htm)
Tween/Easing Classes Documented (http://www.actionscript.org/resources/articles/170/1/Flash-MX-2004-Undocumented-TweenEasing-Classes-Documented/Page1.html)
Transition Class
Using the Tween and Transition Classes (http://www.adobe.com/devnet/flash/articles/tweening.html)
Other Options (once you learn the built-in tween classes above and want to move on):
FuseKit (http://www.mosessupposes.com/Fuse/) (used to be laco (http://laco.wz.cz/tween/))
Tweener (http://code.google.com/p/tweener/) (used to be Mctween (http://hosted.zeh.com.br/mctween/))
Have fun tweening, transitioning and Easing :thumb2:
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.