Thanks for the help, Alex!

So, code:

trace( ObjectUtil.toString( 
StyleManager.getStyleDeclaration(".wdwTest").getStyle("icon")) );
                        
var test:Class =        
StyleManager.getStyleDeclaration(".wdwTest").getStyle("icon");
var bitmap:Bitmap = new test();

CSS (cursor_move is a resource I am using elsewhere in the app already):  
.wdwTest
{
        icon: Embed(source="commonV5.1/skins.swf", symbol="cursor_move");
}

output:
(myskins2__embed_css_commonV5_1_skins_swf_cursor_move_2116628543)

Exception:

TypeError: Error #1034: Type Coercion failed: cannot convert 
myskins2__embed_css_commonV5_1_skins_swf_cursor_move_2116628543@366be041 to 
flash.display.Bitmap.


thanks!

--- In flexcoders@yahoogroups.com, Alex Harui <aharui@...> wrote:
>
> Run ObjectUtil.toString() on the results of getStyle("testPng").  That might 
> shed some light on what it is.  It might already be the instance of a Bitmap 
> instead of the class itself.  Also, what CSS did you use to embed?
> 

Reply via email to