Flash - textfield onfocus?
Flash - textfield onfocus?
- Started
- Last post
- 2 Responses
- thismanslife
Does anyone know if / how in Flash i can set a variable when a textfield gets focus (ie. either by it being clicked inside or being tabbed to)...
Any help appreciated!
- cereals0
You need to be looking at two things here, one is the event listeners within flash
Lookin the help file: TextField.addListener()
and then look at
TextField.onSetFocus
Those will help you find if the textbox has been found by the focus tab.
If you want to find out if they have been clicked, use the normall method...
You could place within a movieclip or button and test for either hitTest() or onPress()
- thismanslife0
Thanks chap, I just kinda sussed it, using TextField.onSetFocus method, and it's doing what I need it to, cheers :)