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;
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…