Skip to main content
Inspiring
February 2, 2007
Question

need help with 2nd level tab / <enter>

  • February 2, 2007
  • 3 replies
  • 358 views
i'm calling my login page http://www.creativenet.net/dev/theboys/design2/login.swf
and the tab and enter keys work fine here

but when i load them into my shell
http://www.creativenet.net/dev/theboys/design2 (go to login) they no longer work....

it's a very simple loginin i know... any help would help....

thanks
-N8
This topic has been closed for replies.

3 replies

Known Participant
February 2, 2007
I would guess it's not even hitting your function on KeyPress. You could test this by using a trace()

I like to use
Inspiring
February 2, 2007
ya i have the

stop();
this._lockroot = true;

on the first frame of the loaded swf...

the shell is calling it threw a load.Movie("login.swf");

the login itself is very simple.. maybe to simple
on (release , keyPress "<Enter>") {
if (namelogin eq "whatever" and passlogin eq "*******l") {
gotoAndStop("Ok");
} else {
gotoAndPlay("wrong");
}
}

thanks
-n8
Known Participant
February 2, 2007
I would guess it's not even hitting your function on KeyPress. You could test this by using a trace()

I like to use a listener that way it always works. Like this.

Known Participant
February 2, 2007
I'm pretty sure your problem has to do with what level your buttons are on. I'd have to see your code but I'm guessing you have a keydown event that fires when "enter" is pressed. And maybe you're referencing your login textbox like _root.txtLogin.text. The problem when you put it inside the other swf is _root now moves. so now your textbox is _root.loginswf.txtLogin.text.

Again, I'm only guessing here since I can't see your code but I think this is your problem. You may want to try using the "_lockroot " property on the login swf.

Later

Troy