are you using any framework like cairngorm? If not then you can do it as follows:-
1. put the button in jobSearch.mxml 2. on click of button dispatch a custom event with the data you want to pass around 3. listen for this event in main.mxml 4. when main.mxml gets the event change the viewstack child 5. in the timeline3d have a pubilc getter method for data which the main will call after changing the child. instead of creating the custom event you can use the mouseEvent also i guess but am not sure how. Hope it helps to solve your problem. ---> Akshar Kaul <--- On Sat, Jun 4, 2011 at 15:22, ●๋•کŕíńíváکツ <[email protected]> wrote: > 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: > > <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> > > This works great. :-) > > The JobSearch.mxml page has a button that when you click on it, I > want to take the job_id variable I've declared and pass it to the > Timeline3 page and have that page as the main page. > > If I put the button on the main.mxml page, everything works fine > (except for passing the variable, but it will at least change the > page)... but if I put the button on the JobSearch.mxml page it > doesn't work. I guess I don't know the syntax for doing that. > > 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! > Srinivas........ > > -- > You received this message because you are subscribed to the Google Groups > "Flex India Community" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/flex_india?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/flex_india?hl=en.

