Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Advertisements:










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


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 (Posted: 04-17-2010, 01:44 AM)

Sponsored Links:

Related Forum Messages For Flash category:
Flex :: Detecting Different Quit Options In AIR Application On Mac?
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.

Posted: Aug 26 09 at 23:40

View 2 Replies!   View Related
Flex :: Air 2.0 On Application Quit, Call PreventDefault?
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();
}

Posted: Nov 12 10 at 8:25

View 1 Replies!   View Related
Getting The Static Session Time After Quit The Application, Or Click A Button?
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].....

Posted: 09-18-2007, 11:09 AM

View 1 Replies!   View Related
Flash :: Make User Go To Application Page Instead Directly Go To Application?
Currently i'm developing a facebooks apps with falsh application. i've have completed the development with all API required to run a facebook apps. Everything went well and it's live now. My question :

1. How can make user to go directly to the application page everytime they click the link posted by user who already use the application instead going to the canvas page applications. i'm been trying to look for the article that support saying that user will go directly to application directly to canvas application page instead of going to the application page.

Posted: Aug 26 11 at 16:01

View 1 Replies!   View Related
ActionScript 2.0 :: Detect When User Has Flash Player?
When a user does not have a flash player... and enters a flash website...is there a way flash can recognise this and with a click he/she can download the latest flash player from that site?

Posted: 03-12-2009, 08:33 AM

View 1 Replies!   View Related
Flash Protection - Any Way To Detect User IP Address?
Using flash is there anyway to detect the users IP address as a means of identifying someone who tries to copy your work off the internet?

Posted: 08-23-2007, 06:15 PM

View 7 Replies!   View Related
Flash :: Can Flex Application Detect It's Own URL
Let's say I had a flex application (Web, not Air), that was meant for Mass Distribution, to be included like a plug-in of sorts, at various websites. Is there any way for a particular instance of the SWF to detect it's own URL while it's running? If so, can you point me in the right direction of which ActionScript command I might google for more info?

Posted: Aug 19 10 at 3:40

View 3 Replies!   View Related
Actionscript :: Detect User's Download Speed For Flash Video?
We have a custom flash video player. It uses streaming over a hosted FMS $50/month account.Some users are complaining that the video doesn't play at all.ith one of these users, we had them go to a speed test website and it was determined that they had a very slow connection which we are assuming is what is causing them to not be able view the video.So before we try to load the video we want to determine their connection speed. Then if they have a good enough connection we will play the video and if not then we will do something else like play a lower quality video or simply display a message and not play a video at all.

Posted: Sep 17 10 at 19:31

View 3 Replies!   View Related
Actionscript 3 :: Detect When User Likes (a Fan Of) Facebook Page In Flash?
Is there a way for a Flash Facebook app in an iFrame to detect if the user is a fan of the page using the Graph API for Actionscript 3? If not can I achieve the same goal using Javascript? without asking the user for permission (no access token required).

Posted: Jun 3 11 at 16:28

View 2 Replies!   View Related
ActionScript 3.0 :: Flash Detect When User Switches Focus To Another Window?
Can flash detect when the user switchs focus to another window?

If it can then is there any event that fires when it does?

Posted: 01-22-2010, 05:53 PM

View 2 Replies!   View Related
ActionScript 2.0 :: Detect Flash Player When User Runs Course (HTM Or Script)
I made a project (learning courseware for kids) in flash MX and want to distribute on a CD. what I want is When user runs the course it (.htm or script) should check whether flash player is installed or not. If its not there then it should prompt the user to install it which I m planning to distribute in my CD but I dont have any idea how can it be done...

Posted: July 17th, 2003

View 1 Replies!   View Related
Flex :: Flash - Detect In App If A Camera Is Already In Use By Another Application?
I am making an application that plays the video stream from the user's local system (both Windows and Mac). I use the Camera.getCamera() method and in turn Camera.names to get a list of camera attached with the system.

Unfortunately, if the camera is already in use by another application, say a desktop application on user's system, the browser is crashed. Is there any way that I can detect if a specific camera from the list of available camera is already in use by any other application?

Posted: Mar 30 10 at 15:06

View 3 Replies!   View Related
ActionScript 3.0 :: User To User File Transfer Via FMS Or RED5 In AIR Application?
It is possible to make file transfer from air application via server?I think need to create like byte array streaming or somethink like this from sender and write the destination file on receiver user pc.

Posted: Jun 25, 2009 7:12 AM

View 2 Replies!   View Related
Flash :: Javascript - Detect Weather A User Has Any Sort Of Flash Blocking Plugin Installed?
I'm wondering wether there's a Javascript way to detect wether a user has any sort of flash blocking plugin installed so i can accommodate these users properly. For example, I use 'click to flash', but sites that use SiFR to render text are littered with "click to flash" buttons, which is getting very annoying. I don't use SiFR in my designs for this reason. But if I could spot wether there's a flash blocking plugin installed, I would simply not call the SiFR function.

Posted: Feb 3 10 at 13:36

