jbeweb
10-11-2009, 03:39 AM
I have a flash template for a program that I use to stream videos on my server. Is there a way to take away the height and width so that different size videos play the correct size when called upon?
<div id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> <font color="#FFFFFF"">to see this player.</font></div>
<script type="text/javascript">
var s1 = new SWFObject("http://www.site.com/flash/mediaplayer.swf","single","600","450","7");
s1.addParam("allowfullscreen","true");
s1.addVariable("file","%%%FILE%%%");
s1.addVariable("name","%%%NAME%%%");
s1.addVariable("backcolor","0x00103C");
s1.addVariable("frontcolor","0xFFFFFF");
s1.addVariable("lightcolor","0xFFFFFF");
s1.addVariable("width","600");
s1.addVariable("height","450");
s1.write("player1");
</script>
<div id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> <font color="#FFFFFF"">to see this player.</font></div>
<script type="text/javascript">
var s1 = new SWFObject("http://www.site.com/flash/mediaplayer.swf","single","600","450","7");
s1.addParam("allowfullscreen","true");
s1.addVariable("file","%%%FILE%%%");
s1.addVariable("name","%%%NAME%%%");
s1.addVariable("backcolor","0x00103C");
s1.addVariable("frontcolor","0xFFFFFF");
s1.addVariable("lightcolor","0xFFFFFF");
s1.addVariable("width","600");
s1.addVariable("height","450");
s1.write("player1");
</script>