adnan794
11-16-2009, 10:58 PM
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 );
window.active();
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
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 );
window.active();
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