| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Registered User
Join Date: Mar 2004
Location: Winston-Salem, NC
Posts: 75
|
I created an AIR weather app. How do I create a way to close it within the app and how can I make the app draggable across the desktop?
|
|
|
|
|
|
#2 |
|
Member
Join Date: Mar 2007
Posts: 89
|
I've been having a similar issue, trying to get the air app to close (I'm using Flash CS3). I had been using fscommand("quit"), but that wasn't working. Here's the solution I found, and hopefully you can find something useful in this.
first you have to grab a reference to the native window: ActionScript Code:
For me I was then able to use; ActionScript Code:
hope this helps ![]()
__________________
gamespokane |
|
|
|
|
|
|
|
|
#3 |
|
Registered User
Join Date: Mar 2004
Location: Winston-Salem, NC
Posts: 75
|
Your're definitely on track with the nativewindow stuff. How do I make a MC with instance name close_me invoke appWindow.close()?
Last edited by djones; 02-28-2008 at 04:28 PM.. |
|
|
|
|
|
#4 |
|
Member
Join Date: Mar 2007
Posts: 89
|
Is this what you're looking for?
ActionScript Code:
__________________
gamespokane |
|
|
|
|
|
#5 |
|
Registered User
Join Date: Mar 2004
Location: Winston-Salem, NC
Posts: 75
|
I got it to work using this
ActionScript Code:
LOL missed your reply by a second.. THANKS! Last edited by djones; 02-28-2008 at 04:35 PM.. |
|
|
|
|
|
#6 |
|
Registered User
Join Date: Mar 2004
Location: Winston-Salem, NC
Posts: 75
|
Now if I can just figure out how to drag this thing. I'll be in good shape.
|
|
|
|
|
|
#7 |
|
Member
Join Date: Mar 2007
Posts: 89
|
ActionScript Code:
![]()
__________________
gamespokane |
|
|
|
|
|
#8 |
|
Registered User
Join Date: Mar 2004
Location: Winston-Salem, NC
Posts: 75
|
*bows*
Thanks. Where did you find documentation on nativeWindow? |
|
|
|
|
|
#9 |
|
Member
Join Date: Mar 2007
Posts: 89
|
__________________
gamespokane |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Drag Limits: so close, yet too far | MatthewMacMilla | ActionScript 2.0 | 0 | 02-12-2008 03:59 AM |
| buttons in drag & drop map | nzassenhaus | Flash 8 General Questions | 1 | 12-09-2005 04:52 PM |
| drag n' drop boundries help | Pyroclasm | ActionScript 1.0 (and below) | 2 | 05-18-2005 10:38 PM |
| Can u make part of a movieclip respond to drag? | ivanjs | ActionScript 1.0 (and below) | 2 | 04-02-2004 02:24 PM |
| AS stops working after Drag - why? | Metrov 8 | ActionScript 1.0 (and below) | 2 | 03-23-2001 07:10 PM |