Skip navigation
Currently Being Moderated

Tab stops working properly if .swf is loaded by SWFLoader

Apr 2, 2012 7:58 AM

Tags: #flash #flex #swf #focus #keyboard #tab

Hello,

 

I have swf file built by Flash CS5. The file contains different user interface entities like dialogs and buttons.

All the objects are exported for ActionScript and controlled by the ActionScript code.

 

I made loader that loads above mentioned swf by SWFLoader and shows the content.

If I use this loader the Tab button stops working properly. It doesn't change the keyboard focus.

 

What is wrong? What have I missed?

 

Thank you,

Dmitry

 
Replies
  • Currently Being Moderated
    Apr 2, 2012 10:03 AM   in reply to 4xyfenix

    You might have to set tabChildren=true or hasFocusableChildren=true on the SWFLoader.

     
    |
    Mark as:
  • Currently Being Moderated
    Apr 9, 2012 7:28 AM   in reply to 4xyfenix

    Sorry, I missed that you are loading a Flash swf.  If you are using flash.. components it may throw errors.  If you are not, you may have make the SWFLoader an IFocusManagerComponent and cancel the keyFocusChange event.  This configuration is not officially supported.

     

    You can get an idea of how to try to do this by looking at how DataGrid handles keyFocusChange to move focus within the DataGrid.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points