hi Naveen, I think you can use* this* keyword ,there is no need to use id.
Thanks krishna shinde On Tue, May 17, 2011 at 8:36 AM, Navin <[email protected]> wrote: > 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:CustomDivideBox id="div1"> > > Custompanel.mxml > ------------------ > > private function xxxx(){ > div1.state = (div1.state == CustomDividedBox.COLLAPSE ? > CustomDividedBox.EXPAND : CustomDividedBox.COLLAPSE); > } > Please provide some sample code. > > Thanks, > Naveen. > > -- > 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.

