 |
 |
Closing HTML window with Flash command, possible?
|
 |
|
 |
|
Forum Regular
Join Date: Jan 2004
Location: Locked inside a magical teapot.
Status:
Offline
|
|
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
|
|
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
|
| |
|
|
|
 |
|
 |
|
Forum Regular
Join Date: Jan 2004
Location: Locked inside a magical teapot.
Status:
Offline
|
|
It works! Thanks a bunch phil.
|
|
|
| |
|
|
|
 |
|
 |
|
Occasionally Useful
Join Date: Jun 2001
Location: Liverpool, UK
Status:
Offline
|
|
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
|
|
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
|
|
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
|
|
Originally posted by philzilla:
just living up to my title
then put the kettle to the metal... I'm thirsty.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|