Home Tutorials Forums Articles Blogs Movies Library Employment Press
Prev Previous Post   Next Post Next
Old 08-08-2008, 06:35 PM   #1
mousels
Registered User
 
Join Date: Apr 2007
Posts: 3
Default Buttons in Air

Hi all

I've recently started learning how to develop desktop things using Flash CS3 and Air. However, I'm having some problems with the basics of the Air scripting.

Not sure if I've done something wrong, but I cannot add actionscript to any of the buttons I create.

What I'm wanting to do is create a button that I'm going to place in one of the corners. When the button is pressed I'm wanting it to do is run the nativeWindow.close piece of actionscript.

Am I able to add the code the the button as I normally (directly onto the button itself)? Or do I need to create a function that will locate the button and run the code when the button is pressed?

Any help is appreciated

mousels
mousels is offline   Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
exe installer for AIR runtime and program evride AIR (Apollo) 1 09-14-2009 09:15 PM
Algorithm for repositioning buttons jfbaro ActionScript 2.0 2 12-21-2007 07:23 AM
Buttons that just won't leave... RQFlash ActionScript 2.0 5 07-25-2005 06:51 PM
LoadMovie and turn off buttons below billingsgate Other Flash General Questions 2 07-01-2005 03:58 PM
Buttons under buttons under buttons... Mortimer Jazz ActionScript 2.0 2 07-14-2004 12:27 PM


All times are GMT. The time now is 09:06 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.