Whats wrong with this Flex MXML code? I’m getting error messages (error lines marked with “X”). Code is very simple but I cannot find the error.
Message both times: multiple initalisation values for standard property “text” of type “string” (translated from german)
<?xml version="1.0" encoding="utf-8"?>
<s:TextInput xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
focusIn="keyboardIsOpen=true"
X focusOut="keyboardIsOpen=false">
<fx:Script>
<![CDATA[
//var
static public var keyboardIsOpen:Boolean = false;
]]>
X </fx:Script>
</s:TextInput>
This is an issue with the Flex SDK. Bug – 25184 The workaround according to the comments in the bug report is to explicitly set the text property like this.