Jump to content

Swf File Start


Pauls74462

Recommended Posts

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

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

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>

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...