PDA

View Full Version : Textinput component help???


snakeman654
08-27-2007, 10:08 PM
I am running flash cs3 with AS2.
I have a textinput component with the instance name: "uName".
I am trying to write some AS that makes a movieclip with the instance name of "lines" go to frame 2 when the textinput component gains focus.

Anyone know how to do this?

tg
08-28-2007, 04:33 PM
create a listener for your textinput field.
have the listener 'listen' for when the textinput gains focus.
when this happens the listener will run and have 'lines' goto and play frame 2.

snakeman654
08-29-2007, 11:16 AM
I am very sorry but I am not familiar with using listeners :confused:

snakeman654
08-29-2007, 11:29 AM
OK don't worry about it, I handled it using a function instead:


_root.loginform.uName.onSetFocus = function(){
trace("JIAOYI");
}