Use ExternalInterface and close out the browser using Javascript. On Wed, Feb 4, 2009 at 7:31 AM, Cor <c...@chello.nl> wrote:
> I have my swf in a html-page, but it is set to fullscreen. > I create a close button. > But I can't seem to figure out how to close the swf and at the same time > the html page correctly with AS3. > Any ideas? > > -----Original Message----- > From: flashcoders-boun...@chattyfig.figleaf.com [mailto: > flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki > Sent: woensdag 4 februari 2009 16:26 > To: Flash Coders List > Subject: Re: [Flashcoders] Does Flash fire any event(s) when... > > Ya, too bad there isn't something akin to what AIR has > (NativeApplication.nativeApplication.addEventListener( > Event.EXITING,... ) > > On Wed, Feb 4, 2009 at 9:58 AM, Andrew Murphy <amur...@delvinia.com> > wrote: > > > Hi Eric. :) > > > > Unfortunately Event.DEACTIVATE also fires if a user clicks on a different > > tab in their browser or a different application in their desktop. > > > > > > -------------------------------- > > Andrew Murphy > > Interactive Media Specialist > > amur...@delvinia.com > > > > Delvinia > > 214 King Street West, Suite 214 > > Toronto Canada M5H 3S6 > > > > P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com > > > > CONFIDENTIALITY NOTICE > > This email message may contain privileged or confidential information. If > > you are not the intended recipient or received this communication by > error, > > please notify the sender and delete the message without copying or > > disclosing it. > > > > AVIS DE CONFIDENTIALITÉ > > Ce message peut contenir de l'information légalement privilégiée ou > > confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir reçu > par > > erreur ce message, nous vous saurions gré d'en aviser l'émetteur et d'en > > détruire le contenu sans le communiquer a d'autres ou le reproduire. > > > > > > > > > -----Original Message----- > > > From: flashcoders-boun...@chattyfig.figleaf.com > > > [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf > > > Of Eric E. Dolecki > > > Sent: Wednesday, February 04, 2009 8:50 AM > > > To: Flash Coders List > > > Subject: Re: [Flashcoders] Does Flash fire any event(s) when... > > > > > > There is > > > stage.addEventListener( Event.DEACTIVATE, method ); > > > stage.addEventListener( Event.ACTIVATE, method ); > > > > > > - eric > > > > > > 2009/2/4 Andrew Murphy <amur...@delvinia.com> > > > > > > > Hi. :) > > > > > > > > I was wondering if a .swf embedded in a web page fires and > > > event(s) when... > > > > > > > > > > > > 1) ...the user navigates away from the page. > > > > > > > > 2) ...the user closes the browser window. > > > > > > > > > > > > I doubt that it does but thought I'd check with the experts > > > here first. > > > > Thank you. :) > > > > > > > > > > > > -------------------------------- > > > > Andrew Murphy > > > > Interactive Media Specialist > > > > <mailto:amur...@delvinia.com> amur...@delvinia.com > > > > > > > > Delvinia > > > > 214 King Street West, Suite 214 > > > > Toronto Canada M5H 3S6 > > > > > > > > P 416.364.1455 ext. 232 F 416.364.9830 W www.delvinia.com > > > > > > > > CONFIDENTIALITY NOTICE > > > > This email message may contain privileged or confidential > > > information. > > > > If you are not the intended recipient or received this > > > communication > > > > by error, please notify the sender and delete the message without > > > > copying or disclosing it. > > > > > > > > AVIS DE CONFIDENTIALITÉ > > > > Ce message peut contenir de l'information légalement privilégiée ou > > > > confidentielle. Si vous n'êtes pas le destinataire ou croyez avoir > > > > reçu par erreur ce message, nous vous saurions gré d'en aviser > > > > l'émetteur et d'en détruire le contenu sans le communiquer > > > a d'autres ou le reproduire. > > > > > > > > > > > > _______________________________________________ > > > > Flashcoders mailing list > > > > Flashcoders@chattyfig.figleaf.com > > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > > > > > > > > > > > -- > > > http://ericd.net > > > Interactive design and development > > > _______________________________________________ > > > Flashcoders mailing list > > > Flashcoders@chattyfig.figleaf.com > > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > _______________________________________________ > > Flashcoders mailing list > > Flashcoders@chattyfig.figleaf.com > > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > > > > > -- > http://ericd.net > Interactive design and development > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > No virus found in this incoming message. > Checked by AVG - http://www.avg.com > Version: 8.0.176 / Virus Database: 270.10.17/1934 - Release Date: 4-2-2009 > 8:24 > > > _______________________________________________ > Flashcoders mailing list > Flashcoders@chattyfig.figleaf.com > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > -- Cheers, Nate ---------------------------------------- http://blog.natebeck.net _______________________________________________ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders