Re: [flexcoders] Re: sprites in MXML
this is good explanation by Lee, http://www.cynergysystems.com/blogs/page/keunlee?entry=flex_2_beta_3_sprites Regards Ps On 10/12/06, newLearner learner [EMAIL PROTECTED] wrote: Thanks Dan, I understood how to use sprites; I would take some more time to perfectly understand how its been used in mxml to get more advantage, In Flash-As3 applications, there is no problem using it. But with mxml I really need to understand its tricks to use it. For now your example was a great help Thanks and Regards fl - Original Message From: Daniel Freiman [EMAIL 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 what we're missing, the actionscript is pretty easy:?xml version= 1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe. com/2006/ mxml creationComplete=init() mx:Script ![CDATA[ public function init():void { var sprite:Sprite = new Sprite(); // replace Sprite (both places) with class you want to add // drawing a rectangle on the sprite to prove adding the sprite worked in this example sprite.graphics. beginFill( 0); sprite.graphics. drawRect( 0,0,200,400) ; holder.addChild( sprite); // add the sprite to any UIComponent } ]] /mx:Script mx:UIComponent id=holder //mx:ApplicationAdditionally, intead of creating a Flex Project, you could create an Actionscript Project which I think uses Sprite as it's base class instead of Application. - Dan On 10/11/06, flexlearner flexlearner@ yahoo.co. in wrote: Yes, Thanks Dan. I perfectly understand that Sprite class shouldextend UIComponent class to get added in UIcomponent by AddChildmethod. 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 they have given example there should be some wayto use it also... How should I try all those code samples that is given in flex builder help.Regardsfl--- In [EMAIL PROTECTED] ups.com , Daniel Freiman [EMAIL PROTECTED] .wrote: Containers require all children to be a UIComponent (or maybe it'simplement IUIComponent) .I think all other objects that can have children require chlidren to be DisplayObjects.So you can add a DisplayObject as achild to a Sprite, UIComponent, DisplayObjectContai ner, etc.I mostly workwith Actionscript so I don't know about puting Sprites in MXML, but if you can, the Sprite would need to be the child of a UIComponent. - Dan On 10/10/06, flexlearner flexlearner@ ... wrote: No not in canvas only.. My general question is if at all we have to use sprites in ourmxml file..how should we do it.. what will the approach Regards, fl --- In [EMAIL PROTECTED] ups.com, flex-guitar flex@ wrote: I've had trouble with this as well. I ended up putting a UIComponent in the Canvas and adding children to it instead of to the Canvas. I don't know why Canvas throws an error, since it is a subclassof UIComponent, but it does. HTH, Derek -Original Message- From: [EMAIL PROTECTED] ups.com [mailto: [EMAIL PROTECTED] ups.com]On Behalf Of newLearner learner Sent: Tuesday, October 10, 2006 8:10 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] sprites in MXML Hello , I have a very basic question Please can somebody tell me how should I use sprites in my mxmlfile i get errors everytime i try to something like:Canvas_instance. addChild( spriteInstace) Please tell me the way out - - - - - --- -- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW __ NOD32 1.1796 (20061010) Information __ This message was checked by NOD32 antivirus system. http://www.eset. com -- Flexcoders Mailing List FAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Search Archives: http://www.mail- archive.com/ flexcoders%40yahoogroups. com Yahoo! Groups Links --Flexcoders Mailing ListFAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups Links* To visit your group on the web, go to: http://groups. yahoo.com/ group/flexcoders /* Your email settings:Individual Email | Traditional* To change settings online go to: http://groups. yahoo.com/ group/flexcoders /join(Yahoo! ID required)* To change settings via email:mailto: flexcoders-digest@ yahoogroups. commailto:flexcoders-fullfeat [EMAIL PROTECTED] .com * To unsubscribe from this group, send an email to: flexcoders-unsubscr [EMAIL PROTECTED] com* Your use of Yahoo! Groups is subject to: http
RE: [flexcoders] Re: sprites in MXML
Ah, that makes sense. Thanks! fl, does this help you? You can always add a UIComponent in MXML mx:UIComponent id="targetArea" and then add Children to it... Derek -Original Message-From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]On Behalf Of Daniel FreimanSent: Tuesday, October 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. So you can add a DisplayObject as a child to a Sprite, UIComponent, DisplayObjectContainer, etc. I mostly work with Actionscript so I don't know about puting Sprites in MXML, but if you can, the Sprite would need to be the child of a UIComponent. - Dan On 10/10/06, flexlearner flexlearner@yahoo.co.in wrote: No not in canvas only..My general question is if at all we have to use sprites in our mxmlfile..how should we do it.. what will the approachRegards,fl--- In [EMAIL PROTECTED]ups.com, "flex-guitar" [EMAIL PROTECTED] wrote: I've had trouble with this as well. I ended up putting aUIComponent in the Canvas and adding children to it instead of to the Canvas. I don't know why Canvas throws an error, since it is a subclass of UIComponent, but it does. HTH, Derek -Original Message- From: [EMAIL PROTECTED]ups.com[mailto:[EMAIL PROTECTED]ups.com]On Behalf Of newLearner learner Sent: Tuesday, October 10, 2006 8:10 AM To: [EMAIL PROTECTED]ups.com Subject: [flexcoders] sprites in MXML Hello , I have a very basic question Please can somebody tell me how should I use sprites in my mxmlfile i get errors everytime i try to something like:Canvas_instance.addChild(spriteInstace) Please tell me the way out -- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! MessengerVersion 8. Get it NOW __ NOD32 1.1796 (20061010) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com--Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* Your email settings:Individual Email | Traditional* To change settings online go to: http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)* To change settings via email:mailto: flexcoders-digest@yahoogroups.com mailto:flexcoders-fullfeat[EMAIL PROTECTED].com* To unsubscribe from this group, send an email to: flexcoders-unsubscr[EMAIL PROTECTED]com* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __ NOD32 1.1796 (20061010) Information __This message was checked by NOD32 antivirus system.http://www.eset.com __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___
Re: [flexcoders] Re: sprites in MXML
Thanks Dan, I understood how to use sprites; I would take some more time to perfectly understand how its been used in mxml to get more advantage, In Flash-As3 applications, there is no problem using it. But with mxml I really need to understand its tricks to use it. For now your example was a 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 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:?xml version=" 1.0" encoding="utf-8"?mx:Application xmlns:mx="http://www.adobe. com/2006/ mxml" creationComplete="init()" mx:Script ![CDATA[ public function init():void { var sprite:Sprite = new Sprite(); // replace "Sprite" (both places) with class you want to add // drawing a rectangle on the sprite to prove adding the sprite worked in this example sprite.graphics. beginFill( 0); sprite.graphics. drawRect( 0,0,200,400) ; holder.addChild( sprite); // add the sprite to any UIComponent } ]] /mx:Script mx:UIComponent id="holder" //mx:ApplicationAdditionally, intead of creating a Flex Project, you could create an Actionscript Project which I think uses Sprite as it's base class instead of Application. - Dan On 10/11/06, flexlearner flexlearner@ yahoo.co. in wrote: Yes, Thanks Dan. I perfectly understand that Sprite class shouldextend UIComponent class to get added in UIcomponent by AddChildmethod. But its actually vice versa. But then How should try allthose samples which comes in Flex builder help and extends the class sprite.What I believe is if they have given example there should be some wayto use it also... How should I try all those code samples that isgiven in flex builder help.Regardsfl--- In [EMAIL PROTECTED] ups.com, "Daniel Freiman" [EMAIL PROTECTED] .wrote: Containers require all children to be a UIComponent (or maybe it'simplement IUIComponent) .I think all other objects that can have children require chlidren to be DisplayObjects.So you can add a DisplayObject as achild to a Sprite, UIComponent, DisplayObjectContai ner, etc.I mostly workwith Actionscript so I don't know about puting Sprites in MXML, but if you can, the Sprite would need to be the child of a UIComponent. - Dan On 10/10/06, flexlearner flexlearner@ ... wrote: No not in canvas only.. My general question is if at all we have to use sprites in ourmxml file..how should we do it.. what will the approach Regards, fl--- In [EMAIL PROTECTED] ups.com, "flex-guitar" flex@ wrote: I've had trouble with this as well. I ended up putting a UIComponent in the Canvas and adding children to it instead of to the Canvas. I don't know why Canvas throws an error, since it is a subclassof UIComponent, but it does. HTH, Derek -Original Message- From: [EMAIL PROTECTED] ups.com [mailto:[EMAIL PROTECTED] ups.com]On Behalf Of newLearner learner Sent: Tuesday, October 10, 2006 8:10 AM To: [EMAIL PROTECTED] ups.com Subject: [flexcoders] sprites in MXML Hello , I have a very basic questionPlease can somebody tell me how should I use sprites in my mxmlfile i get errors everytime i try to something like:Canvas_instance. addChild( spriteInstace) Please tell me the way out - - - - - --- -- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW __ NOD32 1.1796 (20061010) Information __ This message was checked by NOD32 antivirus system.http://www.eset. com -- Flexcoders Mailing List FAQ:http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Search Archives: http://www.mail- archive.com/ flexcoders%40yahoogroups. com Yahoo! Groups Links --Flexcoders Mailing ListFAQ: http://groups. yahoo.com/ group/flexcoders /files/flexcoder sFAQ.txt Search Archives: http://www.mail- archive.com/ flexcoders% 40yahoogroups. comYahoo! Groups Links* To visit your group on the web, go to: http://groups. yahoo.com/ group/flexcoders /* Your email settings:Individual Email | Traditional* To change settings online go to: http://groups. yahoo.com/ group/flexcoders /join(Yahoo! ID required)* To change settings via email:mailto: flexcoders-digest@ yahoogroups. commailto:flexcoders-fullfeat [EMAIL PROTECTED] .com* To unsubscribe from this group, send an email to:flexcoders-unsubscr [EMAIL PROTECTED] com* Your use of Yahoo! Groups is subject to:http://docs. yahoo.com/ info/terms/ Find out what India is talking about on - Yahoo! Answers India S
[flexcoders] Re: sprites in MXML
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 they have given example there should be some way to use it also... How should I try all those code samples that is given in flex builder help. Regards fl --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: 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 with Actionscript so I don't know about puting Sprites in MXML, but if you can, the Sprite would need to be the child of a UIComponent. - Dan On 10/10/06, flexlearner [EMAIL PROTECTED] wrote: 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 flex@ wrote: I've had trouble with this as well. I ended up putting a UIComponent in the Canvas and adding children to it instead of to the Canvas. I don't know why Canvas throws an error, since it is a subclass of UIComponent, but it does. HTH, Derek -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of newLearner learner Sent: Tuesday, October 10, 2006 8:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sprites in MXML Hello , I have a very basic question Please can somebody tell me how should I use sprites in my mxmlfile i get errors everytime i try to something like: Canvas_instance.addChild(spriteInstace) Please tell me the way out -- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW __ NOD32 1.1796 (20061010) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
[flexcoders] Re: sprites in MXML
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 they have given example there should be some way to use it also... How should I try all those code samples that is given in flex builder help. Regards fl --- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED] wrote: 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 with Actionscript so I don't know about puting Sprites in MXML, but if you can, the Sprite would need to be the child of a UIComponent. - Dan On 10/10/06, flexlearner [EMAIL PROTECTED] wrote: 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 flex@ wrote: I've had trouble with this as well. I ended up putting a UIComponent in the Canvas and adding children to it instead of to the Canvas. I don't know why Canvas throws an error, since it is a subclass of UIComponent, but it does. HTH, Derek -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of newLearner learner Sent: Tuesday, October 10, 2006 8:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sprites in MXML Hello , I have a very basic question Please can somebody tell me how should I use sprites in my mxmlfile i get errors everytime i try to something like: Canvas_instance.addChild(spriteInstace) Please tell me the way out -- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW __ NOD32 1.1796 (20061010) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders% 40yahoogroups.com Yahoo! Groups Links -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
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 what we're missing, the actionscript is pretty easy:?xml version= 1.0 encoding=utf-8?mx:Application xmlns:mx=http://www.adobe.com/2006/mxml creationComplete=init() mx:Script ![CDATA[ public function init():void { var sprite:Sprite = new Sprite(); // replace Sprite (both places) with class you want to add // drawing a rectangle on the sprite to prove adding the sprite worked in this example sprite.graphics.beginFill(0); sprite.graphics.drawRect(0,0,200,400); holder.addChild(sprite); // add the sprite to any UIComponent } ]] /mx:Script mx:UIComponent id=holder //mx:ApplicationAdditionally, intead of creating a Flex Project, you could create an Actionscript Project which I think uses Sprite as it's base class instead of Application. - DanOn 10/11/06, flexlearner [EMAIL PROTECTED] wrote: Yes, Thanks Dan. I perfectly understand that Sprite class shouldextend UIComponent class to get added in UIcomponent by AddChildmethod. But its actually vice versa. But then How should try allthose samples which comes in Flex builder help and extends the class sprite.What I believe is if they have given example there should be some wayto use it also... How should I try all those code samples that isgiven in flex builder help.Regardsfl--- In flexcoders@yahoogroups.com, Daniel Freiman [EMAIL PROTECTED]wrote: Containers require all children to be a UIComponent (or maybe it'simplement IUIComponent).I think all other objects that can have children require chlidren to be DisplayObjects.So you can add a DisplayObject as achild to a Sprite, UIComponent, DisplayObjectContainer, etc.I mostly workwith Actionscript so I don't know about puting Sprites in MXML, but if you can, the Sprite would need to be the child of a UIComponent. - Dan On 10/10/06, flexlearner [EMAIL PROTECTED] wrote: No not in canvas only.. My general question is if at all we have to use sprites in ourmxml file..how should we do it.. what will the approach Regards, fl --- In flexcoders@yahoogroups.com, flex-guitar flex@ wrote: I've had trouble with this as well. I ended up putting a UIComponent in the Canvas and adding children to it instead of to the Canvas. I don't know why Canvas throws an error, since it is a subclassof UIComponent, but it does. HTH, Derek -Original Message- From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com]On Behalf Of newLearner learner Sent: Tuesday, October 10, 2006 8:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sprites in MXML Hello , I have a very basic question Please can somebody tell me how should I use sprites in my mxmlfile i get errors everytime i try to something like:Canvas_instance.addChild(spriteInstace) Please tell me the way out -- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW __ NOD32 1.1796 (20061010) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- Flexcoders Mailing List FAQ:http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links* To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* Your email settings:Individual Email | Traditional* To change settings online go to: http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)* To change settings via email:mailto: [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to
[flexcoders] Re: sprites in MXML
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 UIComponent in the Canvas and adding children to it instead of to the Canvas. I don't know why Canvas throws an error, since it is a subclass of UIComponent, but it does. HTH, Derek -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of newLearner learner Sent: Tuesday, October 10, 2006 8:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sprites in MXML Hello , I have a very basic question Please can somebody tell me how should I use sprites in my mxmlfile i get errors everytime i try to something like: Canvas_instance.addChild(spriteInstace) Please tell me the way out -- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW __ NOD32 1.1796 (20061010) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ * Your email settings: Individual Email | Traditional * To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) * To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] * Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
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. So you can add a DisplayObject as a child to a Sprite, UIComponent, DisplayObjectContainer, etc. I mostly work with Actionscript so I don't know about puting Sprites in MXML, but if you can, the Sprite would need to be the child of a UIComponent. - DanOn 10/10/06, flexlearner [EMAIL PROTECTED] wrote: No not in canvas only..My general question is if at all we have to use sprites in our mxmlfile..how should we do it.. what will the approachRegards,fl--- In flexcoders@yahoogroups.com, flex-guitar [EMAIL PROTECTED] wrote: I've had trouble with this as well. I ended up putting aUIComponent in the Canvas and adding children to it instead of to the Canvas. I don't know why Canvas throws an error, since it is a subclass of UIComponent, but it does. HTH, Derek -Original Message- From: flexcoders@yahoogroups.com[mailto:flexcoders@yahoogroups.com]On Behalf Of newLearner learner Sent: Tuesday, October 10, 2006 8:10 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] sprites in MXML Hello , I have a very basic question Please can somebody tell me how should I use sprites in my mxmlfile i get errors everytime i try to something like:Canvas_instance.addChild(spriteInstace) Please tell me the way out -- Find out what India is talking about on - Yahoo! Answers India Send FREE SMS to your friend's mobile from Yahoo! MessengerVersion 8. Get it NOW __ NOD32 1.1796 (20061010) Information __ This message was checked by NOD32 antivirus system. http://www.eset.com --Flexcoders Mailing ListFAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links * To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/* Your email settings:Individual Email | Traditional* To change settings online go to: http://groups.yahoo.com/group/flexcoders/join(Yahoo! ID required)* To change settings via email:mailto: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]* To unsubscribe from this group, send an email to: [EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ __._,_.___ -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com SPONSORED LINKS Software development tool Software development Software development services Home design software Software development company Your email settings: Individual Email|Traditional Change settings via the Web (Yahoo! ID required) Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe __,_._,___