AS2: Selection.setFocus()
AS2: Selection.setFocus()
- Started
- Last post
- 6 Responses
- CyBrain
Is there any way to do this to a text field in a movie clip from the _root?
Seems like it has to be done in the same timeline.
- zaq0
this._lockroot = true;
- CyBrain0
I'm not doing this in a loaded movie, just a movie clip.
- CyBrain0
So if this were your code if you were in the same timeline:
Selection.setFocus("username_txt...
what if you were trying to affect contact_mc.form_mc.firstName.txt ?
- fyoucher10
Just target the textfield like how you normally do.
Selection.setFocus(txt_mc.txt.te...
Make sure you give the textfield an instance name
- fyoucher10
but...don't put quotes around the target...it should just be a path
- CyBrain0
That makes sense to me. I made the mistake of trusting Flash's help.
This is from their example:
Selection.setFocus("username_txt...- I don't know why QBN is truncating that line of code. Look here: http://livedocs.adob…CyBrain