TonyLoco23
02-12-2009, 04:19 PM
I have a set of flash files who's name is stored in a table. I want to use vb script to determine which flash file to display on the page using the database recordset.
Here is my code:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','400','height','250','src','Images/<%=rst("FlshFile")%>','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','Images/<%=rst("FlshFile")%>' ); //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=7,0,19,0" width="400" height="250">
<param name="movie" value="Images/<%=rst("FlshFile")%>" />
<param name="quality" value="high" />
<embed src="Images/<%=rst("FlshFile")%>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="250"></embed>
</object></noscript>
FYI - 'rst' is the name of the recordset and 'FlshFile' is the name of the column in the table.
Right now all I get is a blank white space where the flash animation is supposed to be. The height and width of the flash animation are currently hard-coded but this is the correct height and width.
Is the problem to do with the fact that this is java script? So you cannot effectively use <% %> brackets to denote vb script wthin java script?
Though when I choose view source on the page, it has put the code correct.
Any ideas?
Here is my code:
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','400','height','250','src','Images/<%=rst("FlshFile")%>','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','Images/<%=rst("FlshFile")%>' ); //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=7,0,19,0" width="400" height="250">
<param name="movie" value="Images/<%=rst("FlshFile")%>" />
<param name="quality" value="high" />
<embed src="Images/<%=rst("FlshFile")%>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="400" height="250"></embed>
</object></noscript>
FYI - 'rst' is the name of the recordset and 'FlshFile' is the name of the column in the table.
Right now all I get is a blank white space where the flash animation is supposed to be. The height and width of the flash animation are currently hard-coded but this is the correct height and width.
Is the problem to do with the fact that this is java script? So you cannot effectively use <% %> brackets to denote vb script wthin java script?
Though when I choose view source on the page, it has put the code correct.
Any ideas?