Re: [Flashcoders] browser will not quit!!

2007-03-19 Thread Carolina Avila Coral

Hi:

My client and his employees have flash player version 7.0.69

I tried with a new movie with only a button and the button has the code:

on(release){
getURL(javascript:top.window.close(););
}

Then I tried with a new javascript funcion and with fscommand as you suggest 
in all these mails,  but It doesn't work.  I tested in flash player 7.0.19 
and 8 and 9 and it works.  But the client needs the movie works on 7.0.69 
with IE and I couldn't find the issue.  I aprecciate if you can help me.


I uplodad the flash player 7.0.69 installer in my server.
http://www.pixelgroup.net/carolina/flashplayer7r69_winax.exe

Thanks a lot

Carolina Avila


- Original Message - 
From: Joey Rivera [EMAIL PROTECTED]

To: 'Flashcoders mailing list' flashcoders@chattyfig.figleaf.com
Sent: Friday, June 02, 2006 1:10 PM
Subject: RE: [Flashcoders] browser will not quit!!



Try the following, should close the browser window without a prompt:

AS code:

// call javascript function closeWindow in html page
getURL(javascript:closeWindow());

and add this script in the head of the html page created when you publish
your file (same file that loads your swf),

JS code:

script
function closeWindow()
{
window.open('','_parent','');
window.opener = window;
window.close();
}
/script

This is what I use and works fine for me.

Joey


___
Flashcoders@chattyfig.figleaf.com
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 


__
Visita http://www.tutopia.com y comienza a navegar más rápido en Internet. 
Tutopia es Internet para todos.
___
Flashcoders@chattyfig.figleaf.com
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


[Flashcoders] browser will not quit!!

2006-06-02 Thread Simon Turner
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
___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] browser will not quit!!

2006-06-02 Thread Dan Efergan
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



Dan Efergan
[EMAIL PROTECTED]



___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] browser will not quit!!

2006-06-02 Thread Derek Vadneau
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 flashcoders@chattyfig.figleaf.com
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


___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] browser will not quit!!

2006-06-02 Thread Joey Rivera
Try the following, should close the browser window without a prompt:

AS code:

// call javascript function closeWindow in html page
getURL(javascript:closeWindow());

and add this script in the head of the html page created when you publish
your file (same file that loads your swf),

JS code:

script
function closeWindow()
{
window.open('','_parent','');
window.opener = window;
window.close();
}
/script

This is what I use and works fine for me.

Joey


___
Flashcoders@chattyfig.figleaf.com
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


Re: [Flashcoders] browser will not quit!!

2006-06-02 Thread Simon Turner

Ok - i now have this as the coding within the flash file 

on (release, releaseOutside ) {
   this.gotoAndStop ('buttonUp');
   getURL(javascript:window.close(););
   fscommand(closeBrowserWindow, );
}


and i have some java in the html page like so ...


script type=text/JavaScript
!--
function myFlashMovie_DoFSCommand(command, args) {
if (command == closeBrowserWindow) {
window.close();
   }
}


//--
/script

but it still will not quit the browser!! - is there some kind of 
security that stops code from closing browsers in flash8 created files? 
- i don't even get a warning dialog box to ask me if i am sure i want to 
close the window ... i just cannot figure this out!


Simon
___
Flashcoders@chattyfig.figleaf.com
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


RE: [Flashcoders] browser will not quit!!

2006-06-02 Thread Gresh, Lois
Regarding - i don't even get a warning dialog box to ask me if i am sure i
want to 
close the window  --
   
Don't know if this helps you - it's a way to notify the user that he's
attempting to shut the browser window that is running the Flash app.  (I
used this approx 1-1/2 years ago - it still works under IE)

window.onbeforeunload = unloadAll;
function unloadAll()  {
if (event.clientY  0) {
  alert(You are now leaving the course.);
  }
}



-Original Message-
From: Simon Turner [mailto:[EMAIL PROTECTED]
Sent: Friday, June 02, 2006 2:56 PM
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] browser will not quit!!


Ok - i now have this as the coding within the flash file 

on (release, releaseOutside ) {
this.gotoAndStop ('buttonUp');
getURL(javascript:window.close(););
fscommand(closeBrowserWindow, );
}


and i have some java in the html page like so ...


script type=text/JavaScript
!--
function myFlashMovie_DoFSCommand(command, args) {
 if (command == closeBrowserWindow) {
 window.close();
}
}


//--
/script

but it still will not quit the browser!! - is there some kind of 
security that stops code from closing browsers in flash8 created files? 
- i don't even get a warning dialog box to ask me if i am sure i want to 
close the window ... i just cannot figure this out!

Simon
___
Flashcoders@chattyfig.figleaf.com
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
___
Flashcoders@chattyfig.figleaf.com
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