Avatar of alamflex
alamflex

asked on 

How to get id value of Main.mxml file to CustomPanel.mxml file?

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
Apache Flex

Avatar of undefined
Last Comment
ute_arbeit

8/22/2022 - Mon