OK. I installed what I think is the latest AIR extension for Flash --
beta 3. I deleted old beta files and ran the cleanup utility. I selected
AIR 1.0 in the Publish Settings. I still get the error.

I really want to learn how to use AIR with the Flash IDE, but for some
reason it won't work for me right now. Any other suggestions?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jonathan
howe
Sent: Monday, November 17, 2008 5:17 PM
To: Flash Coders List
Subject: Re: [Flashcoders] 1172: definition
flash.desktop:NativeApplication

It does sound like you don't have "Adobe Air" as the "version" value in
the
Publish Settings dialog. Can you check that?

There should be no problem in including that code in a class...
references
to NativeApplication are static and it could easily be put in a main
document class or deeper.

Pedro, there is a way to get a temporary certificate via the Commands ->
Air
and Application Settings dialog. There are good tutorials on Lynda.com
that
are part of the free intro videos (i.e. membership is not required).
http://movielibrary.lynda.com/html/modPage.asp?ID=535

-jonathan




On Mon, Nov 17, 2008 at 2:28 PM, Pedro Kostelec <[EMAIL PROTECTED]>
wrote:

> I tried your code and it works well. I got no error.  (using Fl cs4).
I
> mean, when i press Cntrl+ENTER the app runs all right. (But i have no
idea
> how to actually make it a real AIR app; when i click on publish i get
a
> window asking for a digital certificate! Where can i get it?)Maybe you
> don't
> have the latest update Air plug-in?
>
> I just started playing with AIR yesterday, so i don't have any ideas
what
> else could be the reason for your problem.
>
> Pedro
>
>
>
>
> On Mon, Nov 17, 2008 at 5:46 PM, Michael Stocke <[EMAIL PROTECTED]>
> wrote:
>
> > 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/>
<
> http://threeminds.organic.com/>
> > Website: www.Organic.com <http://www.organic.com/> <
> http://www.organic.com/
> >
> >
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



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

--------------------------------------------------------------------
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