Jump to content
Pauls74462

Swf File Start

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

Share this post


Link to post
Share on other sites

You can't edit SWF files with PHP. You need to get the original .fla file and edit it with Flash.

Share this post


Link to post
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>

Share this post


Link to post
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>

Edited by Ingolme

Share this post


Link to post
Share on other sites

you are right, sorry, I got the autostart from FLV movie player settings that uses a swf for the player.

Edited by dsonesuk

Share this post


Link to post
Share on other sites

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.   Paste as plain text instead

  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.

Loading...

×
×
  • Create New...