I have created a very simple MyTextInput

MyTextInput.mxml
-----------------
<?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" 
  xmlns:mx="library://ns.adobe.com/flex/mx">
  <fx:Declarations>
    !-- Place non-visual elements (e.g., services, value objects) here -->
  </fx:Declarations>
</s:TextInput>

When I try using it in a Application I am getting the compile error  -

Multiple initializer values for default property, 'text', of type 'String'

What am I missing?
thanks

testApp
-------
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"; 
        xmlns:s="library://ns.adobe.com/flex/spark" 
        xmlns:mx="library://ns.adobe.com/flex/mx"
        xmlns="*">

   <MyTextInput/>               
</s:Application>


Reply via email to