Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Closing HTML window with Flash command, possible?

Closing HTML window with Flash command, possible?
Thread Tools
Forum Regular
Join Date: Jan 2004
Location: Locked inside a magical teapot.
Status: Offline
Reply With Quote
Feb 17, 2004, 06:03 PM
 
I have a spot of JavaScript which opens a SWF in a new window. Is it at all possible to then close that window with a button in the Flash SWF?

The SWF was originally used for a .exe presentation so at present all my Quit buttons use " fscommand("quit"); ". It would be good if I didn't have to change them...

Help!

Cheers,
Fozz
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Feb 17, 2004, 06:56 PM
 
it's been years since i used Flash, but i think it would be:
Code:
on (release) { getURL("javascript:window.close()"); }
edit: i can see a gap in the word javascript there. i guess that's vB's doing. no gap.
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Fozz_uk  (op)
Forum Regular
Join Date: Jan 2004
Location: Locked inside a magical teapot.
Status: Offline
Reply With Quote
Feb 18, 2004, 04:59 AM
 
It works! Thanks a bunch phil.
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Feb 18, 2004, 06:39 AM
 
just living up to my title
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Mac Elite
Join Date: May 2001
Location: Melbourne, Australia
Status: Offline
Reply With Quote
Feb 18, 2004, 04:35 PM
 
Originally posted by philzilla:
just living up to my title
Oi! When did you get knighted with your custom title Sir Philz??

Man, you really are l337 around here now
     
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status: Offline
Reply With Quote
Feb 19, 2004, 10:32 AM
 
i'll always have time for my original fans though, don't worry. i think it's time to plan the next world tour, do some hand shaking, etc. i'm off to tea with the Queen now, then dinner with the Blairs.
"Have sharp knives. Be creative. Cook to music" ~ maxelson
     
Occasionally Quoted
Join Date: Apr 2001
Location: San Francisco
Status: Offline
Reply With Quote
Feb 20, 2004, 12:55 AM
 
Originally posted by philzilla:
just living up to my title
then put the kettle to the metal... I'm thirsty.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:00 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2