I've been looking all day and can't find a solution to this - although I'm sure 
it's very 
simple. 

I have a main application that I'm using a ViewStack in:

Main.mxml

<mx:ViewStack id="preTrafficNav" width="100%" height="100%" 
creationPolicy="all" 
x="10" y="90">
<v:JobSearch id="jobsearch" width="100%" height="100%"/>        
<v:Timeline3 id="timeline3" width="98%" height="711"/>
</mx:ViewStack> 

Then I have JobSearch.mxml

<action script stuff>

<mx:VBox width="100%" height="100%" id="vbox1">
        <mx:HBox width="100%" x="10" y="90">
                <mx:Label text="Job:" fontSize="14" fontWeight="bold"/>
                <mx:Label text="{currentJob.job_title}" fontSize="14" 
id="lblJobName"/>
                <mx:Spacer width="80%"/>
                <mx:Button label="Select" 
                        id="btnSelect0" 
                        click="<what goes here??? help!!!>" 
                        right="348" bottom="10" height="34"/>
        </mx:HBox>
        
        <mx:DataGrid id="jobList_dg" width="99%" height="90%">
                <mx:columns>
                        <mx:DataGridColumn headerText="Job Code" 
dataField="job_code" 
width="100"/>
                        <mx:DataGridColumn headerText="Description" 
dataField="job_title" />
                        <mx:DataGridColumn headerText="Concept Date" 
dataField="conceptDate" width="100"/>
                </mx:columns>
        </mx:DataGrid>
</mx:VBox>


The JobSearch.mxml page has a button that when you click on it, I want to take 
the job_id 
variable (currentJob.job_id) I've declared and pass it to the Timeline3 page 
and have that 
page appear.

I'm very new to flex, I don't know a lot of the syntax and I'm having a lot of 
trouble getting 
started.

If someone would help me with the syntax to link from one child to another, 
when the 
children are their own mxml pages I would be soooo appreciative.

Thanks!

April 

Reply via email to