Flex :: Detecting Different Quit Options In AIR Application On Mac?

Aug 26, 2009

I have an AIR application running on a Mac and I want to have the behavior of hiding the window when someone "closes" the app (e.g. hits the red "x" button or cmd-w). However, if someone hits cmd-q or chooses "Quit" from the dock context menu or top level menu, I want the app to actually close.I can preventDefault on the "closing" event sent by the application, however, this causes all "close" methods to just hide the window. The only way for someone to close the application at that point is ForceQuit (or through a separate interface I provide, like a context menu option on the dock icon).

I have also tried capturing the cmd-q keyDown event manually, but it doesn't get sent. Also, this wouldn'tor the case when people try to quit the app using the menu options.Furthermore, if I preventDefault on the closing method, it causes my application to cancel a shut down process immediately (which is a terrible user experience).Is there a way to detect different methods of closing an AIR application? I want to be able to tell the difference between these closing methods and react to the appropriately.

View 2 Replies


Similar Posts:


Flex :: Air 2.0 On Application Quit, Call PreventDefault?

Nov 12, 2010

Trying to prevent the application from shutting down when clicked the X button, it still closing but the AIR process is running in the task manager. What wrong with the code?

Application Complete: NativeApplication.nativeApplication.addEventListener(Event.EXITING, onExiting);

Closing code:

private function onExiting(e:Event):void
{
e.preventDefault();
}

View 1 Replies

ActionScript 2.0 :: Way In Flash To Detect When User Has Quit Application

Apr 17, 2010

Is there a way in Flash to detect if the user has quit the application? For example if the user closes the browser window, or has not been active for 5 minutes, then so remove them from the list of active members.

View 0 Replies

Getting The Static Session Time After Quit The Application, Or Click A Button?

Sep 18, 2007

Below I have a counter program. the counter starts running once i open the swf file. Now I need to place a button where i can get the static session time like say 00:01:50 in a text box telling " You have been logged for+time+time. I dont have any idea how i can get the locked timer. The timer goes on running. I want the static time to be displayed when i click on the exit button too. Because exit button opens a page where this time will be displayed, so the user knows how long he has spent on my swf.

Code:
//initial variables
var timing:Boolean = false;

[code].....

View 1 Replies

ActionScript 2.0 :: Build An Application Where Click On An Option It Gives More Options?

Feb 10, 2010

I am trying to build an application where you click on an option it gives you more options, click on one of those and it displays an image. I am wanting to use xml to load everything.

View 1 Replies

Flex :: VLC-Player In Adobe Air App Can Not Stop / Quit

Aug 9, 2010

I have an adobe air , downloaded from below link.. it is wonderful app.[url]...

and this works fine. It captures my screen , record audio but it just does not stop or quit as vlc-player.exe continues to run in the task manager.

i tried lots of vlc- commands but it just does not stop once it starts capturing screen video.

View 2 Replies

ActionScript 3.0 :: Detecting Camera Already In Use By Another Application?

Jan 26, 2010

how can I detect that the camera is already captured by another application My scenario is to check whether the camera is not in use by another application and displays the status to the user

I can check using getcamera()!=null to check if the camera is installed or not but i cannot check whether the camera is in already use by another application and the result is black screen in my application

View 0 Replies

ActionScript 3.0 :: Program That Queries A Database For Options And Displays The Options In A Number Of ComboBoxes?

Aug 29, 2011

Im building a program that queries a database for options and displays the options in a number of comboBoxes. The comboBoxes are dynamically built and loaded via code and added to the stage. I would like to build the comboBoxes into a single movie clip (maybe not the correct wording) so I can use options like tweening and such to make it look better. The code is below.

