Jump to content

Flash...


phpSensei

Recommended Posts

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>

Link to comment
Share on other sites

<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>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.