~n[EO]n~ Posted October 10, 2007 Share Posted October 10, 2007 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 ??? Quote Link to comment https://forums.phpfreaks.com/topic/72652-solved-php-swf-problem-help-needed/ Share on other sites More sharing options...
glenelkins Posted October 10, 2007 Share Posted October 10, 2007 Hi What version of flash is the file saved in? Are you using the html code that flash generates when publishing? Quote Link to comment https://forums.phpfreaks.com/topic/72652-solved-php-swf-problem-help-needed/#findComment-366310 Share on other sites More sharing options...
~n[EO]n~ Posted October 10, 2007 Author Share Posted October 10, 2007 I am using Flash 8 Professional and I haven't published the HTML, just exported the swf movie from flash and from PHP uploaded the file, the uploaded SWF sits fine in upload folder and the path is saved in the DB... :-\ Quote Link to comment https://forums.phpfreaks.com/topic/72652-solved-php-swf-problem-help-needed/#findComment-366320 Share on other sites More sharing options...
glenelkins Posted October 11, 2007 Share Posted October 11, 2007 So your just running the SWF through the web browser and not through a html document? Perhaps there is something wrong with your flash player installation? Quote Link to comment https://forums.phpfreaks.com/topic/72652-solved-php-swf-problem-help-needed/#findComment-366911 Share on other sites More sharing options...
glenelkins Posted October 11, 2007 Share Posted October 11, 2007 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> Quote Link to comment https://forums.phpfreaks.com/topic/72652-solved-php-swf-problem-help-needed/#findComment-366913 Share on other sites More sharing options...
~n[EO]n~ Posted October 11, 2007 Author Share Posted October 11, 2007 Thanks for the script... but my problem is not solved , Anyway I am making this thread as Solved cause I am thinking of using jpeg, or gif instead of flash. I think we can't resize swf through php... Quote Link to comment https://forums.phpfreaks.com/topic/72652-solved-php-swf-problem-help-needed/#findComment-366923 Share on other sites More sharing options...
glenelkins Posted October 11, 2007 Share Posted October 11, 2007 No you can't just resize it. You would need to write a decompiler first. Perhaps there is something wrong in your actionscript stopping it running.. can you attach the FLA file? Quote Link to comment https://forums.phpfreaks.com/topic/72652-solved-php-swf-problem-help-needed/#findComment-367108 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.