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

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.