1 Reply Latest reply on Mar 24, 2008 3:37 AM by anirudhs

    add component to a NativeWindow

    ilsh Level 1
      There must be a very simple solution but I can't figure it out. When I create a NativeWindow and try to add something (say a label) on it, nothing is added.

      var label:Label = new Label();
      label.text = "I'm a label";
      var opt:NativeWindowInitOptions = new NativeWindowInitOptions();
      var w:NativeWindow = new NativeWindow(opt);
      w.stage.addChild(label);
      w.activate();

      Any help? Thanks a lot.