I have a Form that has a bunch of fields and then a small part of it in another Form that is defined in a separate mxml file. When the user tabs through the file everything is fine until it gets to that sub form, where it get stuck in a loop. Now I'm not sure it's because I have a nested form or if it's that I have HBox and VBox nested in the FormItems or what. Here is where I'm at now. I've stripped out some unimportant things...

Any clues or Ideas are appreciated.


<?xml version="1.0" encoding="utf-8"?>
<mx:Form xmlns:mx="http://www.adobe.com/2006/mxml"; width="100%" height="100%" xmlns:commonViews="com.decoursey.mediarespository.views.common.*" initialize="this.init();" xmlns:publish="com.decoursey.mediarespository.views.common.publish.*" focusEnabled="false">
        <mx:RadioButtonGroup id="start" itemClick="this.changeStartType();" />
        <mx:RadioButtonGroup id="end" itemClick="this.changeEndType();" />
        <mx:FormHeading label="Begin Publishing"/>
        <mx:FormItem>
                        <mx:RadioButton groupName="start" value="none" 
label="None"/>
        </mx:FormItem>
        <mx:FormItem>
<mx:RadioButton groupName="start" value="now" label="Now or when processing is complete"/>
        </mx:FormItem>
        <mx:FormItem direction="horizontal">
                        <mx:RadioButton groupName="start" value="relative" />
<mx:TextInput id="relativeCountStart" width="49" change="this.calculateRelativeStart();"/> <mx:ComboBox id="relativeUnitStart" change="this.calculateRelativeStart();">
                                <mx:dataProvider>
                                        <mx:ArrayCollection>
                                                <mx:String>Days</mx:String>
                                                <mx:String>Weeks</mx:String>
                                                <mx:String>Months</mx:String>
                                                <mx:String>Years</mx:String>
                                        </mx:ArrayCollection>
                                </mx:dataProvider>
                        </mx:ComboBox>
        </mx:FormItem>
        <mx:FormItem direction="horizontal">
                        <mx:RadioButton groupName="start" value="specific" />
<mx:DateField id="specificDateStart" selectedDate="{this.startDate}" editable="true" width="113" change="this.updateFromDirectStart();"/> <mx:ComboBox id="hourStart" selectedIndex="11" width="55" change="this.updateFromDirectStart();">
                                                <mx:dataProvider>
                                                        <mx:ArrayCollection>
                                                                
<mx:Number>1</mx:Number>
                                                                
<mx:Number>2</mx:Number>
                                                        </mx:ArrayCollection>
                                                </mx:dataProvider>
                                        </mx:ComboBox>
<mx:ComboBox id="minuteStart" selectedIndex="0" width="55" change="this.updateFromDirectStart();">
                                                <mx:dataProvider>
                                                        <mx:ArrayCollection>
                                                                
<mx:String>00</mx:String>
                                                                
<mx:String>01</mx:String>
                                                                
<mx:String>02</mx:String>
                                                                
<mx:String>03</mx:String>
                                                                
<mx:String>04</mx:String>
                                                                
<mx:String>05</mx:String>
                                                                
<mx:String>06</mx:String>
                                                                
<mx:String>07</mx:String>
                                                                
<mx:String>08</mx:String>
                                                                
<mx:String>09</mx:String>
                                                                
<mx:String>10</mx:String>
                                                                
<mx:String>11</mx:String>
                                                                
<mx:String>12</mx:String>
                                                                
<mx:String>13</mx:String>
                                                                
<mx:String>14</mx:String>
                                                                
<mx:String>15</mx:String>
                                                                
<mx:String>56</mx:String>
                                                                
<mx:String>57</mx:String>
                                                                
<mx:String>58</mx:String>
                                                                
<mx:String>59</mx:String>
                                                        </mx:ArrayCollection>
                                                </mx:dataProvider>
                                        </mx:ComboBox>
<mx:ComboBox id="meridianStart" width="55" change="this.updateFromDirectStart();">
                                                <mx:dataProvider>
                                                        <mx:ArrayCollection>
                                                                
<mx:String>AM</mx:String>
                                                                
