Getting Variable Value from Embed Code not Working
Ok so I have an FLV player that is component based, it has the following code in the actions pane for the first frame:
Code:
var sourceFLV:String;
player.source = sourceFLV;
Then I have the code to embed the video supplied by Publishing the SWF:
Code:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>sjpnplayer</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>
</head>
<body bgcolor="#000000">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '360',
'height', '279',
'src', 'sjpnplayer',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'false',
'loop', 'false',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'sjpnplayer',
'bgcolor', '#000000',
'name', 'sjpnplayer',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'sjpnplayer',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="360" height="279" id="sjpnplayer" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="sjpnplayer.swf&sourceFLV=http://www.sjpn.net/VIDEOS/FOOTBALL100607/FB100607.flv" /><param name="play" value="false" /><param name="loop" value="false" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /> <embed src="sjpnplayer.swf&sourceFLV=http://www.sjpn.net/VIDEOS/FOOTBALL100607/FB100607.flv" play="false" loop="false" quality="high" bgcolor="#000000" width="360" height="279" name="sjpnplayer" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</body>
</html>
From what I have read adding one of the following SHOULD work:
Code:
'FlashVars', 'sourceFLV= url to flv '
Code:
<param name="movie" value="sjpnplayer.swf&sourceFLV= url to flv " />
Neither seems to work, either separately or together. If they should work please let me know and we can change this to figuring out why they don't instead of a better way to do it. If the supplied embed method sucks and there is a better one and you want to lead me through that it would be appreciated. My skill level in Flash is basic, assume I don't know anything and you're almost 100% correct.
Thanks in Advance,
Jon