Pauls74462 Posted July 17, 2009 Report Share Posted July 17, 2009 I need help with a SWF file. As it is now it plays when I foro the web psge, I like to make it where it only plays when the movie field is clicked.How can this be did. I'm using PHP Link to comment Share on other sites More sharing options...
Ingolme Posted July 17, 2009 Report Share Posted July 17, 2009 You can't edit SWF files with PHP. You need to get the original .fla file and edit it with Flash. Link to comment Share on other sites More sharing options...
dsonesuk Posted July 17, 2009 Report Share Posted July 17, 2009 it depends on how it has been created? does it play when you click the swf file, if it does all you have to do is set it as 'false' for the 'autostart' in the object AND the embed <OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0"WIDTH="207" HEIGHT="145" id="kick" ALIGN=""><PARAM NAME=movie VALUE="kick.swf"><PARAM NAME=quality VALUE=high><param name="LOOP" value="false"><param name="autostart" value="true"><EMBED src="kick.swf" WIDTH="207" HEIGHT="145" autostart="true" ALIGN="" quality=high bgcolor=#000000 NAME="kick"TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED></OBJECT> if it uses javascript to run the swf file, look again for 'autostart' and change the 'true' value after it to "false"<script type='text/javascript'><!--//AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','335','height','40','src','swfmoviename','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','swfmoviename','title','Swf Title','menu','false','scale','exactfit','wmode','transparent','autostart','true'); //end AC code//--></script> Link to comment Share on other sites More sharing options...
Ingolme Posted July 18, 2009 Report Share Posted July 18, 2009 (edited) As far as I'm aware, the autostart parameter is only for audio and video file formats, such as wav, mid, mp3, mpg, avi, and mov.EDIT:Looking through Adobe's documentation, SWF files allow the "play" parameter which is the Flash equivalent to autostart.To prevent the movie from playing immediately, give it a false value <object data="movie.swf" type="application/x-shockwave-flash" width="550" height="400"><param name="movie" value="movie.swf"><param name="play" value="false">This content requires Flash Player<br><a href="http://www.adobe.com/go/getflashplayer">Get Flash Player here</a></object> Edited July 18, 2009 by Ingolme Link to comment Share on other sites More sharing options...
dsonesuk Posted July 18, 2009 Report Share Posted July 18, 2009 (edited) you are right, sorry, I got the autostart from FLV movie player settings that uses a swf for the player. Edited July 18, 2009 by dsonesuk Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now