Sorry, this somehow got cut off and came out completely incoherently.
What I meant to write is:

var c:Class = (SessionLocator.getSession().assets[bgImage] as Class);
var b:Bitmap = Bitmap(c as Bitmap);
if(icon != null)                                
{graphics.beginBitmapFill(icon.bitmapData);

I've tried using BitmapData, BitmapAsset, and Bitmap. Any ideas or advice?


--- In [email protected], "joshuajnoble" <[EMAIL PROTECTED]> wrote:
>
> I'm trying to get BitmapData from an icon in a swf file that is
> referenced as a class. I need to get the BitmapData so that I can use
> the 'beginBitmapFill' from the Graphics. Here's what I'm trying to do
> (which doesn't work at all, btw)
> 
>                       var c:Class = 
> (SessionLocator.getSession().assets[bgImage]
> as Class);
>                       var b:Bitmap = Bitmap();
>                       var icon:BitmapAsset = BitmapAsset(b);
>                       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