hi im making a flash website and i have text that i made into a button and what i want is when this text is clicked that it would transition as a fade into the root fram, specifically frame 3 in the root.
i have create a AS3 for this but it just fades out and the root pops up instead of fading into the root frame.
this is what i got…
stop();
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.TweenEvent;
Name_btn.addEventListener(MouseEvent.CLICK,NameBtnClick);
function NameBtnClick (event:MouseEvent):void {
var NameBtnOut:Tween = new Tween(Name_btn,“alpha”,Strong.easeOut,1,0,3,true);
NameBtnOut.addEventListener(TweenEvent.MOTION_FINISH,NameBtnTransition);
function NameBtnTransition (event:TweenEvent):void {
MovieClip(root).nextFrame();
}}
thanks,