I am having problems understanding how states work with a Tile List.
If I separate out the two states I get my desired output of info but
if I try to keep them all contained onto one panel I get the initial
state of a log in screen but once the panel changes then I get no info

Code:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" backgroundGradientAlphas="[1.0, 0.75]"
backgroundGradientColors="[#040404, #040404]"
initialize="getDaysUntil()"     >
<mx:XML id="tempXML"
source="http://mysite.net/interface.php?username=admin&amp;password=pass&amp;customer=63&amp;action=showopen&amp;operation=defects&amp;format=xml&amp;critcal=both";
/>

<mx:Image source="@Embed('../images/title.jpg')" width="210"
height="65" top="4" left="15"/>
        <mx:Image source="@Embed('../images/title1.jpg')" id="image1"
horizontalAlign="right" verticalAlign="top" right="0"
scaleContent="true" y="0"/>



<mx:states>
        
                <mx:State name="Logged In" >
                        <mx:SetProperty target="{panel1}" name="width" 
value="98%"/>
                        <mx:SetProperty target="{panel1}" name="height" 
value="75%"/>
                        <mx:RemoveChild target="{password}"/>
                        <mx:RemoveChild target="{customer}"/>
                        <mx:RemoveChild target="{username}"/>
                        <mx:RemoveChild target="{customerlbl}"/>
                        <mx:RemoveChild target="{label1}"/>
                        <mx:RemoveChild target="{Submit}"/>
                        <mx:RemoveChild target="{label2}"/>
                        
                        <mx:SetProperty target="{panel1}" name="title" 
value="Current Red
Board Information" />
                        
                        <mx:AddChild relativeTo="{panel1}"  
position="lastChild">
                        
        <mx:TileList dataProvider="{tempXML.defect.asset}" 
                width="100%" backgroundColor="#000000" color="#ff0000" 
fontSize="27"
borderColor="#000000" columnWidth="300" rowHeight="50"
themeColor="#808080" fontWeight="bold" allowMultipleSelection="true" />
                <mx:XMLListCollection id="defectXMLList" 
source="{tempXML.defect}" />
        
        </mx:AddChild>  

.. Other Code to for application (I would post it all but I got chided
by another member the last time I did.)

Any help would be great.

Thanks

Reply via email to