hi,
if u want to add any sprite class to any flex container u have to add that
sprite class to UIComponent class then add that uiComponent object to that
particular flex container.

i.e
            var ss:Sprite= new Sprite();
            var uc:UIComponent = new UIComponent();
            uc.addChild(ss);
            container.addChild(uc);

there is another way to add sprite class direct to container class
but u have to use rawChildren property of that particular container.

i.e
            var ss:Sprite= new Sprite();
            ss.graphics.beginFill(0xffff00);
            ss.graphics.drawRect(100,100,100,100);
            container.rawChildren.addChild(ss);

On Sat, Aug 22, 2009 at 9:56 AM, divya <[email protected]> wrote:

>
> hi , every one
> i am new in action script . i am creating a textinput in action
> script  class which extends sprite. . and want to add it at canvas in
> application. but its not working. while if i  am adding textfield its
> working. what is the basic reason behind it. how  can i know  which
> control can be  add to a conatiner and which is not.
> please help me . i will be highly obliged to u.
>
> thanks and regards
> divya singh
>
> >
>


-- 
regards,
anurag

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