Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: closing pop up window
From: Paul Willoughby
Date: Thu, 26 Oct 2000 17:48:01 +0100

davido macshane wrote on 26 October 2000...

> Im developing a flash movie that appears in a popup movie and I want
> to make a little "close popup window" button in the flash.
> Does anyone know how to go about this. It sounds like action
> scripting.
> Thanks
> David

Are you talking about a browser pop-up window? If so, read on...

This is a clever little technique I picked up from www.moock.org . Make
yourself another HTML page with just this code

<HTML>
<HEAD><TITLE>Window Closer</TITLE></HEAD>
<BODY ONLOAD="self.close()">
</BODY>
</HTML>

If you save it as windowCloser.html in the same directory as the pop-up
page, then you just need to add this code to your 'close' button in Flash:

On (Release)
Get URL ("windowCloser.html")
End On

*OR*

you could just have this code on your Flash button:

On (Release)
Get URL ("javascript:window.self.close()")
End On

To be honest, I don't know why you would want to use one technique over the
other. Maybe there are browser/platform issues I don't know about, but both
techniques work with IE 4+ on the PC.
Someone shout if they can tell me why one is better then the other!

hth

paul


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
November 27-29, 2000, LONDON, National Film Theatre

Produced by United Digital Artists and lynda.com
-Sponsored by Macromedia, Adobe Systems and Apple Computer
-http://www.flashforward2000.com or UK tel. +44 (0870) 751 1526
Register before November 10 and save �200
http:// www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]