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]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
Regards
Mayur


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





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

__,_._,___

Reply via email to