feathersui / feathersui-starling-sdk

SDK for building Feathers UI (AS3/Starling) applications with MXML
https://feathersui.com/learn/as3-starling/sdk/
Apache License 2.0
42 stars 13 forks source link

Setting multiple textEditorProperties results in Error #31

Closed izzmeifter closed 8 years ago

izzmeifter commented 8 years ago

Adding more than one textEditorPropery via fx:Object results in the error "Cannot create property 0 on feathers.controls.text.StageTextTextEditor."

    <f:TextInput verticalAlign="{TextInput.VERTICAL_ALIGN_JUSTIFY}">
        <f:layoutData>
            <f:AnchorLayoutData top="0" left="0" right="0"/>
        </f:layoutData>
        <f:textEditorProperties>
                <fx:Object multiline="true" />
                <fx:Object returnKeyLabel="{ReturnKeyLabel.DONE}"/>
        </f:textEditorProperties>
    </f:TextInput>

This will cause the error. If I remove one of the fx:Object the input works fine except of course I require the additional objects.

Perhaps I'm going about this wrong.

joshtynjala commented 8 years ago

You need to set multiple properties on a single object:

<f:textEditorProperties>
    <fx:Object multiline="true" returnKeyLabel="{ReturnKeyLabel.DONE}"/>
</f:textEditorProperties>