try for
mx.core.Application.application.<class name>...and so on.

Regards
Abhinav Mehta
MSRIT- Bangalore
  ----- Original Message ----- 
  From: dileep singh 
  To: [email protected] 
  Sent: Saturday, November 07, 2009 12:49 PM
  Subject: [flex_india:26473] Re: How to acess one mxml component id in another 
mxml component?


  Sampath,
  Before adding I want to access it through Application.application....
  But I am not able to access it..


  On Fri, Nov 6, 2009 at 8:07 PM, Sampath <[email protected]> wrote:


    Hi,

    Try this


    public var abcd:ABCD=new ABCD();


    addChild(abcd);

    Regards
    Sampath

    --------------------------------------------------
    From: "dilu" <[email protected]>
    Sent: Friday, November 06, 2009 5:46 PM
    To: "Flex India Community" <[email protected]>
    Subject: [flex_india:26463] How to acess one mxml component id in another
    mxml component?


    >
    > Hi ,
    > I want to access one mxml componet id to another mxml component .
    > I have one mxml component(ABCD) where there is a Vbox whose id is
    > vbox1.
    > I want to access this vbox1 to another mxml component (DEFG).
    > To access this I am doing something like this:
    > 1.On the main mxml application I have declared one variable :-
    > public var abcd:ABCD=new ABCD();
    > 2.On the DEFG mxml component I am trying to access vbox1 like this:
    > Application.application.abcd.vbox1.
    > But its throwing error "Cannot access a property or method of a null
    > object reference."
    > Do any of you is having any idea how to deal with this ?
    > Regards
    > Dileep
    >
    > >
    >


    

--~--~---------~--~----~------------~-------~--~----~
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