Mathew Easow Jacob’s Blog–India

a enthusiast…developer…on technology,RIA,flex,web,startup….

Archive for the ‘Actionscript3’ Category

Actionscript3

how to edit TextField

Posted by easow83 on March 9, 2008

I was in a bit confuse that how can we edit a textfield…i can display Html text in Text Field,but how to edit  it in runtime…and i got it..below is a sample..

package {
 
 import flash.display.MovieClip;
 import flash.text.TextField;
 import flash.text.TextFieldAutoSize;
 import flash.text.TextFormat;
 import flash.text.TextFieldType;
 

 public class Text extends MovieClip
 {
  public function Text()
  {
   var textField:TextField = new TextField();
   addChild(textField);
   textField.border = true;
   textField.width = 500;
   textField.type = TextFieldType.INPUT;//use TextFieldType.INPUT property to edit it in runtime
  }
 }
}

Posted in Actionscript3 | Tagged: | Leave a Comment »