You can use FlexGlobals.toplevelapplication.variablename if you are using
Flex4

On Tue, May 17, 2011 at 6:16 PM, Shaleen Jain <[email protected]>wrote:

> You can use "Application.application.any_property" to access the
> public properties of Main.mxml.
>
> Though not always a good approach to directly access public properties
> like this.
>
> Thanks,
> Shaleen Jain
>
>
> On May 17, 8:06 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.

Reply via email to