Flex containers like Canvas override the Player's addChild() method to do all 
sorts of extra stuff. And Flex components like Image rely on their parent 
containers to lay them out with the correct size and position.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of valdhor
Sent: Wednesday, May 06, 2009 9:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: adding to a sprite.





I have seen this question asked before. You may like to check the archives. 
This post may help as well...

http://groups.google.com/group/macromedia.flex.general_discussion/browse_thread/thread/beb04fa6cf84aea5

And this one...

http://userflex.wordpress.com/2008/06/12/sprite-uicomponent/

--- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, 
"Kenneth Sutherland" <kenneth.sutherl...@...> wrote:
>
> Why is it if I have an Image (created in actionscript) and I add it to
> my canvas it works fine, but if I add it to a Sprite it does nothing
> (doesn't even load image, let alone display anything)?
>
> I'm using the addChild method in both cases, and I can see the sprite,
> but the added image doesn't appear.
>
>
>
>
>
>
>
> Cheers.
>
>
>
> ________________________________
>
> realise
>
> .
>
>
> Kenneth Sutherland
>
> Technical Developer
>
> Realise Ltd
> Quay House, 142 Commercial Street, Leith, Edinburgh EH6 6LB
> Tel 0131 476 7432
> www.realise.com <http://www.realise.com/>
>
> Check out some of our recent flex work:
> * Focus on funds UK <http://www.focusonfunds.co.uk/>
> * Focus on funds Europe
> <http://europe.standardlifeinvestments.com/distributor/products_and_serv
> ices/going_further_focus_on_funds/index.html>
> * Fund selector
> <http://uk.standardlifeinvestments.com/ifa/adviser_support/index.html>
>
> * Video view
> <http://uk.standardlifeinvestments.com/ifa/market_views/video_view_and_m
> p3s/index.html>
> Realise are sponsors of the Marketing Society Scotland.
> Realise Limited is registered in Scotland, SC172507.
>
>
>
>
>
> Disclaimer
> ----------------------------------------------------------
> This electronic message contains information which may be privileged and 
> confidential. The information is intended to be for the use of the 
> individual(s) or entity named above. If you are not the intended recipient, 
> be aware that any disclosure, copying, distribution or use of the contents of 
> this information is prohibited. If you have received this electronic message 
> in error, please notify us by telephone on 0131 476 6000 and delete the 
> material from your computer.
> Registered in Scotland number: SC 172507.
> Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB.
>
> This email message has been scanned for viruses by Mimecast.
> ----------------------------------------------------------
>

Reply via email to