How can a disabled TextField input mode? Since the property enabled is not available you can use a simple artifice: change runtime state of the TextField. Fortunately, Flash developers are allowed to change the status of a TextField also run through the property type . It follows that if a TextField is added to the Stage as input (and hence type="input" ), by code, we can turn it into a text "static". In reality, the transform them into dynamic text ( type="dynamic" ) but the visual result is the same. The artifice works because both the TextField TextField input the dynamic properties share the same text . So if I put a text in a TextField input when it transformed into a dynamic TextField will have only the impression of not being able to insert characters! That I have disabled the TextField input!
The TextField object may also be extended as a MovieClip, then we may use the following code useful:










undolog  »Blog Archive » Flash: TextField disable an input mode ...
How can a disabled TextField input mode? Since the enabled property is not available you can use a simple artifice: change runtime state of the TextField ....