i know as3(4 months exp).but dnt know much of as2.
I have problem with as2.i have a movieclip chatnplayer_mc and a button on stage(many other movieclips are also there).when i press button i want a textfield to be added to chatnplayer_mc.folowing is my code on button:
on (press) {
trace(chatnplayer_mc._x+","+chatnplayer_mc._y);
chatnplayer_mc.createTextField("txtField_txt",chatnplayer_mc.getNextHighestDepth(),chatnplayer_mc._x,chatnplayer_mc._y+200,20,20);
chatnplayer_mc.txtField_txt.text="HELLO";
var my_fmt:TextFormat = new TextFormat();
my_fmt.color = 0xFF0000;
my_fmt.underline = true;
chatnplayer_mc.txtField_txt.setTextFormat(my_fmt)
chatnplayer_mc.txtField_txt.selectable = true;
trace(chatnplayer_mc.txtField_txt._x+","+chatnplayer_mc.txtField_txt._y);
}
both traces are printing 800,200(x & y of chatnplayer_mc).but i cant c the textfield
Since tis is urgent i didnt went search this forum.if this is repitation sorry.
Thanx in advanceā¦