# Transition fade to root.. NEED HELP!

**URL:** <https://forum.kirupa.com/t/transition-fade-to-root-need-help/303413>\
**Category:** Uncategorized\
**Created:** [January 20, 2010, 2:13am UTC](https://forum.kirupa.com/t/transition-fade-to-root-need-help/303413 "2010-01-20T02:13:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vgorash](https://avatars.discourse-cdn.com/v4/letter/v/e9bcb4/32.png) [@vgorash](https://forum.kirupa.com/u/vgorash)\
**Post date:** [January 20, 2010, 2:13am UTC](https://forum.kirupa.com/t/transition-fade-to-root-need-help/303413/1 "2010-01-20T02:13:20Z")

</div>

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,
