The second parameter is optional and can be left out.
Check the docs:
"Availability:
- None of the commands described in the table are available in web
players.
- All of the commands are available in stand-alone applications, such as
projectors.
- Only allowscale and exec are available in test-movie players."
The only thing you can use fscommand for in the web player is to
communicate with scripting on the hosting page. So if you want to quit the
browser, you can use fscommand("QuitBrowser", ""), and then have a
function in JavaScript that actually does the close.
Derek Vadneau
Northcode Inc.
http://www.northcode.com
----- Original Message -----
From: "Dan Efergan" <[EMAIL PROTECTED]>
To: "Flashcoders mailing list" <[email protected]>
Sent: Friday, June 02, 2006 11:34 AM
Subject: Re: [Flashcoders] browser will not quit!!
You're FScommand is wrong... I'm pretty sure you need the blank
argument as well.
Try:
on (release, releaseOutside ) {
this.gotoAndStop ('buttonUp');
getURL("javascript:window.close(this)");
fscommand("quit","");
}
(Extra blank argument to the end of the quit)
Dan
On 2 Jun 2006, at 14:42, Simon Turner wrote:
> I am trying to get a browser window to quit upon completion of a
> Flash based Assessment.
>
> It is running on a touch screen till using the html file generated
> when the fla file is published. Everything works fine until the
> assessment is required to quit - but the current coding i am using
> will not do this.
>
> please have you any ideas or work rounds that i may use or try?
>
> current code is ....
>
> on (release, releaseOutside ) {
> this.gotoAndStop ('buttonUp');
> getURL("javascript:window.close(this)");
> fscommand("quit");
> }
>
> many thanks
> Simon
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com