PDA

View Full Version : BUTTON Transition code problem?



yuzhan618
July 17th, 2008, 05:41 PM
i worte the codes for a button, once click on it, it has the transition.
but i test it, doesnt work...
anyone can help me check it out,thanks.

the codes:



import fl.transitions.*;
import fl.transitions.easing.*;
import flash.events.ProgressEvent;

var tran_obj:Object = new Object();
tran_obj.type = Rotate;
tran_obj.direction = Transition.OUT;
tran_obj.duration = 1;
tran_obj.easing = Bounce.easeOut;

var tm:TransitionManager = new TransitionManager(wall1_mc);
tm.addEventListener(MouseEvent.CLICK,onClick);
function onClick(event:MouseEvent):void
{
tm.startTransition(tran_obj);
}

saxx
July 17th, 2008, 09:14 PM
Posting it in both forums won't get you an answer any faster