Has anyone run into this before?  On Linux the preventDefault event for a 
TextEvent.TEXT_INPUT event does not hide the characters entered. This works 
fine on OSX 
and Windows, but not Linux.  Here is example code:

<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml"; 
layout="absolute" xmlns:ns1="*">
        <ns1:CustomTextField x="10" y="10" width="500" height="22"/>
</mx:WindowedApplication>


package
{
        import flash.events.TextEvent;
        import flash.text.TextField;
        import flash.text.TextFieldAutoSize;
        import flash.text.TextFieldType;
        
        import mx.core.UIComponent;
        
        public class CustomTextField extends UIComponent
        {
                public function CustomTextField()
                {
                        var _customTF:TextField = new TextField();
                        _customTF.x = 0;
                        _customTF.y = 0;
                        _customTF.width = 480;
                        _customTF.height = 22;
                        _customTF.type = TextFieldType.INPUT;
                        _customTF.multiline = true;
                        _customTF.autoSize = TextFieldAutoSize.LEFT;
                        _customTF.wordWrap = true;
                        _customTF.maxChars = 1024;
                        addChild(_customTF);
                        
                        _customTF.addEventListener(TextEvent.TEXT_INPUT, 
dontShowTextInput);
                
                }
                
                private function dontShowTextInput(e:TextEvent):void
                {
                        e.preventDefault();
                }
        }
}

Reply via email to