Hi, you can add child the vbox into your component .
Regards, Jakir On Mon, Nov 9, 2009 at 10:35 AM, dileep singh <[email protected]>wrote: > I need to access one vbox which is inside one component. > > > On Sat, Nov 7, 2009 at 7:27 PM, tahir alvi <[email protected]> wrote: > >> You need to access the component or componenet methods? >> >> Please clear to me. >> >> Thanks. >> >> >> On 11/7/09, dileep singh <[email protected]> wrote: >>> >>> 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 >>>> > >>>> > > >>>> > >>>> >>>> >>>> >>>> >>>> -- Thanks & Regards M.Jakir Qureshi --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

