Hi,
PHP Code:
var textA:String;
var textB:String;
function displaytext()
{
this.createTextField("textFieldA",this.getNextHighestDepth(),0,20,500,60);
textFieldA.selectable = false;
textFieldA.text = textA;
this.createTextField("textFieldB",this.getNextHighestDepth(),50,20,500,120);
textFieldB.selectable = false;
textFieldB.text = textB;
//delText(textFieldA);
//delText(textFieldB);
setTimeout(delText,2000);
}
function delText()
{
textFieldA.removeTextField();
textFieldB.removeTextField();
}
textA = "hello";
textB = "world2";
displaytext();
You were not calling the create textfields function > displaytext();