If you want to access that then yo must add that custom component to
the stage first then only you will be able to access the children of
that component. Like this -

var myCmp:cmp1=new cmp1();
addChild(myCmp);
Alert.show(myCmp.cvs3.toString())

On Mar 19, 2:53 pm, kaal <[email protected]> wrote:
> 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
--~--~---------~--~----~------------~-------~--~----~
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