el código Flash se genera automáticamente con una herramienta, mi cliente tiene IIS y es capaz de reproducir películas flash pero la que mi programa genera no...
Código PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<script LANGUAGE="JavaScript">
// Template Vars
var g_bFillScreen = false;
var g_bResizeOptimal = true;
var g_bLMS = true;
var g_bWebObject = false;
var g_bScaleSwf = false;
var g_strBgColor = "31597a";
if (g_bFillScreen && g_bResizeOptimal)
{
g_bOptimal = false;
}
if (!(IE5 || IE6 || FF1 || NS7_2Plus || Mozilla1_7Plus) || Opera || isLinux)
{
g_bWebObject = false;
}
// Init
var g_nWidth; // was aw
var g_nHeight; // was ah
var g_bIs800 = false;
var currentDisplayMode = "1"; //displaymode
g_nWidth=screen.availWidth;
g_nHeight=screen.availHeight;
if (g_nWidth < 820)
{
g_bIs800 = true;
g_bFillScreen = true;
g_bScaleSwf = true;
}
function debug()
{
}
// Reposition the window
function reposition() {
var x = 0;
var y = 0;
if (!g_bFillScreen)
{
g_nWidth = 980;
g_nHeight = 640;
x = (screen.availWidth - g_nWidth) / 2;
y = (screen.availHeight - g_nHeight) / 2;
if (!g_bScaleSwf)
{
g_nWidth += 20;
g_nHeight += 5;
}
}
if (x < 0)
{
x = 0;
}
if (y < 0)
{
y = 0;
}
if (g_nWidth > screen.availWidth)
{
g_nWidth = screen.availWidth;
}
if (g_nHeight > screen.availHeight)
{
g_nHeight = screen.availHeight;
}
top.window.moveTo(x, y);
top.window.resizeTo(g_nWidth,g_nHeight);
top.window.focus();
}
// This function is used to make sure the document height and not the
function reposition2()
{
var nW = 0;
var nH = 0;
var nNewWidth = 0;
var nNewHeight = 0;
var x = 0;
var y = 0;
if (document.body.clientWidth && !isNaN(document.body.clientWidth) && !Mozilla)
{
nW = document.body.clientWidth;
nH = document.body.clientHeight;
}
else
{
nW = window.innerWidth;
nH = window.innerHeight;
}
nNewWidth = g_nWidth + (g_nWidth - nW);
nNewHeight = g_nHeight + (g_nHeight - nH);
if (!g_bScaleSwf && NS6plus && !NS7_2Plus && !Mozilla)
{
nNewWidth +=15;
}
if (Mozilla)
{
nNewWidth += 20;
}
if (nNewWidth > screen.availWidth)
{
nNewWidth = screen.availWidth;
}
if (nNewHeight > screen.availHeight)
{
nNewHeight = screen.availHeight;
}
x = (screen.availWidth - nNewWidth) / 2;
y = (screen.availHeight - nNewHeight) / 2;
if (x < 0)
{
x = 0;
}
if (y < 0)
{
y = 0;
}
if (nNewHeight - g_nHeight > 20)
{
g_nWidth = nNewWidth;
g_nHeight = nNewHeight;
top.window.moveTo(x, y);
top.window.resizeTo(nNewWidth, nNewHeight);
}
}
if (g_bResizeOptimal || g_bFillScreen)
{
// Call to reposition
reposition();
}
if (g_bResizeOptimal)
{
// Call Reposition2
window.onload = reposition2;
}
// -->
</script>
<!-- fscommand processing -->
<SCRIPT LANGUAGE="JavaScript1.2">
<!--
if (g_bLMS)
{
document.write("<SCR" + "IPT LANGUAGE='JavaScript1.2' SRC='lms/lms.js' TYPE='text/javascript'><\/SCR" + "IPT>");
}
// -->
</SCRIPT>
<SCRIPT LANGUAGE="JavaScript1.2" SRC="player/flashcommand.js" TYPE="text/javascript"></SCRIPT>
<SCRIPT LANGUAGE="VBScript">
<!--
// Catch FS Commands in IE, and pass them to the corresponding JavaScript function.
Sub player_FSCommand(ByVal command, ByVal args)
call player_DoFSCommand(command, args)
end sub
// -->
</SCRIPT>
<script LANGUAGE="JavaScript">
<!--
function thisMovie(movieName)
{
// IE and Netscape refer to the movie object differently for our ongoing pleasure.
//usage: thisMovie('player').SetVariable('_root.mcMyNotes.vMySlideNotes', str );
if (navigator.appName.indexOf ("Microsoft") !=-1)
{
return window[movieName]
}
else
{
return document[movieName]
}
}
//-->
</script>
</HEAD>
<BODY TEXT="#999999" LINK="#000088" VLINK="#000088" ALINK="#ffff00"
marginheight="0" marginwidth="0" topmargin="0" leftmargin="0">
<script LANGUAGE="JavaScript">
<!--
// Change the BgColor
SetBgColor(g_strBgColor);
//-->
</script>
<script LANGUAGE="JavaScript">
<!--
// Get the "slide=" value from the querystring URL of this document. (v3)
var slidenum = 1;
var _search = document.location.search;
var nStartPos = 0;
var nEndPos = 0;
nStartPos = _search.indexOf("slide=");
nEndPos = _search.indexOf("&",nStartPos);
if (nEndPos < 0)
{
nEndPos = _search.indexOf("%",nStartPos);
}
if (nEndPos < 0)
{
nEndPos = _search.length;
}
//just get the digits part. (+6 starts right of string "slide=")
if (nStartPos >= 0 && nEndPos >= 0)
{
slidenum = _search.substring((nStartPos+6),(nEndPos-0));
}
//-->
</script>
<!-- Playercode: -->
<script LANGUAGE="JavaScript">
//Formulate url to give to player for use in Forward, to pass it into flash. (Default is ./ in current url folder.)
var thislink = document.location.href;
thislink = thislink.substring(0,(thislink.lastIndexOf("/")+1));
// Create FlashVars
var strFlashVars = "";
strFlashVars += "vBgColor=0x" + g_strBgColor;
// FSCommand?
strFlashVars += "&vFSCommand="
if (!(IE5 || IE6 || FF1 || NS7_2Plus || Mozilla1_7Plus) || Opera || isLinux || isMac)
{
strFlashVars += "false";
}
else
{
strFlashVars += "true"
}
// LMS Info
if (g_bLMS)
{
if (g_bAPIPresent)
{
RetrieveStateData();
strFlashVars += "&vResumeSlide=" + String(g_SlideLastViewed);
strFlashVars += "&vStateData=" + String(g_strResumeData);
strFlashVars += "&vLMSPresent=" + String(g_bLMSPresent);
}
}
// Get the browsers width and height
var strSwfWidth = "100%";
var strSwfHeight = "100%";
var strScale = "show all";
if (!g_bScaleSwf)
{
strSwfWidth = 992;
strSwfHeight = 652;
strScale = "noscale"
}
var strTransparent = "";
if (g_bWebObject)
{
strTransparent = "wmode='transparent'";
}
if (NS4)
{
strSwfWidth = g_nWidth;
strSwfHeight = g_nHeight-30;
}
if (Mozilla && isLinux)
{
strSwfWidth = "980";
strSwfHeight = "640";
}
if (g_bWebObject)
{
document.write("<div id='flasher' style='z-index:4;'>");
}
document.write("<table width='100%' HEIGHT='100%' border=0 cellspacing=0 cellpadding=0>");
document.write("<tr><td valign='center' align='center'>");
document.write("<OB"+"JECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ");
document.write("codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0' ");
document.write("WIDTH='" + strSwfWidth + "' HEIGHT='" + strSwfHeight + "' ID='player' ALIGN=''> ");
document.write("<PARAM NAME=movie VALUE='player/playershell.swf?rqPresentationID=wCM2eJWH0JfdnXM&rqStartSlide=" +slidenum+ "&link="+ thislink +"'> ");
document.write("<PARAM NAME=quality VALUE='best'> ");
if (g_bWebObject)
{
document.write("<PARAM NAME=WMODE VALUE='transparent'> ");
}
document.write("<PARAM NAME=scale VALUE='" + strScale + "'> ");
document.write("<PARAM NAME=menu VALUE='false'>");
document.write("<PARAM NAME=FlashVars VALUE='" + strFlashVars + "'>");
document.write("<EM"+"BED WIDTH='"+ strSwfWidth +"' HEIGHT='"+ strSwfHeight +"' src='player/playershell.swf?rqPresentationID=wCM2eJWH0JfdnXM&rqStartSlide=" +slidenum+ "&link="+ thislink +"' NAME='player' quality='best' " + strTransparent + " scale='" + strScale + "' ALIGN='' ");
document.write("FlashVars='" + strFlashVars + "'");
document.write(" TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer' swLiveConnect='true' menu='false'></EM"+"BED>");
document.write("</OB"+"JECT> ");
document.write("</td></tr>");
document.write("</table>");
if (g_bWebObject)
{
document.write("</div>");
}
</script>
<script LANGUAGE="JavaScript">
<!--
if (g_bWebObject)
{
document.write("<div id='eLayer1' style='position:absolute; left:240; top:-600px; width:100; height:100; visibility:hidden; z-index:3;' >");
document.write("<iframe id='eIFContent' style='width:100%; height:100%' src='player/blank.html' frameborder='10px' allowtransparency='true'></iframe></div>");
}
//-->
</script>
<!-- Email support [097] -->
<DIV id="divQuiz" style="visibility:hidden"></DIV>
</BODY>
</HTML>
Gracias de nuevo