Good afternoon group. I didn't get a response on the Flash Tiger list
last week, so that's why I'm cross-posting. Hopefully this isn't
off-topic.

 

I am in the process of going through some AIR tutorials using the Flash

IDE, and I have encountered some errors. I am following the instructions

exactly and I still can't get the app to compile (although I did

discover that the tutorial did leave out some key info). I even tried

the sample file and that won't compile. I am simply trying to make an

application with custom chrome that is draggable, that can be closed,

and that can be minimized. I haven't added any other functionality at

this time. The tutorial says to put the code on a frame in the timeline

(which I wasn't really comfortable with, but what do I know?). Here is

the relevant code:

 

import flash.desktop.NativeApplication;

import flash.events.MouseEvent;

 

back.addEventListener(MouseEvent.MOUSE_DOWN, back_CLICK);

function back_CLICK(e:MouseEvent):void { 

stage.nativeWindow.startMove();

}

 

minimize.addEventListener(MouseEvent.CLICK, minimize_CLICK);

function minimize_CLICK(e:MouseEvent):void {

stage.nativeWindow.minimize();

}

 

closeButton.addEventListener(MouseEvent.CLICK,closeButton_CLICK);

function closeButton_CLICK(e:MouseEvent):void {

NativeApplication.nativeApplication.exit();

}

 

Here is a link to the tutorial:

 

http://www.adobe.com/devnet/air/flash/articles/custom_chrome_app.html 

 

Among other things, I get the following error: "1172: definition

flash.desktop:NativeApplication". I have installed the Flash AIR
plug-in,

and I do get code prompts in the actions window. Does anyone have any

idea why I am getting this error and how I might overcome it? Also, I'd

prefer to include this code in a class, but I'm not quite sure how I

would go about doing that, so any ideas on that would be appreciated as

well.

 

Thanks in advance for any advice.

 

Mike Stocke
Interface Engineer

Organic, Inc. | Detroit
2600 S. Telegraph Road -- Suite 100, Bloomfield Hills, MI 48302
t: 248.454.4015  |  f: 248.454.3370

 

Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Blog: http://Threeminds.Organic.com <http://threeminds.organic.com/> 
Website: www.Organic.com <http://www.organic.com/> 

 


--------------------------------------------------------------------
This email is intended only for the person or entity to which it is addressed 
and may contain information that is privileged, confidential or otherwise 
protected from disclosure. Dissemination, distribution or copying of this email 
or the information herein by anyone other than the intended recipient, or an 
employee or agent responsible for delivering the message to the intended 
recipient, is prohibited.  If you have received this email in error, please 
immediately notify us by calling our Help Desk at (415) 581-5552 or by 
e-mailing us at [EMAIL PROTECTED]


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to