Problem solved:

Seems that the image size created by myClass was 0x0 px (?!) by 
default: that's why the image was invisible.

Danko


--- In flexcoders@yahoogroups.com, "Danko Kozar" <[EMAIL PROTECTED]> 
wrote:
>
> Hi,
> I have a great problem with this one.
> I'd like to use the embedded image:
> 
> [Embed(source="images/window.png")]
> [Bindable] public var imgWindow:Class;
> 
> .. in a class (that extends UIComponent) that generates the image 
as 
> it's child:
> 
> protected override function createChildren():void {
>       super.createChildren();
>       var image:Image = new Image();                          
>       image.source = this.imageClass;
>       this.addChild(image);
>       }
> }
> 
> (I'm passing the image (imgWindow) to my class via the "imageClass" 
> property)
> The problem is that the image doesn't render at all.
> 
> Any sugesstion is welcome. Thanks in advance!
>


Reply via email to