1 Reply Latest reply on Nov 17, 2009 3:29 PM by Flex harUI

    Using Native Window


      I am new to Flex and I am trying to do a very simple thing but I keep getting Access of undefined property error.


      I am trying to create a native window using the following code



      import flash.display.NativeWindowInitOptions;
      import flash.display.NativeWindowSystemChrome;
      import flash.display.NativeWindowType;
      import flash.display.NativeWindow;
      import  flash.display.StageAlign;
      import  flash.display.StageScaleMode;
      var options:NativeWindowInitOptions = new NativeWindowInitOptions();
      // sets the type to NORMAL
      options.type = NativeWindowType.NORMAL;
      // creates a new NativeWindow and activates it
      var  window:NativeWindow = new NativeWindow( options );


      Now I keep getting this error


      Access of undefiined property options
      Access of undefiined property window


      I have also included all the classes required


      Thanks in advance