Hi there,
I am very very new to Flash programming and I am trying to add a TextField using AS3. I found the following code on the net and pasted it in a new project but it does not work for me,
var myTextField:TextField = new TextField();
myTextField.text = “Hello, world!”
myTextField.x = 10;
myTextField.y = 10;
var myTextFormat = new TextFormat();
myTextFormat.font=“Arial”;
myTextFormat.size=12;
myTextField.defaultTextFormat = myTextFormat;
addChild(myTextField);
any Idea why it does not work ?
Regards,