Moved content to http://www.almondjosephmendoza.com/2010/03/how-to-disable-textfield-on-as3.html
September 7, 2008
2 Comments »
RSS feed for comments on this post. TrackBack URL
RSS feed for comments on this post. TrackBack URL
Powered by WordPress
Monmonja Programming Blog is Digg proof thanks to caching by WP Super Cache
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
Comment by Edd — October 1, 2009 @ 6:03 am
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