To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Reply
 
Thread Tools Search this Thread Display Modes
Old 08-05-2002, 10:56 AM   #1
bdot
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>
bdot is offline   Reply With Quote
Old 08-05-2002, 12:48 PM   #2
tonyknibb
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?
tonyknibb is offline   Reply With Quote
Old 08-05-2002, 01:08 PM   #3
mgb
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
mgb is offline   Reply With Quote
Old 08-06-2002, 06:30 AM   #4
bdot
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
bdot is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Flash ActionScript

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

Forum Jump


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


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.