
March 1st, 2013, 02:29 PM
|
 |
Plays with fire
|
|
Join Date: Aug 2003
Location: Outside looking in
|
|
What tween engine are you using?
I'm a bit rusty with Flash's built in engine built by Adobe, but you're looking for an onFinished event to fire when the tween stops. When it stops, add a new listener for a click event.
Kind of like this:
Code:
myTween.addEventListener(TweenEvent.COMPLETE, makebutton);
function makebutton(e:TweenEvent):void {
myTween.removeEventListener(TweenEvent.COMPLETE, makebutton);
myObject.addEventListener(MouseEvent.CLICK, myClickReaction);
}
function myClickReaction(e:Event):void {
// button code
}
__________________
“Be ashamed to die until you have won some victory for humanity.” -- Horace Mann
"...all men are created equal." -- US Declaration of Independence
|