A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: Active pointer/Input text

  1. #1
    Master of disaster jugomkd75's Avatar
    Join Date
    Feb 2004
    Location
    I'm here, why? You don't see me yet?
    Posts
    333

    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?

    there is no handcraft without tool!
    www.jugoars.com

  2. #2
    Senior Member ::bluemoth::'s Avatar
    Join Date
    Jun 2001
    Posts
    521
    Just use the following in the frame your text field resides:

    code:
    selection.setFocus("name");


    name = var name of your text field

  3. #3
    Master of disaster jugomkd75's Avatar
    Join Date
    Feb 2004
    Location
    I'm here, why? You don't see me yet?
    Posts
    333

    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.

    there is no handcraft without tool!
    www.jugoars.com

  4. #4
    Senior Member ::bluemoth::'s Avatar
    Join Date
    Jun 2001
    Posts
    521
    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).

  5. #5
    Master of disaster jugomkd75's Avatar
    Join Date
    Feb 2004
    Location
    I'm here, why? You don't see me yet?
    Posts
    333

    re

    I'm using FlashMX 2004 Pro

    there is no handcraft without tool!
    www.jugoars.com

  6. #6
    Master of disaster jugomkd75's Avatar
    Join Date
    Feb 2004
    Location
    I'm here, why? You don't see me yet?
    Posts
    333

    re

    I'm using FlashMX 2004 Pro.
    If you don't have one i could send you in Flash MX

    there is no handcraft without tool!
    www.jugoars.com

  7. #7
    Senior Member ::bluemoth::'s Avatar
    Join Date
    Jun 2001
    Posts
    521
    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.

  8. #8
    Master of disaster jugomkd75's Avatar
    Join Date
    Feb 2004
    Location
    I'm here, why? You don't see me yet?
    Posts
    333

    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

    there is no handcraft without tool!
    www.jugoars.com

  9. #9
    Senior Member ::bluemoth::'s Avatar
    Join Date
    Jun 2001
    Posts
    521
    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.

  10. #10
    Master of disaster jugomkd75's Avatar
    Join Date
    Feb 2004
    Location
    I'm here, why? You don't see me yet?
    Posts
    333

    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?

    there is no handcraft without tool!
    www.jugoars.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center