You can embed several images separately and assign those variables to the 
source.


On 4/22/10 7:18 AM, "Wally Kolcz" <[email protected]> wrote:






I am creating a coloring book app and I have an image in a skin that can
be colored on. It works fine when I set the skin's background fill to:
<s:BitmapImage source="@Embed('assets/img/drawings/alien.png')"
fillMode="scale" top="1" bottom="1" left="1" right="1"/>

But i want to change the source image when kids pick different images to
color. I can't use binding or a variable in an @Embed due to a metadata
issue. I can't change the source to
source="assets/img/drawings/alien.png" or it won't render. Any ideas on
how I can make the source dynamic?

Thanks!






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui

Reply via email to