netscape and flash and problem

A

Alex Mercier

hi all,
sorry my english is not so good.

I would like to popup a new window when the html receive a certain
variable (an OK) from a flash swf file inside that html.
the reason of this is that I need to pass the variable from the
flash 'swf' to an other flash 'swf' that is inside the html that popup.
the actual code work perfectly with internet explorer
but will not work with netscape...the window will not pop up!

the pop up will be called by a fonction that is :

function newWindow() {


win1=window.open("cvm.html","f1","top=0,left=0,fullscreen=yes,outerHeight='
+ screen.availHeight + ',outerWidth=' + screen.availWidth");
f1=win1
setObject()
}

if I put the function in the body...like <BODY onLoad : "newWindow()">
the window will popup and everything will work, but I dont want the pop up
on load.

the function is inside an other function, and netscape doesn't seem to like
that
the function is :

function fscom_DoFSCommand(command, args) {
if (command == "send") {
newWindow(), sendIt(args)
}
}

the 'send' is the variable that come from the flash file.

while I know very little about javascript, any help will be appreciate
thanx
Alex



P.S. here is all the code :
--------------------


<html>

<head>

<title>ttttttttttt</title>

</head>

<body bgcolor="00007d" leftmargin="0" topmargin="0" marginwidth="0"
marginheight="0" >

<SCRIPT LANGUAGE=JavaScript>
<!--

f1=null
fscom1=null
InternetExplorer = navigator.appName.indexOf("Microsoft") != -1;


function fscom_DoFSCommand(command, args) {


if (command == "send") {
newWindow(), sendIt(args)
}
}


if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 &&
navigator.userAgent.indexOf("Windows") != -1 &&
navigator.userAgent.indexOf("Windows 3.1") == -1) {
document.write('<SCRIPT LANGUAGE=VBScript\> \n');
document.write('on error resume next \n');
document.write('Sub fscom_FSCommand(ByVal command, ByVal args)\n');
document.write(' call fscom_DoFSCommand(command, args)\n');
document.write('end sub\n');
document.write('</SCRIPT\> \n');
}

function sendIt(strArgs) {
f1.fscom1.SetVariable("varpage", strArgs);
fscom1.SetVariable("varpage", "sent")
}

function setObject() {
fscom1 = InternetExplorer ? fscom : document.fscom;
}



function newWindow() {
win1=window.open("cvm.html","f1","top=0,left=0,fullscreen=yes,outerHeight='
+ screen.availHeight + ',outerWidth=' + screen.availWidth");
f1=win1
setObject()
}

//-->
</SCRIPT>



<table width="105%" border="0" align="center" height="100%">
<tr>

<td>&nbsp;</td>
</tr>
<tr>

<td height="400" background="bg.jpg">
<div align="center">



<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"

codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0
,0"
ID=fscom WIDTH=628 HEIGHT=400>
<param NAME=movie VALUE="splash.swf">
<param NAME=quality VALUE=high>
<param NAME=bgcolor VALUE=#FFFFFF>
<embed name="fscom" src="splash.swf" quality=high bgcolor=#FFFFFF
WIDTH=628 HEIGHT=400 swLiveConnect=true
TYPE="application/x-shockwave-flash"
PLUGINSPAGE="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_
Version=ShockwaveFlash"></embed>

</object>


</div>
</td>
</tr>

<tr>
<td valign="top">
<div align="center"><font color="#FFFFFF">Le site est pr&eacute;sentement
<font color="#FFde58">*en
construction*</font>, veuillez cliquer sur 'Accueil' pour
d&eacute;buter.</font></div></td>
</tr>
</table>
</body>
</html>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top