Monmonja Programming Blog

September 7, 2008

How to disable textfield on AS3

Filed under: Programming — Tags: — admin @ 3:14 am

Moved content to http://www.almondjosephmendoza.com/2010/03/how-to-disable-textfield-on-as3.html

Share and Enjoy:
  • Digg
  • Reddit
  • Slashdot
  • del.icio.us
  • StumbleUpon
  • TwitThis
  • Fark
  • Facebook
  • Technorati
  • Sphinn
  • Furl
  • Google Bookmarks
  • Mixx

2 Comments »

  1. Hey! Do this:

    //disable input
    myTextField.selectable = false;
    myTextField.type = TextFieldType.DYNAMIC;

    //enable input
    myTextField.selectable = true;
    myTextField.type = TextFieldType.INPUT;

    ————————————————————

    It works! I’m not sure if you need the .selectable = false/true but doesn’t do any harm :P

    Comment by Edd — October 1, 2009 @ 6:03 am

  2. Nice post, had some problems getting this to work. Changing the type of the textfield on-the-run doesnt seem to work for me in Flash CS4.

    Comment by daniel — February 3, 2010 @ 11:51 pm

RSS feed for comments on this post. TrackBack URL

Leave a comment

Powered by WordPress

Monmonja Programming Blog is Digg proof thanks to caching by WP Super Cache