|
|
|
#1 |
|
Junior Member
Join Date: Aug 2002
Posts: 5
|
This is probably going to make me look really dumb.
I've been trying to open a pop up window from within movie loaded into level 2 of the main timeline. I used the script below which works fine from the main movie but not from within loaded ones. Does anybody know if it's possible? or how todo it? Any comment would be really helpful. Flash action: on (release) { getURL ("javascript:launchwin('map/map.html','pop','toolbar=no,location=no,status=no, menubar=no,scrollbars=javascript:launchwin('map/map.html' , 'newwindow' , 'height=150,width=300"); } And this in the HTML: <script language="JavaScript"> <!-- function MM_checkPlugin(plgIn, theURL, altURL, autoGo) { //v4.0 var ok=false; document.MM_returnValue = false; with (navigator) if (appName.indexOf('Microsoft')==-1 || (plugins && plugins.length)) { ok=(plugins && plugins[plgIn]); } else if (appVersion.indexOf('3.1')==-1) { //not Netscape or Win3.1 if (plgIn.indexOf("Flash")!=-1 && window.MM_flash!=null) ok=window.MM_flash; else if (plgIn.indexOf("Director")!=-1 && window.MM_dir!=null) ok=window.MM_dir; else ok=autoGo; } if (!ok) theURL=altURL; if (theURL) window.location=theURL; } //--> </script> |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Jun 2001
Posts: 199
|
I can't think of why.
I think you're code (posted here at least) isn't right for the javascript window: scrollbars=javascript:launchwin('map/map.html' , 'newwindow' , 'height=150,width=300"); shouldn't scrollbars = "yes" or "no"? Could you (as a quick fix!) call the javascript window from the root somehow rather than in the MC? |
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Aug 2000
Posts: 2,235
|
"javascript:launchwin('map/map.html' , 'newwindow' , 'height=150,width=300");
The opening single quote b4 the h in height is not closed. ~mgb |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Aug 2002
Posts: 5
|
Thank you, all seems to be working now.
Thank you, all seems to be working now.
Found a good site with code a generator. All of the code works from within flash, no need to add anything to the html. new code: on (release) { getURL ("javascript:NewWindow=window.open('map/map.html','pop','width=520,height=540,left=0,top=0 ,\rtoolbar=No,location=No,scrollbars=No,status=No, resizable=No,fullscreen=No'); NewWindow.focus();\rvoid(0);"); } The generator is at http://www.flash-db.com |
|
|
|
![]() |
|
||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|