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 has white walls for 
reason...).  It looks like I am getting a sprite from the generated code, 
right? (paths changed, but you get the idea):

package 
{
import mx.core.SpriteAsset;
import flash.display.DisplayObject;

[ExcludeClass]

[Embed(_resolvedSource="/opt2/stuff/Platform/stylesheets/commonV5.1/skins.swf", 
source="/opt2/stuff/Platform/stylesheets/commonV5.1/skins.swf", 
symbol="cursor_move", original="commonV5.1/skins.swf", _line="3665", 
_file="/opt2/development/stuff/Platform/stylesheets/myskins2.css")]
public class myskins2__embed_css_commonV5_1_skins_swf_cursor_move_2116628543 
extends mx.core.SpriteAsset 
{
    public function 
myskins2__embed_css_commonV5_1_skins_swf_cursor_move_2116628543() 
    { 
            super(); 
    }

    public var hour_hand:flash.display.DisplayObject;
    public var minute_hand:flash.display.DisplayObject;

}
}

I'm looking to render whatever this embed is to a UIComponent -- I wanted a 
BitmapData because I was just going to use fillBitmap and render it directly 
without having to have an additional child in the way -- like I would with a 
canvas and a background-image.  Is there a way to do this?

--- In [email protected], Alex Harui <aharui@...> wrote:
>
> 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 describeType instead, or use 
> the –keep-generated-actionscript MXMLC option and see what it used for that 
> asset in the SWF.  I'm trying to see what the base classes are for the embed.
> 
> -Alex

Reply via email to