package classFiles
{
import flash.display.MovieClip;

[code]....

View 3 Replies

Flex - Options To Create Line Chart In Flex For Data-intensive Web App?

Jan 13, 2012

My group is working on a Flex/AS3 scientific web application that is data intensive. Luckily the only plots involved are line charts. However, each line chart may have multiple traces (up to 24), and each trace may contain up to 2000 points. The user will need to zoom in and out and interact with the data (e.g. data tips, etc.).

The response I'm getting from developers is that's a lot of data to render in a plot in Flash. For reasons beyond the scope of this post, we can't sample the data to reduce the size (this has already been done and nature of the data prevents further sampling).

Rendering speed is critical for this app. What kind of rendering speed should I expect the Flex 4 line chart component to provide for a given number of points (e.g. 1 second to render 1000 points?)

Are there products available that handle plotting large data sets better, which can be incorporated in Flex (I've seen FusionCharts and ZingCharts online but have no idea how they compare with Flex's components)? Of those, which are easy to develop with while still providing a lot of flexibility in look and feel?

View 1 Replies

Actionscript :: Flex - Dynamically Populate The Options In A Combobox Inside Of A Grid Based On Another Row In Flex?

Sep 8, 2009

I'm trying to setup a DataGrid that contains a column of combo boxes. The values of the combo boxes are defined by data specific to that row. I cannot get this to work though, I'm asking for a solution to this, either fixing what I have below or a recommendation on a different way.One of the columns of my DataGrid has an object derived from a ComboBox for an ItemEditor. The itemEditor is set like this:

<mx:DataGridColumn editorDataField="selectedItem" dataField="type" editable="true" >
<mx:itemEditor>
<mx:Component>

[code].....

View 1 Replies

Make An Interactive Flash Application That Works By Detecting Mouse Overs And Clicks On Various Buttons/movie Clips?

Oct 10, 2009

I am trying to make an interactive flash application that works by detecting mouse overs and clicks on various buttons/movie clips and then moves to the appropriate part of the time line. But I am having an issue when I use more than one addEventListener in any one frame. I have attached the code for one such frame below. When I comment out the addEventListner and the other code relating to the followBall function this works fine and directs the user to frame Inlet_Valve_Open_Frame but now only the followBall function is working and when i try to click on the Inlet_Valve_Button movie clip nothing happens.

I have never read all the help files on the adobe flash CS3 as i don't have time and i have built this code up based on examples i have found online. I wanted to include my fla file but it's to big 6Mb. But i have attached the swf so you have an idea what i am doing.

Code: Select allstop();
//1.
stage.addEventListener(MouseEvent.MOUSE_MOVE,followBall);

[code]....

View 1 Replies

Flex :: Flex 4 Changing Style Options With States

Apr 5, 2011

I'm interested in finding out the best approach to this issue, it's not technically difficult but there must be an elegant solution. Basically i have a form that features mostly text inputs, i would like to change the style of the input boxes based on the current state. I can do this in the mxml on each input...

[Code]...

View 1 Replies

Flex :: Locale Nl_NL In My Compiler Options?

Nov 15, 2009

I have to change the "Yes" and "No" buttons in an Alert.show(..), to another language (Dutch, for instance).
Is there a (easy) way to do that?

I forgot to mention - I have a -locale nl_NL in my compiler options, but it is still Yes/No

View 1 Replies

Flex :: Adding Events To Menu Options

May 5, 2009

[Code]...

how to add addevents to the menus in the popupButton.

View 5 Replies

Asp.net :: From Flex / MXML And XAML To HTML - What Are The Best Options

Dec 13, 2011

I know Flex MXML / AS3 very well. I also have good knowledge in C#,XAML and ASP.NET. I will be forced in the next years to do more HTML (Webapps) work. I could take ASP.NET but i dont like it really as i have to care about all that browser specific things and coding Javascript ist just horrible when you come from C# and AS3. Also ASP.NET isnt just as smooth in writing and using Components as it is in MXML or XAML. MXML (with FDT not FlashBuilder) and XAML also have awesome tooling for their Markuplanguage and their business language which i need. I know some Java too and willing to learn a new language if gives me what i need. I took a look at Vaadin and GWT but both seem to lack a Markuplanguage.

View 2 Replies

ActionScript 3.0 :: Missing Project Options In Flex Builder?

Oct 23, 2009

I had Flex Builder 3 installed and working properly.

I then downloaded Zend Studio 7 (Eclipse) and installed the flex 3 plugin for it. Since doing that I now have a problem with Flex Builder.

I right click on the Flex project and select "properties->build path" there are now missing options. I should be able to add project references and SWC's. These options are simply missing. I basically get a blank window instead of the options.

I have tried completely removing both Zend and Flex Builder. I re-install Flex Builder and it's still the same.

This is on a Vista Ultimate system. I have tried running the installer as Administrator.

I've been trying to find if there is a way to do a clean uninstall of Flex Builder, can't find how to anywhere.

View 1 Replies

Flex :: Options To Open Folder In Windows Explorer?

May 4, 2010

Is there any way to open a folder in Windows Explorer from Adobe AIR?

It looks like these APIs won't be added until AIR 2.0, but until then are there any workarounds that can be used to enable this feature?

View 1 Replies

Actionscript 3 :: Hide Default Options In Right Click Context Menu In Flex?

Oct 16, 2009

I'm developing a flex application and I want to add it a context menu. I got it with this

code:
var myMenu:ContextMenu = new ContextMenu();
myMenu.hideBuiltInItems();

[code]......

View 2 Replies

Flex :: Declare Compile Options As Valid Symbols Under IntelliJ IDEA?

Feb 23, 2010

I've got the following Flex code in an MXML file:

<mx:Label id="lblVersion" styleName="versionID" bottom="0" right="10" text="Version { BUILD::version }"/>

where the "BUILD::version" is meant to be substituted from symbols defined in compiler options:

-define BUILD::version "'LOCAL'"

The Flex plugin doesn't seem to understand the compiler option usage syntax and flags "BUILD" and "version" as "unresolved variable or type"

View 1 Replies

ActionScript 3.0 :: FSCommand (Quit) Only Works Sometimes

Dec 9, 2009

What happen is that i have a quit button and when it is clicked:
fscommand("quit"); will execute.
However for some reason, it only works sometime and at other time, it has no effect.

So, anyway, this is the code:
In the menu:
package {
import flash.display.MovieClip;
import flash.display.SimpleButton;
import flash.events.MouseEvent;
import flash.ui.Mouse;
[Code] .....

View 3 Replies

Flex :: Adobe AIR Application To Receive Back Events From Native Windows Application?

Oct 8, 2010

I'm trying to develop a simple mxml Flex application to start Skype from the AIR/Flashplayer runtime. Is it possible to get back events from a native Windows application? In the simple example of Skype, the OS returns control to the Flex app when Skype exits. But what about native applications which have their own event model and wants to communicate with the Flex event model. For example, a Face detection system which shows "Hello" on a Flex app when the camera detects a face. Can this be done in the current Flex framework?

View 1 Replies

Actionscript 3 :: Resizing Container On Resize Of Application Window In Adobe Flex/AIR Application?

Mar 4, 2011

I am working on an Adobe AIR Application. The size on Application window is 800X600 and is contains border container and border container contains many controls. What I want is to if user re-sizes the application then that container should also be re-sized according to scale. i.e If user maximizes or minimizes the window then that border container should also be maximized or minimized respectively.

View 3 Replies

Flex :: Come Back In Main Application On Click Of Logout Button Which Is In Application's Component?

Aug 4, 2011

How I will be back in Login Page after click of logout which is in application's component.

Project.mxml

<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" width="100%" height="100%"

[Code]....

View 2 Replies

Flex :: Delete Application Storage Directory Instance / Data When Uninstalling Any Air Application?

Dec 22, 2011

how can i delete storage directory instances or folder while uninstalling any air application. In my application when i first time run my application, application copy some data from application directory to application storage directory. now i want to delete all data and application directory folder also while uninstalling application.

I am doing that because when i launch any update then application is accessing old data which conflict with my application new features.

View 1 Replies

Flex :: Gui - Switch Between Different Applications(mxml File With Application As The Root Tag) In A Big Application?

May 16, 2010

I'm new to flex. Now I'm writing an flex application. I plan to split my application into some MXML files(Application as the root tag). How can I switch from one mxml to another?BTW, what is the best practice for design large flex application? Just one MXML Application and many MXML component or many MXML Application?

View 1 Replies

Actionscript 3 :: Using External Xml Data In A Flex Application Without Compiling The Source Into The Application?

Jul 15, 2011

I want to read xml data to a mxml application from a xml file on my filesystem. The example I found was for AIR,link2, link3. But I want to target the Flash Player runtime. If I use the the tag, I can do it; however the xml compiles into my swf. How can I retain the xml file in my release build?

View 2 Replies

Flash :: Starts Some Browers Quit Loading?

Jan 17, 2011

The Flash file loads, but the contents of that file aren't loading by some browsers. Primarily seems to be an issue with Safari, Chrome, and FireFox, mostly on macs.

The browser simply stops loading the file after it starts, and it is then left blank. How can I troubleshoot this, or has anyone experienced the same problem? Site uses crossdomain rules, but Ive tested both without crossdomain rules and on the same domain. Same Issue. 

View 1 Replies

ActionScript 3.0 :: Project Quit From Fullscreen Mode

May 5, 2011

i have created a project with flash cs5 and action script 3. this project is fullscreen. I open an .exe file from this project.when I open this .exe file my project quit from fullscreen mode. This project work correctly recently but i don't know why don't work now.

View 0 Replies

Flex :: SystemManager.addEventListener Of Sub Application Is Not Working In Main Application?

Mar 31, 2011

i used systemManager.addEventListener in sub application...... it is working well....but when i load sub application into main application through swfloader it doesnot working..

View 1 Replies

Ios :: Embed Adobe Air / Flex Application Inside A Standard Application

Aug 29, 2011

I have a native (Obj-C, standard Xcode project) application and I'd like to integrate a partners iOS application (or specifically, it's functionality) into it as just another view in my application. The problem is that their application is a Flex/Air app. I really don't understand the Adobe compilation process on how it gets from a bunch of flex code down to an IPA. I don't see intermediate projects, shared objects, etc on the disk to produce that IPA. It looks like it doesn't rely on the Apple tool chain... as I understand it, you can produce the IPA on Windows as well. Is there any way to build that Flex app in such a way that I can import it into Xcode so I can link against it and use it as a library from within my application? While I specifically used iOS as an example since that is the most important platform, we'll want to apply this solution to our respective Android and Blackberry 6 apps as well.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved