Copy link to clipboard
Copied
trying to make a label maker. And I have an onscreen keyboard that allows me to enter text. wondering how I can copy it and put it in a prinintg animation. Still new to as3
Copy link to clipboard
Copied
if you want to use text (entered into a textfield) elsewhere in your app when the textfield no longer exists, assign the textfield's text property to a variable (when the textfield exists). you can then use that variable even when the textfield (and its text) no longer exist.
var tfS:String=your_tf.text;
Copy link to clipboard
Copied
How would I go about displaying the varible in the textbox in another movieclip.
printedTxt = MovieClip(parent).savedTxt;
not seeming to work. I have my savedTxt in the movieclip before this.
thanks!
Copy link to clipboard
Copied
that depends.
if your code is on the parent timeline of the movieclip, the movieclip's reference is mc and the textfield's reference in mc is savedTxt, use:
var printedTxt:String = mc.savedTxt.text;