So basicly you have to add a new BitmapData with some extends of your
UIComponent you can create in line for example


import mx.core.UIComponent;

public var myBG:Class
[Embed(source='myimage.png')];

public var myRaw:Shape;
public var myComp:UIComponent;
public var  writeBG:BitmapData ;

private function setmyBG():void
{
          myRaw = new Shape();
           myComp = new UIComponent();
           myComp.addChild(myRaw);
           this.addChildAt(myComp,1);
        // start draw
              writeBG  = new myBG().bitmapData;
               myRaw.graphics.beginBitmapFill(writeBG,null, true);
               myRaw.graphics.drawRect(0,0,mx.Application.application.width
,mx.Application.application.height);
               myRaw.graphics.endFill();
}


Maybe helped you


Regards.

On 2/22/07, mazarflex <[EMAIL PROTECTED]> wrote:

  i want to add a background image that is tiled to my application.Is
there a way to do this? Also, can i use adjust opacity
with it too?




--
----------------------------
Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta

Reply via email to