A Flash Developer Resource Site

Results 1 to 8 of 8

Thread: OOP - FAQs, Resources & Best Practices

Hybrid View

  1. #1
    Senior Member calmchess's Avatar
    Join Date
    Sep 2006
    Location
    Earth
    Posts
    2,588
    I have request .....I'd like to learn more about event handlers with oop because I currently have a oop script that extends an input text field or a dynamic text field its an chat application with a submit button but I can't figure out for the life of me how to make it submit by pressing the enter key instead of always having to click on the submit button........I'd love a nice tutorial on event handlers particularly keyboard button press for specific keys using oop....to be clear the event handlers would be part of the oop .as file.

  2. #2
    OOP is one letter from OOPS kortex's Avatar
    Join Date
    Aug 2005
    Location
    New Hope, PA
    Posts
    2,668
    I think in that situation you are actually going to end up using the Key listener.

    http://www.adobe.com/support/flash/a...ionary394.html

    TextField only seem to have two built in events onChange and onScroll.


    Hopefully some other may chime in on this one.

    Quote Originally Posted by calmchess
    I have request .....I'd like to learn more about event handlers with oop because I currently have a oop script that extends an input text field or a dynamic text field its an chat application with a submit button but I can't figure out for the life of me how to make it submit by pressing the enter key instead of always having to click on the submit button........I'd love a nice tutorial on event handlers particularly keyboard button press for specific keys using oop....to be clear the event handlers would be part of the oop .as file.
    Jeremy Wischusen
    Flash - Flex - LAMP - Web Developer Purple Inc
    AS OOP FAQ-Best Practices Thread | Flashkit OOP Tutorials | Purple Inc (day job) | Blog


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