i'm changing an mx:Image's source via load(). i'm also adding a couple
of TextFields to the Image via addChildAt() after the new image is
loaded via a Complete event. other shapes/sprites can also be added
via user interaction.

i need to selectively remove some of the Image's children & maintain
the newly loaded image at 0 child so stuff can continue to be drawn
over it. however beyond the initial image load, the new image isn't
always the 0th child, so i'm having a tough time not removing it as i
step thru the children (even though i'm adding the children at a
specific index always >0). tried checking children names (the new
image is always "FlexLoaderXXX" where XXX is some number) but i guess
i'm missing something as it seems to not work consistently. i suspect
it's my sequential way of thinking....

is there some way to control the index where the new image is loaded
so it's always 0? i don't get how to accomplish this via the way i'm
now loading the new image: "theImage.load(newImageSource);"

or is there a better method to handle this?

thanks.


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

Reply via email to