Re: [flexcoders] Re: sprites in MXML

2006-10-16 Thread learner
PROTECTED] >To: [EMAIL PROTECTED]ups.comSent: Wednesday, 11 October, 2006 7:45:20 PMSubject: Re: [flexcoders] Re: sprites in MXML I think one of us is confused, but I think it's me.  In any event, I can't find a way to add a sprite using pure mxml, but until someone shows us w

Re: [flexcoders] Re: sprites in MXML

2006-10-14 Thread newLearner learner
great help   Thanks and Regards   fl   - Original Message From: Daniel Freiman <[EMAIL PROTECTED]>To: flexcoders@yahoogroups.comSent: Wednesday, 11 October, 2006 7:45:20 PMSubject: Re: [flexcoders] Re: sprites in MXML I think one of us is confused, but I think it's me.  In a

RE: [flexcoders] Re: sprites in MXML

2006-10-14 Thread flex-guitar
10, 2006 10:01 AMTo: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: sprites in MXML Containers require all children to be a UIComponent (or maybe it's implement IUIComponent).  I think all other objects that can have children require chlidren to be DisplayObjects.  S

Re: [flexcoders] Re: sprites in MXML

2006-10-11 Thread Daniel Freiman
I think one of us is confused, but I think it's me.  In any event, I can't find a way to add a sprite using pure mxml, but until someone shows us what we're missing, the actionscript is pretty easy:http://www.adobe.com/2006/mxml"    creationComplete="init()">           

[flexcoders] Re: sprites in MXML

2006-10-11 Thread flexlearner
Yes, Thanks Dan. I perfectly understand that Sprite class should extend UIComponent class to get added in UIcomponent by AddChild method. But its actually vice versa. But then How should try all those samples which comes in Flex builder help and extends the class sprite. What I believe is if th

[flexcoders] Re: sprites in MXML

2006-10-11 Thread flexlearner
Yes, Thanks Dan. I perfectly understand that Sprite class should extend UIComponent class to get added in UIcomponent by AddChild method. But its actually vice versa. But then How should try all those samples which comes in Flex builder help and extends the class sprite. What I believe is if th

Re: [flexcoders] Re: sprites in MXML

2006-10-10 Thread Daniel Freiman
Containers require all children to be a UIComponent (or maybe it's implement IUIComponent).  I think all other objects that can have children require chlidren to be DisplayObjects.  So you can add a DisplayObject as a child to a Sprite, UIComponent, DisplayObjectContainer, etc.  I mostly work wi

[flexcoders] Re: sprites in MXML

2006-10-10 Thread flexlearner
No not in canvas only.. My general question is if at all we have to use sprites in our mxml file..how should we do it.. what will the approach Regards, fl --- In flexcoders@yahoogroups.com, "flex-guitar" <[EMAIL PROTECTED]> wrote: > > I've had trouble with this as well. I ended up putting a UI