I had to use: import flash.display.Sprite;
to do anything with the stage. hope it helps. Greg Murnock ----- Original Message ---- From: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> To: [email protected] Sent: Friday, November 16, 2007 1:09:16 AM Subject: [flexcoders] Stage problems Hello can any one help me. I'm running this sample app I've download and I'm getting this error: "1119: Access of possibly undefined property window through a reference with static type flash.display: Stage." can any one tell me what I'm doing wrong. This is the mxml code which I'm trying to compile to AIR> <?xml version="1.0" encoding="utf- 8"?> <mx:Application xmlns:mx="http://www.adobe. com/2006/ mxml" layout="absolute" height="486" width="911" verticalScrollPolic y="off" horizontalScrollPol icy="off" > <mx:Script> <![CDATA[ [Embed(source= "Image.png" )] [Bindable] public var main:Class; ]]> </mx:Script> <mx:Image mouseDown="stage. window.startMove ()" x="0" y="0" source="{main} "/> <mx:Button click="stage. window.close( )" x="868" y="10" width="27" alpha="0.0" height="32.8" /> </mx:Application> ____________________________________________________________________________________ Never miss a thing. Make Yahoo your home page. http://www.yahoo.com/r/hs

