flash - AS3 - Output what object has keyboard focus? -


I'm having problems with AS3 and keyboard focus, and I'm wondering if there is a variable or a function Can I use that output to screen the name of that object on the screen? Through Focus Manager, you can simply call the getFocus function. I put together a quick example that shows the current focus every second, is really meaningless, but it shows you how it works:

  import fl.managers.FocusManager ; Var Focus: Focus Manager = New Focus Manager (this); Function tracefocus (): zero {trace (focus .getFocus ())} setInterval (tracefocus, 1000);  

Just put this code in the root and then some input box on the forum and it should work. Also, check


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -