-
Master of disaster
Active pointer/Input text
I have two input Text field on stage, and when i start my movie i need first one to be active so i don't need to use mouse to appear pointer inside it.
Is it possible and how?
-
Senior Member
Just use the following in the frame your text field resides:
code: selection.setFocus("name");
name = var name of your text field
-
Master of disaster
re
I tried but it was dud.
So here is my FLA file and if you have enough time for it please take a look at.
Thanks in advance
Last edited by jugomkd75; 06-12-2004 at 10:24 AM.
-
Senior Member
Are using Flash 5 by any chance jugomkd75? as I cannot open your fla.
If so, you can't set the focus of text input elements (not as far as my experience anyways).
-
Master of disaster
re
I'm using FlashMX 2004 Pro
-
Master of disaster
re
I'm using FlashMX 2004 Pro.
If you don't have one i could send you in Flash MX
-
Senior Member
Ah . . . I'm only using MX 6.0
If you're not using any 2004 specific components or code, try re-saving . . . to a Flash 5 fla if you can.
-
Master of disaster
re
You know what, i tested both mx and mx2004 and imagine, it work well in mx but in mx2004 not. What could be wrong?
To be honest i knew (and i have do it such a things) to making this, but i was wondering that in 2004 it doesn't work so i tried to acting little and to Apprehend solution.
Anyway if someone had same problem please let me know solution,
Thanks in advance
-
Senior Member
Glad it works in MX 6.0 at least.
Unfortunately, not being a 2004 fan myself, I'll have to let someone else (an MX 2004 user) help you here jugomkd75.
Good luck.
-
Master of disaster
re
From now i'm not fan of MX 2004 as well. I resolve many another problems when i saved my file as Flash MX, but new one raise too.
Now when i'm using setFocus() in my movie it work well untill you don't make any changing (not allow using of delete, Tab etc. buttons), it simple mortise in text field that is under focus, untill i click with mouse, and after all goes well. What is explanation for this kind of Behavior of FlashMX?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|