--- In [email protected], "Roger Gonzalez" <[EMAIL PROTECTED]> wrote:
>
> You can't cast a Class to a Bitmap.  You need to do BitmapAsset(new
> c()).
>  

Hi Roger,

I had given that a try but got type casting errors then too. I'm not sure 
what's wrong with it 
since this is basically right out of the documentation for 
BitmapAsset. Here's what I tried:
                        var c:Class = 
SessionLocator.getSession().assets[bgImage];
                        var icon:BitmapAsset = BitmapAsset(new c());

                        if(icon != null)
                                graphics.beginBitmapFill(icon.bitmapData);




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