A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: [AS3] Input TextFields

Hybrid View

  1. #1
    Senior Member chriserrorplain's Avatar
    Join Date
    Aug 2002
    Location
    london village
    Posts
    623

    [AS3] Input TextFields

    ok...I admit defeat...my first AS3 game for a client launches in under 24 hours and I will be damned if I can work out how to set the focus on a input Text field.

    of course in AS 2.0 you would just use

    Selection.setFocus(text_field)

    Anyone know how to do the same in As 3.0?

    Chris Error

    ps. after all the things that I have worked out to do in AS3.0 I can't believe that I'm stuck on how to implement setting focus.

  2. #2
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    http://untoldentertainment.com/blog/...n-not-working/
    http://livedocs.adobe.com/flex/201/l...age.html#focus

    apperently setFocus is not anymore a function but instead a property. Also, you don't use the text name value of the field, but a reference to the actual field itself.
    myObj.stage.focus = myTextField;
    http://www.adobe.com/cfusion/webforu...&enterthread=y

    hope that helps
    Last edited by renderhjs; 02-25-2008 at 04:16 PM.

  3. #3
    Senior Member chriserrorplain's Avatar
    Join Date
    Aug 2002
    Location
    london village
    Posts
    623
    thanks loads Render will try now


    Chris

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