alstrup / arctic

Automatically exported from code.google.com/p/arctic
0 stars 0 forks source link

cant get text from TextInput without change event #9

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
when using text input, the prescribed way to get the text is via the
validator function. however, that is only called onChange. 

since TextInput.text is not available, you can trigger the event as soon as
possible. e.g. in flash9, immediately after addEventListener.

txtInput.dispatchEvent(new flash.events.Event(flash.events.Event.CHANGE));

would it be possible to allow direct access to the txtInput.text ?

Original issue reported on code.google.com by bpederse on 29 Nov 2007 at 10:18

GoogleCodeExporter commented 9 years ago
You can get direct access to the MovieClip using the Id block:

  Id("mytext", TextInput(....))

Then use view.getRawMovieClip("mytext") to get the movieclip with the textfield 
- the
textfield is the first child of that child.

Alternatively, please look at ArcticView.hx lines 520 onwards, adjust 
accordingly and
send a patch.

Original comment by asgerals...@gmail.com on 30 Nov 2007 at 1:14

GoogleCodeExporter commented 9 years ago
ah. i'd not seen Id(). thanks. 

Original comment by bpederse on 30 Nov 2007 at 5:08