9 Replies Latest reply on Apr 15, 2008 4:19 PM by jinx82002

    After embeding the background, Cant see Text on top

    Shelady Level 1
      I embed the background with an image and now I want to show some text and some link bar on top. I am unable to see anything on top of the background image. Please help.
      Here is my code.
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute" xmlns:local="*"

      import mx.containers.Panel;
      import mx.core.BitmapAsset;

      public var bg:Class;

      import mx.core.UIComponent;

      private function init():void
      var s:Shape = new Shape();
      var u:UIComponent = new UIComponent();
      u.addChild( s );
      this.addChild( u );

      var bd:BitmapData = new bg().bitmapData;
      s.graphics.beginBitmapFill( bd, null, true );
      s.graphics.drawRect(0,0, 3500, 3500); // huge


      <mx:Label text="School For Girls" fontFamily="Times New Roman" color="#ffffff" fontSize="31" bottom="150" horizontalCenter="22"/>