# Transition effect(Urgent)

**URL:** <https://forum.kirupa.com/t/transition-effect-urgent/139185>\
**Category:** Uncategorized\
**Created:** [March 1, 2005, 5:36am UTC](https://forum.kirupa.com/t/transition-effect-urgent/139185 "2005-03-01T05:36:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ravibhatdon](https://avatars.discourse-cdn.com/v4/letter/r/a4c791/32.png) [@ravibhatdon](https://forum.kirupa.com/u/ravibhatdon)\
**Post date:** [March 1, 2005, 5:36am UTC](https://forum.kirupa.com/t/transition-effect-urgent/139185/1 "2005-03-01T05:36:59Z")

</div>

Hi all,  
I have created emptymovieclip in “d.as” and called in the 5 th frame,the movieclip contains textfield with format.My problem is that, when i decrease the  
\_alpha of the movieClip,it won’t.Here by I am attached the code I have written

//“d.as” file

function dynamictxtformat(color,color1,string,pos\_x,pos\_y,size,style,depth,l1,l2,l3,l4,l5,l6)  
{  
this.createEmptyMovieClip(“mc2”,depth)  
this.mc2.\_x=pos\_x;  
this.mc2.\_y=pos\_y;  
this.mc2.createTextField(“dt1”,depth,10,10,100,30)//,color);  
this.mc2.dt1.text+=string ;  
[//this.mc2.dt1.embedFonts=true](https://this.mc2.dt1.embedFonts=true);

this.mc2.dt1.border = false;  
this.mc2.dt1.selectable=false;  
this.mc2.dt1.autoSize = true;

rf = new TextFormat();  
rf.autoSize=true;  
rf.color=color;  
rf.size = size;  
rf.bold=true;  
rf.font = style;  
rf.embedFonts=true;  
this.mc2.dt1.setTextFormat(rf);  
uf = new TextFormat();  
uf.underline = true;  
uf.color=color1;  
uf.bold=true;  
uf.size = size;  
uf.font = “Avian”;  
uf.embedFonts=true;  
this.mc2.dt1.setTextFormat(l1, l2, uf);  
this.mc2.dt1.setTextFormat(l3, l4, uf);  
this.mc2.dt1.setTextFormat(l5, l6, uf);  
}

//5th frame in the Timeline

stop();  
\_root.onEnterFrame=function()  
{

this.mc2.\_alpha–;  
if(this.mc2.\_alpha\<=10)  
{  
this.mc2.removeMovieClip();  
delete this.onEnterFrame;  
play();  
}  
}  
Please help me…
