Results 1 to 6 of 6
Thread: about input text
-
May 8th, 2012, 10:20 AM #133Registered User
postsabout input text
How can I create a textbox that user can input it with number,then with a check button,it will trace ("user input")?
Thanks.
-
May 8th, 2012, 11:19 AM #2Code:
import flash.text.TextField; import flash.text.TextFormat; import flash.events.MouseEvent; var txt:TextField = new TextField(); txt.defaultTextFormat = new TextFormat("Arial",12,0x000000); txt.border = true; txt.borderColor = 0xBBBBBB; txt.type = TextFieldType.INPUT; txt.background = true; txt.backgroundColor = 0xFFFFFF; txt.width = 200; txt.height = 25; addChild(txt); btn.addEventListener(MouseEvent.CLICK, traceText); function traceText(evt:MouseEvent):void { trace(txt.text); }
-
May 8th, 2012, 12:14 PM #333Registered User
posts
-
May 8th, 2012, 06:59 PM #49!!!!!!!!!!!!!!!!
postsI want to do something similar, but don't need any external files.
User inputs some text & presses a btn, that text gets passed to a different text field.
Thanks, I'm scratching my head on this one...
-
May 9th, 2012, 02:42 AM #5
I think this is the answer you are looking for...
http://www.republicofcode.com/tutori...3externaltext/
Hope it helps.
-
May 9th, 2012, 01:25 PM #69!!!!!!!!!!!!!!!!
postsThis simple bit of code did the trick. From kglad over at Adobe:
http://forums.adobe.com/thread/1000821

Reply With Quote

Bookmarks