Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to create multiple tab loops in AS3 by using fl.managers.FocusManager?
    primarykey
    data
    text
    <p>I want to create a tab-enabled popup window in an AS3 Air project. Currently, when I press tab several times, the focus goes through all the components in my popup window and then starts focusing the buttons and TextFields from the components that are behind the popup. I have tried to solve this problem in two ways, but none of them worked. I will explain both of the methods here</p> <ol> <li><p><b>The official method</b><br> I have read adobe's documentation from <a href="http://www.adobe.com/livedocs/flash/9.0/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Parts&amp;file=00000404.html" rel="nofollow noreferrer">here</a> and it describes what I should do in my case like this: </p> <blockquote> <p>"Each modal Window component contains an instance of the FocusManager, so the controls on that window become their own tab set. This prevents a user from inadvertently navigating to components in other windows by pressing the Tab key. " But I still don't understand how to use the FocusManager. </p> </blockquote> <ul> <li>I have tried creating an instance of the FocusManager in each of my view component classes by putting the code below in the constructor, but it didn't work: </li> </ul> <p><code>_focusManager = new FocusManager(this);</code></p> <ul> <li>What do they mean by "modal Window component" ?</li> </ul></li> <li><p><b>The workaround method</b><br> Another thing I've tried is to manually set the tabEnabled property to true or false on each button and TextField when the Parent component dispatches a FOCUS_IN or FOCUS_OUT event. This worked on a simple example that I created on a new flash file, but it doesn't work on my large project, and I don't know how to debug it. However I would be very glad to dump this and go back to method number 1.</p></li> </ol> <p>Has anyone encountered these problems before? Have you used multiple tab cycles in any other way? Any hint is welcome right now, because I've been wasting too much time on this problem. Thank you [Edit] I was getting a lot of views for this question, but no relevant answers, so I edited it and tried to simplify it</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload