1 Reply Latest reply on Aug 22, 2008 3:54 AM by anirudhs

    Flex components on Native Window

    flashirfu
      When I create a new NativeWindow and add any flex component into it. It is not getting displayed in newely created window.
      If I add HtmlLoader it is showing the html file also if I draw some Sprite on new nativewindow, it is getting displayed.

      BUT why not all Flex components ( Buttons, Img, etc...)

      Please help me. I am stuck up here.
      my code snap is as below:

      ------------------------------------------------------------------------------------------ ----------------------------------------------------------------------------
      var iopt:NativeWindowInitOptions = new NativeWindowInitOptions();
      iopt.maximizable = false;
      iopt.minimizable = false;
      iopt.systemChrome = NativeWindowSystemChrome.NONE;
      iopt.type = NativeWindowType.UTILITY;
      iopt.transparent = true;
      var xIcon:NativeWindow = new NativeWindow(iopt);
      xIcon.stage.align = StageAlign.TOP_LEFT;
      xIcon.stage.scaleMode = "noScale";
      xIcon.height = 200;
      xIcon.width = 200;
      var img:Image = new Image();
      img.height = 100;
      img.width = 100;
      img.source = sprint_icon;
      xIcon.stage.addChild(img);
      var lXm:Label = new Label();
      lXm.x = 10;
      lXm.y = 10;
      lXm.width = 40;
      lXm.height = 30;
      lXm.visible = true;
      lXm.text = "XOHM";
      xIcon.stage.addChild(lXm);

      xIcon.activate();

      ------------------------------------------------------------------------------------------ ----------------------------------------------------------------------------