View 1 Replies!   View Related
Javascript :: Detect When Key And Mouse Events Occur Inside Of A Flash Application?
I've some very old Flash applications, which we don't want to rebuild to add a new feature. We simply need to detect when the user has become idle. So, if the Flash application receives no key or mouse events after 3 minutes, we want to track that time till the user interacts with the application again.

We've considered wrapping the applications in newer Flash applications to include the key/mouse event tracking; however, early research shows that some of our apps are so old that they use event systems or AVM's (ActionScript Virtual Machines) that are incompatible. Also, it seems that mouse events on the inner application don't bubble up to the outer application. (I think the direction of event processing is backwards in versions of Flash prior to 8)

Anyhow, the next idea on the table is to see if we can determine when the user stops interacting with the old Flash applications using JavaScript. Can anyone confirm whether or not it is possible to detect, using JavaScript only, when a swf in an HTML document loses focus or key and mouse events stop and start occurring on the swf?

Posted: Mar 5 at 21:38

View 1 Replies!   View Related
Flash :: Why Can't Log A User Out Of Facebook In An AIR Desktop Application
I'm building an AIR desktop app with facebook support using Adobe Flash builder. So far it's working alright, except for one detail, once a user logs in, that session stays open, even if the logout button is pressed. My logout code look like so:

protected function logout():void {
FacebookDesktop.logout(handleLogout, APP_ORIGIN);
}

I set APP_ORIGIN to "[URL]". I checked Adobe's documentation and they say: appOrigin:String (default = null) ” (Optional) The site url specified for your app. Required for clearing html window cookie. But I don't know what that means, what is the 'site url specified by my app'? Where do I get it? Sorry if this is a noob question.

Posted: Sep 23 11 at 2:27

View 1 Replies!   View Related
Flash :: Blackberry Playbook: User Starts Up The Application By Clicking A File?
I'm trying to do an unzip like application for the Blackberry Playbook, which means that the application mostly gets launched when the user clicks a file for which the app is registered.I googled a bit around, and the closed what I found is this, but MobileApplication doesn't have invoke parameter.

<?xml version="1.0" encoding="utf-8"?>
<s:MobileApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" firstView="views.TestHome"

[code]....

Posted: Feb 10 11 at 18:12

View 1 Replies!   View Related
Flash :: Starts Some Browers Quit Loading?
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. 

Posted: Jan 17, 2011 2:06 PM

View 1 Replies!   View Related
Flash - Have Access To The Logged In User Throughout A Flash Application?
I need to have access to the logged in user throughout a flash application. Therefor I'm concidering making the 'user' variable global.

I usually try to avoid global variables, but it seems quite suitable in this case and I'm not the first to concider the active user as a global. I know that systems like drupal also uses a global variable for the logged in user.I want to know if stackoverflow thinks of this as bad practice or if there are better alternatives.

Posted: Mar 7 at 10:26

View 3 Replies!   View Related
Flash :: AIR 2.7 IOS App Will Not Quit When Hitting IPhone Home Button
When publishing to iOS device the game plays well, when hitting homebutton it disappears as normal, but next time you open it - it starts to play at the state or level it was when quitting - as it only was paused. It should start up from default startupscreen.

ps we had an 103 error that we solved with this: [URL]

Posted: Aug 19 11 at 10:49

View 1 Replies!   View Related
Webcam - Detect Flash-accessible Camera Without Prompting User For Access To Camera If One Exists?
From a Flash object, I would like to be able to detect the presence of a webcam that the user might grant access to, without actually asking the user whether they want to grant access. This is to streamline a large application that has extra features if a webcam exists — if there is a webcam, the application will present several dialogs that lead up to the normal cam-security prompt, but if the user doesn't have the hardware, I want to skip over them altogether. Requesting access to the cam before those dialogs won't make sense to the user.

It appears not to be possible to call Camera.getCamera() without the security prompt happening. Is there a workaround? (For instance, could I, perhaps, call getCamera in a hidden Flash object and inspect its return value, or does it block until the user acknowledges the security prompt?)

Posted: Oct 11 10 at 18:16

View 3 Replies!   View Related
CS4 Flash - Increase The Font Size For The Text In The User Interface Of The Application - Menus And Panels
I am a vision impaired developer who needs to enlarge the text in the user interface of CS4 Flash Professional. Is there a way to increase the font size for the text in the user interface of the application, menus and panels for example? I have not been able to find any setting in the preferences for doing this.

Posted: Jun 22, 2009 6:08 AM

View 2 Replies!   View Related
Flash To Detect User's Bandwidth / Depending Size Of Bandwidth / Stop Loading / Continue With Load?
Is there a way for flash to detect a user's bandwidth, and depending the size of bandwidth, stop loading, or continue with the load? Now that I'm thinking about it, this would probably be a javascript detection script and if the bandwidth is high, load .swf, if not load a .jpg?

Posted: Nov 24 09 at 20:25

View 3 Replies!   View Related
ActionScript 3.0 :: Detect If A User Has A Debugger?
is there a way I can use javascript to detect if a user has a debugger version or a release version?

Posted: 02-22-2009, 12:11 PM

View 6 Replies!   View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved