actionscript 3 - AS3: Add A Text Field To a Movie Clip -
how go adding text field movie clip? add text text field through main actions. how reset nothing example " ".
just example ...
import flash.display.*; import flash.text.*; var textfield:textfield = new textfield(); var container:movieclip = new movieclip(); addchild(container).addchild(textfield); function text():string { return textfield.text; } function set text(value:string):void { textfield.text = value; } function resettextfield():void { text = ""; }
in movieclip, contains script:
movieclip.text = "fred";
Comments
Post a Comment