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

> that didn't work either:
> var img:imgcls= new imgcls() ;
> setStyle("backgroundImage",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("backgroundImage",imgcls) ;
  }
}

All the best,

Fidel.

Reply via email to