phpSensei Posted August 16, 2007 Share Posted August 16, 2007 I have a directory for SWF files, and each swf filename is stored in my database.. I want to retrieve the sun_button2.swf" from my database, and show it by passing the id from the url... Now The Flash Script is supossed to show something, but it doesnt... Script: <?php include("configuration/connect.php");?> <?php $id=$_GET['uid']; $data=mysql_query("SELECT * FROM submissions WHERE id='$id'") or die(mysql_error()); $views=mysql_query("UPDATE submissions SET submission_views = submission_views + 1 WHERE id='$id'"); $row=mysql_fetch_array($data); ?> <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','300','height','300','src','submissions/<?php echo $row['submission'] ?>','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','submissions/<?php echo $row['submission'] ?>' ); //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,28,0" width="300" height="300"> <param name="movie" value="<?php echo $row['submission'] ?>" /> <param name="quality" value="high" /> <embed src="<?php echo $row['submission'] ?>" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="300"></embed> </object> </noscript> OUT PUT: <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','300','height','300','src','submissions/sun_button2.swf','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','submissions/sun_button2.swf' ); //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,28,0" width="300" height="300"> <param name="movie" value="sun_button2.swf" /> <param name="quality" value="high" /> <embed src="sun_button2.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="300"></embed> </object> </noscript> Quote Link to comment https://forums.phpfreaks.com/topic/65173-flash/ Share on other sites More sharing options...
qxygene Posted August 16, 2007 Share Posted August 16, 2007 <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script> <script type="text/javascript"> AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','300','height','300','src','submissions/sun_button2.swf','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','submissions/sun_button2.swf' ); //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,28,0" width="300" height="300"> <param name="movie" value="sun_button2.swf" /> <param name="quality" value="high" /> <embed src="submissions/sun_button2.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="300"></embed> </object> </noscript> Quote Link to comment https://forums.phpfreaks.com/topic/65173-flash/#findComment-325460 Share on other sites More sharing options...
phpSensei Posted August 16, 2007 Author Share Posted August 16, 2007 Thanks, What was the problem? Quote Link to comment https://forums.phpfreaks.com/topic/65173-flash/#findComment-325824 Share on other sites More sharing options...
qxygene Posted August 16, 2007 Share Posted August 16, 2007 the problem was there read man <embed src="submissions/sun_button2.swf" it was <embed src="sun_button2.swf" Quote Link to comment https://forums.phpfreaks.com/topic/65173-flash/#findComment-325839 Share on other sites More sharing options...
phpSensei Posted August 16, 2007 Author Share Posted August 16, 2007 It Still Doesn't Work. Quote Link to comment https://forums.phpfreaks.com/topic/65173-flash/#findComment-326251 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.