Docjayman
asked on
Cursor Insert problem
This function won't work - Selection.setFocus("text1" );
Using Flash MX 2004
text box properties = input
instance = emailx
var = email
Also, all the code underneath it executes fine and it doesn't work on other input boxes as well.
Any ideas?
Using Flash MX 2004
text box properties = input
instance = emailx
var = email
Also, all the code underneath it executes fine and it doesn't work on other input boxes as well.
Any ideas?
ASKER
Yeah, I tried all of those but it still doesn't work. I also tried using other text boxes but still nothing. I am not sure what it could be because the code is so simple.
Have you tried it without the quotes? It seems to work equally well with or without!
Also try this before the setFocus, to check whether your path is correct:
trace(email);
and if you get "undefined" in the output window, try the other suggestions that Zeffer made ( i.e. trace(_root.email); ). If it always comes up undefined then this is your problem, and you can use:
trace(this);
to give you the path you need.
Also try this before the setFocus, to check whether your path is correct:
trace(email);
and if you get "undefined" in the output window, try the other suggestions that Zeffer made ( i.e. trace(_root.email); ). If it always comes up undefined then this is your problem, and you can use:
trace(this);
to give you the path you need.
Just something else You won't see the cursor inside flash you will only see it once inserted into a webpage or just playing the swf by its self.
Fixitben
Fixitben
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
If someone could email me at cr.c@lycos.com, I would be happy to attach the small file. Maybe I am just missing something really dumb.
it can be relative or absolute
so if the textfield is on the main timeline.. the code would be..
Selection.setFocus("email"
or
Selection.setFocus("_root.
or if the field was in a clip called .. clipOne ..
Selection.setFocus("_root.
Z