try overriding the measureHeight and measuredWidth and return some number and 
see if that works


----- Original Message ----
From: Fidel Viegas <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, February 21, 2008 11:32:06 AM
Subject: Re: [flexcoders] embedded background image not loading

On 2/21/08, Dsd Sds <[EMAIL PROTECTED] com> wrote:

> that didn't work either:
> var img:imgcls= new imgcls() ;
> setStyle("backgroun dImage",img) ;

This is what I meant:

package {
import flash.display. Bitmap;

import mx.containers. HBox;

public class Hbox1 extends HBox{

[Embed(source= "SkyBackground. jpg")]
[Bindable]
public var imgcls:Class;

public function Hbox1():void {
setStyle("backgroun dImage",imgcls) ;
}
}

All the best,

Fidel.




      
____________________________________________________________________________________
Looking for last minute shopping deals?  
Find them fast with Yahoo! Search.  
http://tools.search.yahoo.com/newsearch/category.php?category=shopping

Reply via email to