[flexcoders] Re: BitmapData from asset embedded in external stylesheet swf

2012-05-14 Thread flexwdw
Alex, thanks again for you help, it got me there :) I have found the solution. The problem was that this was indeed a vector graphic I was trying to import, so I needed to bring it in as a SpriteAsset. I can addChild the SpriteAsset to component I'm working from...I can then set that componen

[flexcoders] Re: BitmapData from asset embedded in external stylesheet swf

2012-05-14 Thread flexwdw
Hey Alex, Looks like I'm ignorant here. First, yeah, that was the only thing the trace spit out. Secondly, I have never implemented the external stylesheet with embeds other than stuff in our SWF -- so, it sounded right in my head when I said it. (and the SWF is all artsy and stuff. My home

Re: [flexcoders] Re: BitmapData from asset embedded in external stylesheet swf

2012-05-14 Thread Alex Harui
Hey, your changing your story. First it was embedded PNGs and now it is SWF assets. SWF assets do not have to be Bitmaps. They could be Sprites, MovieClips, etc. I’m surprised that ObjectUtil.toString only showed one line of output. Or did the forum software cut it off? Maybe try describeT

[flexcoders] Re: BitmapData from asset embedded in external stylesheet swf

2012-05-14 Thread flexwdw
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

Re: [flexcoders] Re: BitmapData from asset embedded in external stylesheet swf

2012-05-14 Thread Alex Harui
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? On 5/14/12 9:16 AM, "flexwdw" wrote: Hey Alex, Two things work: 1

[flexcoders] Re: BitmapData from asset embedded in external stylesheet swf

2012-05-14 Thread flexwdw
Hey Alex, Two things work: 1) Using the resource embedded in the external stylesheet SWF using a Canvas and the embedded image as a background-image style. In the case I need, it is very preferable to me to render the image in a Graphics content using fillBitmap, thus I'd rather have a bitmap

Re: [flexcoders] Re: BitmapData from asset embedded in external stylesheet swf

2012-05-14 Thread Alex Harui
What code works when it is in the “code swf”? On 5/11/12 8:43 PM, "flexwdw" wrote: I should add -- this all works with an image embedded in the code swf...it's just when I try to do the same thing from the external swf it doesn't work. I can use the asset as a cursor just fine, so I kno

[flexcoders] Re: BitmapData from asset embedded in external stylesheet swf

2012-05-11 Thread flexwdw
I should add -- this all works with an image embedded in the code swf...it's just when I try to do the same thing from the external swf it doesn't work. I can use the asset as a cursor just fine, so I know there is nothing wrong the asset too. --- In flexcoders@yahoogroups.com, "flexwdw" wr