Hi Kaal,

this.addChild(myComp);
Alert.show(myCmp.cvs3.toString())

this should work.

: Vaibhav

On Mar 19, 6:21 pm, GAGAN anand <[email protected]> wrote:
> Hi Kaal
>
> Are you creating the childs through Action Script or mxml tags??
>
> Regards
> Gagan
>
> 2009/3/19 kaal <[email protected]>
>
>
>
>
>
> > Hi,
>
> > I need to access child elements of my components lets say i have a
> > component named cmp1 and it has 3 canvas cvs1,cv2 and cvs3 in the
> > order that cvs3 is inside cvs2 and svs2 is inside cvs1
>
> > var myCmp:cmp1=new cmp1();
> > Alert.show(myCmp.cvs3.toString())
>
> > these two lines will give me null pointer because when i create cmp1
> > flex actually dont create its child components , how can i make flex
> > to create all the child elements when i create a component
>
> > Thanks- Hide quoted text -
>
> - Show quoted text -

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