Forums
This topic is locked
dynamic load .swf files into asp page and Access
Posted 20 Mar 2007 03:36:29
1
has voted
20 Mar 2007 03:36:29 Eric Forty posted:
Hello,I have Dreamweaver 8.02, Flash 8 and Access 2000. I am trying to dynamically load .swf files based upon a session variable that is passed from one page to the target page. I am using dreameaver's recordset properties to do this. As a result, the correct .swf should load and play based upon the input on the first page. I have successfully got this to work by applying the recordset behavior to images. As a result, images load dynamically on the target page based upon the criteria of the first page. It does this by pulling the correct file name from the database and appending it to the image folder, thus creating the desired or target image path.
Unfortunately, I am unable to perform the same procedure and dynamically load .swf files based on the queried recordset. So far I have done the following:
1. place random .swf file in target page
2. open up the file folder in properties, selected data sources and applied recordset query
3 Note: the file name in the database table has a .swf extension
4. tested...no errors but page seems continues to load and no target .swf
Below is code block:
<td width="150"><script type="text/javascript">
AC_FL_RunContent( 'codebase','download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','150','height','150','src','<%=(rsFlash1.Fields.Item("CompanyFlash1".Value)%>','quality','high','pluginspage','www.macromedia.com/go/getflashplayer','movie','<%=(rsFlash1.Fields.Item("CompanyFlash1".Value)%>' ); //end AC code
</script><noscript><object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="150" height="150">
<param name="movie" value="<%=(rsFlash1.Fields.Item("CompanyFlash1".Value)%>" />
<param name="quality" value="high" />
<embed src="<%=(rsFlash1.Fields.Item("CompanyFlash1".Value)%>" quality="high" pluginspage="www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="150" height="150"></embed>
</object></noscript></td>
6. Does anyone have any suggestions?
eric