all groups > flash (macromedia) > february 2006 >
You're in the

flash (macromedia)

group:

What's the "action" to Close a Window?



What's the "action" to Close a Window? swissgrid
2/9/2006 9:52:50 PM
flash (macromedia):
My movie launches full-screen. Instead of hitting "ESC", I'd like users to have access to a "Close Window" button. What's the script to get this to happen?

Re: What's the "action" to Close a Window? urami_
2/10/2006 12:00:00 AM


[quoted text, click to view]

is it projector or swf in browser ?

--
Regards

Urami


--



Happy New Year guys - all the best there is in the 2006 :)




<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
Re: What's the "action" to Close a Window? swissgrid
2/10/2006 12:00:00 AM
I lied. I think in the end I'll be saving it as an EXE file. How can I get my full screen to close from EXE?

Re: What's the "action" to Close a Window? swissgrid
2/10/2006 4:22:03 AM
uhh... I'm just saving it as a regular .swf file so I guess browser...

is there different code for both? can you provide both?

Re: What's the "action" to Close a Window? John Pattenden
2/10/2006 8:41:11 AM
[quoted text, click to view]


if you create you exe in mProjector you use mWindow.close()

Re: What's the "action" to Close a Window? FlashJester Support Team
2/10/2006 1:42:50 PM
You can use our third party tool called Jugglor.

Jugglor will automatically exit on the escape key.

Download a FREE evaluation copy from

http://www.jugglor.com

Jugglor -> Setup Settings -> Exit on ESC Key

It also has many offer features you can take advantage off.

Good Luck

Regards
FlashJester Support Team
e. - support@flashjester.com
w. - http://www.flashjester.com

There is a very fine line between "hobby" and
"mental illness."

Re: What's the "action" to Close a Window? urami_
2/10/2006 9:35:31 PM


[quoted text, click to view]

EXE is basically SWF wrapped into the player and made as Standalone Projector file.
For that we use special actions call FSCOMMANDS, beside the basic one like getURL, still apply.
Anyhow, to close down the projector you will use :

fscommand("quit");

In case of SWF file running from html within browser, you need to use getURL action in conjunction
with javascript close(); function. Problem is tho, that due to all kind of security features
this action fail when use to close the parent window (main, normal window).
If you make it work than you need to be aware that it might work at random, in some version
of browser works fine than with next update won't anymore. To assure full functionality
you would have to open a POP UP window, than the action will work just fine.




--
Regards

Urami


--



Happy New Year guys - all the best there is in the 2006 :)




<urami>
http://www.Flashfugitive.com
</urami>

<web junk free>
http://www.firefox.com
AddThis Social Bookmark Button