Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

flash button closes the browser window?

Status
Not open for further replies.

gilc

MIS
Feb 20, 2002
36
HK
hi,
i am using flash 4 to create some screen for html pages, now the problem is i made a button"close" , it's function is going to be that when a user clicks on it , then the whole browser window closes , how can this be done i know in standalone players it can be done through fs command, but how in a browser.

 
<a href=&quot;javascript:window.close();&quot;>Close Window</a>
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
on (press) {
javascript:window.close();
}


i think....
logo.gif


carlsatterwhite@orlandomediasolutions.com
 
It needs to be inside a getURL action...

on (press) {
getURL (&quot;javascript:window.close()&quot;);
}


Regards,
TulsaJeff

cd_tektips.gif
 
OK, now I know, but it won't work for me! darn. what can it be? And my second question: (I'm kind of new in this) How to do a link to for example 'me.html' to open in another frame? I've got flash-files in 2 of my 5 frames. So I wan't the flashbutton to open a file in another frame, and I wonder how to do that?

Thanx
Roger from Sweden
 
Don't quite understand what's not working for you in the &quot;close window&quot; bit, but the answer to your second question is something like:

on (press) {
getURL (&quot;me.html&quot;, &quot;mainframe&quot;);
}

Replace mainframe by the exact same name you used when naming this frame in your frameset.

Regards,
And might I be blessed with your vote!

Regards,
new.gif
 
and how to vote for a user?
like clicking that link named >>Click here to mark this post as a helpful or expert post!<< ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top