I have the following class and I need to update my input text (Name_txt) from my class. Can anyone help?
Name_txt.text="hello"; this procuces the error because Name_txt is not defined in my class?
package {
import flash.display.*;
import flash.events.*;
import fl.transitions.*;
import flash.display.MovieClip;
public class qwertyKeyboard extends MovieClip
{
// constructor
public function qwertyKeyboard()
{
this.addEventListener(Mous
eEvent.MOU
SE_DOWN, addLetter);
}
public function addLetter(event:MouseEvent
):void {
this.play();
trace(event.target.name.su
bstr(0,1))
;
Name_txt.text="hello";
Name_txt.border =true;
//var str:String = "Hello from Paris, Texas!!!";
//trace(str.substr(11,15))
; // output: Paris, Texas!!!
//trace(str.substring(11,1
5)); // output: Pari
}
}
}
Start Free Trial