Flasher Archive

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


Subject: Re: FLASH: flasheratshocker [dot] com
From: Colin Moock
Date: Mon, 02 Nov 1998 15:38:18 +0000 (GMT)

Eric wrote:
>I'am developing animation in flash 3 for a client to
>use on software that he is having created. The problem is I need a
>button that
>when it is pressed to that will close the flash file and let the user
>return
>to the main software screen.

Eric if you're using Flash in an HTML environment (ie. in a browser),
then you can close your window by linking to an HTML document with a
"self.close()" function in the "ONLOAD" event handler of the "BODY"
tag. As in:

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

Any time you link to that page, it will close the browser window (if
you opened the window with JavaScript--if you didn't, it will ask you
if you want to close it...).

I was too busy last week to respond, but I've had a bunch of people ask
this question so I added a short tutorial on how to implement it (with
a demo of it working) at:

http://colinmoock.iceinc.com/webdesign/flash/closewindow/

Cheers,
Colin



------------------------------------------------------------------------
To UNSUBSCRIBE send: unsubscribe flasher in the body of an
email to list-manageratshocker [dot] com. Problems to: owneratshocker [dot] com
N.B. Email address must be the same as the one you used to subscribe.
For info on digest mode send: info flasher to list-manageratshocker [dot] com



Replies
  FLASH: flasheratshocker [dot] com, DCDNETDSGN

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