Hi,
I've been looking for some time now.. Is is possible to pass easing function as variable in AS3?
eg.
TweenLite.to(mcDelimiter, resizeTween, { x:(stageWidthHalf-(initStageWidthHalf-mcDelimiteri_X)), ease:Elastic.easeOut } );
TweenLite.to(mcBody, resizeTween, { x:(stageWidthHalf-(initStageWidthHalf-mcBody_X)), ease:Elastic.easeOut } );
... now if I at some point want to change "Elastic.easeOut" to something else I would have to change it at multiple parts of the code.. Can it be done so I just pass it as a variable and then if I want to change it, do it only on one place?
EDIT: ...also,
can for eg. if(currentFrame == "FrameLabel")
somehow be done? ..meaning, can I pass the currentFrame label name as a variable?
Thanks in advance for anwsers,
Andrej