Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 3.4 (Release)
-
None
-
None
-
Affected OS(s): Linux
Affected OS(s):
Language Found: English
Description
Steps to reproduce:
1. Create a new AIR project, use this for the application code:
<?xml version="1.0" encoding="utf-8"?>
<mx:WindowedApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal">
<mx:Script>
<![CDATA[
private function checkText(event:TextEvent):void
{
if((['a', 'e', 'i', 'o', 'u']).indexOf(event.text.toLowerCase()) != -1)
}
]]
>
</mx:Script>
<mx:Label text="Vowels should be filtered in this text box: " /> <mx:TextInput textInput="checkText(event)" />
</mx:WindowedApplication>
2. Compile the release version, install on a linux box.
3. Run app, and try to enter vowels into the text box.
Actual Results:
On Linux, the event is not canceled and the vowels appear.
On Windows and Mac, the event is canceled, and the vowels cannot be entered.
Expected Results:
Vowels should not be allowed.
Workaround (if any):
None
Note that this is ONLY on AIR for Linux (I'm using 1.5.2 player and debugger). The flash player for Linux behaves correctly. I stepped through in Flex Builder for Linux both the Flex version and the AIR version have exactly the same path, so the issue must be a difference in the embedded Flash player in AIR for Linux, vs the regular Flash player. I filed this under Flex SDK issues because it touches on mx:TextInput and mx.events.TextEvent, but it's clearly not a Flex SDK issue... Just wasn't sure where to file bugs for AIR directly. Please move as needed.
For reference, here's the Flex code for flash-app:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="horizontal">
<mx:Script>
<![CDATA[
private function checkText(event:TextEvent):void
{
if((['a', 'e', 'i', 'o', 'u']).indexOf(event.text.toLowerCase()) != -1)
{ event.preventDefault(); }
}
]]
>
</mx:Script>
<mx:Label text="Vowels should be filtered in this text box: " /> <mx:TextInput textInput="checkText(event)" />
</mx:Application>