<mx:String>PM</mx:String>
                                                        </mx:ArrayCollection>
                                                </mx:dataProvider>
                                        </mx:ComboBox>
<mx:ComboBox id="timeZoneStart" width="140" dataProvider="{this.timeZoneList}" change="this.updateFromDirectStart();">
                                        </mx:ComboBox>
        </mx:FormItem>
        <mx:FormHeading label="End Publishing"/>
        <mx:FormItem>
                <mx:HBox focusEnabled="false">
                        <mx:RadioButton groupName="end" value="none" 
label="None"/>
                </mx:HBox>
        </mx:FormItem>
        <mx:FormItem>
                <mx:HBox focusEnabled="false">
                        <mx:RadioButton groupName="end" value="relative" />
<mx:TextInput id="relativeCountEnd" width="49" change="this.calculateRelativeEnd();"/> <mx:ComboBox id="relativeUnitEnd" change="this.calculateRelativeEnd();">
                                <mx:dataProvider>
                                        <mx:ArrayCollection>
                                                <mx:String>Days</mx:String>
                                                <mx:String>Weeks</mx:String>
                                                <mx:String>Months</mx:String>
                                                <mx:String>Years</mx:String>
                                        </mx:ArrayCollection>
                                </mx:dataProvider>
                        </mx:ComboBox>
                </mx:HBox>
        </mx:FormItem>
        <mx:FormItem>
                <mx:HBox focusEnabled="false">
                        <mx:RadioButton groupName="end" value="specific" />
                        <mx:VBox>
<mx:DateField id="specificDateEnd" selectedDate="{this.startDate}" editable="true" width="113" change="this.updateFromDirectEnd();"/>
                                <mx:HBox focusEnabled="false">
<mx:ComboBox id="hourEnd" selectedIndex="11" width="55" change="this.updateFromDirectEnd();">
                                                <mx:dataProvider>
                                                        <mx:ArrayCollection>
                                                                
<mx:Number>1</mx:Number>
                                                                
<mx:Number>11</mx:Number>
                                                                
<mx:Number>12</mx:Number>
                                                        </mx:ArrayCollection>
                                                </mx:dataProvider>
                                        </mx:ComboBox>
<mx:ComboBox id="minuteEnd" selectedIndex="0" width="55" change="this.updateFromDirectEnd();">
                                                <mx:dataProvider>
                                                        <mx:ArrayCollection>
                                                                
<mx:String>00</mx:String>
                                                                
<mx:String>01</mx:String>
                                                                
<mx:String>56</mx:String>
                                                                
<mx:String>57</mx:String>
                                                                
<mx:String>58</mx:String>
                                                                
<mx:String>59</mx:String>
                                                        </mx:ArrayCollection>
                                                </mx:dataProvider>
                                        </mx:ComboBox>
<mx:ComboBox id="meridianEnd" width="55" change="this.updateFromDirectEnd();">
                                                <mx:dataProvider>
                                                        <mx:ArrayCollection>
                                                                
<mx:String>AM</mx:String>
                                                                
<mx:String>PM</mx:String>
                                                        </mx:ArrayCollection>
                                                </mx:dataProvider>
                                        </mx:ComboBox>
<mx:ComboBox id="timeZoneEnd" width="140" dataProvider="{this.timeZoneList}" change="this.updateFromDirectEnd();">
                                        </mx:ComboBox>
                                </mx:HBox>
                        </mx:VBox>
                </mx:HBox>
        </mx:FormItem>
<publish:StartValidator id="startValidator" source="{this.specificDateStart}" property="selectedDate" baseEnd="{this.base_endDate}" baseStart="{this.base_startDate}" startDate="{this.specificDateStart.selectedDate}" endDate="{this.specificDateEnd.selectedDate}" now="{this.now}" /> <publish:EndValidator id="endValidator" source="{this.specificDateEnd}" property="selectedDate" baseEnd="{this.base_endDate}" baseStart="{this.base_startDate}" startDate="{this.specificDateStart.selectedDate}" endDate="{this.specificDateEnd.selectedDate}" now="{this.now}" />
</mx:Form>

Reply via email to