Jump to content

[SOLVED] PHP + Swf problem... help needed


~n[EO]n~

Recommended Posts

 

I made a page to upload SWF file and it uploads fine and the path saves in the DB.

 

The problem I am getting is when I fetch the swf filepath from database it does not shows, only white screen comes, but the SWF file is uploaded in the folder and when i click it it runs smoothly in flash player, but while running the php file through localhost it does not come...

 

here is my code

 

<td><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="231" height="335">
                    <param name="movie" value="<?php rs['swfmovies']; ?> />
                    <param name="quality" value="high" />
                    <embed src="<?php rs['swfmovies']; ?>" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="231" height="335"></embed>
                  </object></td>

 

While I echo the path it displays fine, dunno why the flash is not loading  ???

 

One more question : Can we resize the SWF file while uploading ?

 

Any solution ???

 

Link to comment
https://forums.phpfreaks.com/topic/72652-solved-php-swf-problem-help-needed/
Share on other sites

With flash player 8 there shouldn't be a problem. But if it were flash CS3 then you would need to upload AC_RunActiveContent.js into the folder containing the SWF file.  ( I would try this regardless of the version as IE 7+ has issues with active content ). If this does not help, check out the boards at www.flashkit.com

 

Then add the code below to your <head> tag

 

<script language="javascript">AC_FL_RunContent = 0;</script>
<script src="AC_RunActiveContent.js" language="javascript"></script>

 

and this to the top of the <body>

 

<script language="javascript">
if (AC_FL_RunContent == 0) {
	alert("This page requires AC_RunActiveContent.js.");
} else {
	AC_FL_RunContent(
		'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0',
		'width', '600',
		'height', '450',
		'src', 'Female',
		'quality', 'high',
		'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
		'align', 'middle',
		'play', 'true',
		'loop', 'true',
		'scale', 'showall',
		'wmode', 'window',
		'devicefont', 'false',
		'id', 'Female',
		'bgcolor', '#b1dec9',
		'name', 'Female',
		'menu', 'true',
		'allowFullScreen', 'false',
		'allowScriptAccess','sameDomain',
		'movie', 'Female',
		'salign', ''
		); //end AC code
}
</script>

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.