iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-07-2003, 06:07 PM
WebProWorld New Member
 
Join Date: Aug 2003
Location: Massachusetts
Posts: 20
clambam RepRank 0
Default "Close This Window" Button in Flash

I guess the subject line tells it all. I have Flash popups on a web page I'm working on. I suppose I could add the HTML below the SWF file in my HTML editor, but for aesthetic reasons I'd like to have a "Close This Window" button embedded in the Flash file which would, obviously, close the popup window.

Thanks,

Marc
Reply With Quote
  #2 (permalink)  
Old 11-18-2003, 03:03 PM
mysticlighthouse's Avatar
WebProWorld Pro
 
Join Date: Jul 2003
Location: Louisville, KY
Posts: 100
mysticlighthouse RepRank 0
Default

Set the link in your flash movie to "javascript: closeWin()"... I believe the default should be set to "_self", but make sure that it is set to it anyways.

Then put the following code in the head tag

<script language="javascript" type="text/javascript">
function closeWin() {
window.close();
}
</script>

should work out ok for you... of course you can always change the function to whatever you want... it doesn't have to be closeWin
__________________
Bryan DeNosky
Reply With Quote
Reply

  WebProWorld > Site Design > Flash Discussion Forum

Thread Tools
Display Modes

Posting 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



All times are GMT -4. The time now is 01:08 PM.



Search Engine Optimization by vBSEO 3.3.0