The list of images is coming from a database. Can I dyanmically create the Embed and Class and then switch them out when the user click on them from a list?

On 4/22/2010 1:35 PM, Alex Harui wrote:

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


On 4/22/10 7:18 AM, "Wally Kolcz" <[email protected] <[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 <http://blogs.adobe.com/aharui>

Reply via email to