I get an error in the above code,
Error: Child elements of 'FormItem' serving as the default property value for 'mxmlContentFactory' must be contiguous.
<s:Form id="bxPrePaidTypeAdvanced" width="100%">
<s:layout>
<s:VerticalLayout paddingTop="0" paddingLeft="0" paddingRight="0" paddingBottom="0"/>
</s:layout>
<s:FormItem width="0" label="Form Item:">
<s:Label text="label text" />
<s:layout>
<s:HorizontalLayout paddingLeft="{(-1)*(rbPerDay.width + 16)}" gap="16"/>
</s:layout>
<mx:RadioButton groupName="prePaidAdvanced"
id="rbPerDay"
label="{resourceManager.getString('locale','perDay')}"
labelPlacement="left"
change="rbPerDay_changeHandler(event)"/>
<mx:ComboBox id="cbDueDay" width="80" dataProvider="{daysArray}"/>
</s:FormItem>
Im migrating flex 3 to 4 so i dont know if i need to make some changes here.
And another thing, when i try to change <mx:RadioButton to <s:RadioButton
the following error appear
Cannot Resolve Attribute "labelPlacement" for component type spark.component.RadioButton
Form
(which isFormLayout
). I bet that's the cause of your error. As for the other error: as the error states, that attribute does not exist. – RIAstarlayout
property allright, but give it a FormLayout instead of aVerticalLayout
. – RIAstarFormItem
, not the layout of yourForm
.FormItem
can accept other layouts, but I suppose it will mess up the rendering. The default layout ofFormItem
is FormItemLayout. – RIAstar