Page 1 of 1

Can't make Flash movie NOT play when page loads

Posted: Wed Mar 02, 2005 11:08 am
by pthomas
Ok gents/ladies, any advice you can throw my way would be greatly appreciated...

We have a flash movie file that is in our webpage. When our webpage loads, the flash file starts playing automatically, We've been trying to figure out how to load the page with the flash file NOT playing. According to macromedia's site, we just need to pass the parameter play = false. Here's how we currently have our flash object defined:

Code: Select all

<OBJECT ID="map" CLASSID="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
 CODEBASE="http://active.macromedia.com/flash2/cabs/swflash.cab#version=2,0,0,0"
 WIDTH="275" HEIGHT="474">
      <PARAM NAME="movie" VALUE="image/punk_static.swf">
      <PARAM NAME="PLAY" VALUE="false">
      <PARAM NAME="quality" VALUE="best">
      <PARAM NAME="swLiveConnect" VALUE="true">
      <PARAM NAME="loop" VALUE="false">
      <EMBED NAME="slav" SRC="images/punk_static.swf" swLiveConnect="true" WIDTH="275" HEIGHT="474" mayscript="mayscript" quality=
"best" play="false" LOOP="false" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlas
h2"> </EMBED>
    </OBJECT>
This loads up the flash file fine, but even though we set play to false, it still plays. Ve have tried using "play" "PLAY" "Play" but its as iff the parameters don;t have any effect. When we also had play specified in the <EMBED> section, that didn;t work either. It plays when the webapge loads on IE, Firefox, Mozilla....

Anyone know what we are doing wrong? How do we make this thing NOT play by default when the page loads!?

Help!
Paul

Posted: Wed Mar 02, 2005 11:15 am
by John Cartwright
I dont know too much about flash, but why don't you set the parameters inside the flash file to not play until something is performed..

something like when you have a play button pressed, have an actionscript set to

Code: Select all

play();
and on the first key in the timeframe have it set to

Code: Select all

stop();

Posted: Wed Mar 02, 2005 11:17 am
by n00b Saibot
Methinks Parameter should be AUTOPLAY and set to false...
just give it a try

Posted: Wed Mar 02, 2005 11:18 am
by pthomas
That would fix our problem too. Trouble is, we can't find anywhere in flash to set an option like that. My flash experience is next to none. I'm hoping that someone has ran into this before and can tell me where to look specifically...macromedia flash is quite large.

Paul

Posted: Wed Mar 02, 2005 11:30 am
by n00b Saibot
for in flash option, you would have to set actions in ActionScript there which is a sort of customised JavaScript and is very easy.
if you want you can send it to me and i can edit it to your preferences. ;)