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
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
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
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
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
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
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
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
8 matches
Mail list logo