Hi! Please give me your advice!!
I want to control the currentState of child component by the button of grandchild component.
The construction as follows;
main.mxml(parent) has three states (login,menu,detail) and they are child components.
And detail.mxml(child comp.) has header area (header.mxml(grandchild comp.)) and body area
and state of the body area is changed(state1-3).
i want to set the currentState of detail(child) to state1
when the button on the header(grandchild comp.) is clicked
and the state of main.mxml(parent) changes from detail to menu.
by parentApplication.currentState i can change the state of main.mxml...
I want to know how to change the state of detail.mxml.
replace "detail" with the name you gave the detail.mxml child object
it's too easy ....
I must study more...
Thank you so much!
It can be lots of fun to,
check some of the tutorial video's on Adobe
download tourdeflex lots of examples to look through
a great reference to dozens of code examples
And of course the forums when you run into trouble.