All pastes #478659 Raw Edit

Stuff

public text v1 · immutable
·published 2007-05-09 09:19 UTC
rendered paste body
<?xml version="1.0" encoding="utf-8"?>
<mx:ApolloApplication xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:HTTPService id="tDada" url="http://revolutionfitness.org/blah.xml" />
    <mx:states>
        <mx:State name="trainers">
            <mx:AddChild relativeTo="{panel1}" position="lastChild">
                
            </mx:AddChild>
            <mx:SetProperty target="{panel1}" name="title" value="Trainers"/>
            <mx:AddChild relativeTo="{panel1}" position="lastChild">
                <mx:VDividedBox x="0" y="0" height="100%" width="100%">
                <mx:Canvas label="Canvas 1" width="100%" height="100%" backgroundColor="#FFFFCC">
                <mx:Label text="Add components here" fontWeight="bold"/>
            </mx:Canvas>

            <mx:Canvas label="Canvas 2" width="100%" height="100%" backgroundColor="#99CCFF">
              
                <mx:DataGrid height="100%" y="0" width="100%" x="0" dataProvider="{tData.lastResult.trainers.t}">
                    <mx:columns>
                        <mx:DataGridColumn headerText="ID" dataField="id" width="35"/>
                        <mx:DataGridColumn headerText="Name" dataField="name"/>
                        <mx:DataGridColumn headerText="Cell" dataField="cphone"/>
                    </mx:columns>
                </mx:DataGrid>
            </mx:Canvas>
                </mx:VDividedBox>
            </mx:AddChild>
        </mx:State>
    </mx:states>
    <mx:ApplicationControlBar x="0" y="0" dock="false" id="applicationcontrolbar1">
        <mx:Button label="Home" click="currentState=''"/>
        <mx:Button label="Trainers" click="currentState='trainers'"/>
        <mx:Button label="Clients"/>
        <mx:Button label="Programs"/>
    </mx:ApplicationControlBar>
    <mx:Panel layout="absolute" left="10" right="10" top="41" bottom="10" id="panel1" title="RF Admin Home">
    </mx:Panel>
    
</mx:ApolloApplication>