I have a method in CustomPanel.mxml and i need to use id which is available in Main.mxml
Below is my sample code
Main.mxml
-------------
<local:CustomDividedBox id="div1">
Custompanel.mxml
----------------------
private function xxxx(){
div1.state = (div1.state == CustomDividedBox.COLLAPSE ? CustomDividedBox.EXPAND : CustomDividedBox.COLLAPSE);
}
Plz provide some sample code.
Thanks,
Alam