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" verticalScrollPolicy="off"
horizontalScrollPolicy="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>

Reply via email to