I don’t really know what I’m doing I’m completely gone in my own code, I think I’m going around in circles! :*(
Selection.setFocus(textfield);
if (Selection.getFocus() == textfield)) {
Key.addListener(textfield));
} else {
Selection.setFocus(textfield));
}
Ok let me explain what I want to do: when my movie loads I want “textfield” to be focused, so I use
Selection.setFocus(textfield);
Fine! But on a frame before this I have a button to enter my site! Now as soon as you click this button it changes the focus so that when I enter the frame with the textfield it is no longer focused! Make sense? Well on this frame once the textfield is focused you can enter text right away! and then I have this listener which listens
to an event within the textfield! Ok now I’m even more confused then when I started explaining this! =) Anyway I want the textfield to be focused when you enter this frame and if the user focuses something else, well then they will have to focus the textfield themselves. Basicly I just want the the textfield to be focused on load, but the problem is my button at the start! What?:crazy: