Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

<TAB> Order in loaded swf

Status
Not open for further replies.

Micher

Technical User
May 18, 2001
9
CH
Hi

I have two text input fields und want that the user can hit the <TAB> Key to jump between them.

So I put the follwing Code into a Button:
Code:
on (keyPress &quot;<Tab>&quot;) {
    if (Selection.getFocus() == &quot;_level0.varUsername&quot;) {
        Selection.setFocus(&quot;_level0.varPasswort&quot;);
    } else if (Selection.getFocus() == &quot;_level0.varPasswort&quot;) {
        Selection.setFocus(&quot;_level0.varUsername&quot;);
    }
}

It works perfect as long as I don't load the swf into another movie! I don't know what I could change in the script, do you?

Thanks for your help
MICHER
 
if you load it into another movie you would then have to target level1. or whatever you loaded it into wouldn't you?
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top