Can't make Flash movie NOT play when page loads

Need help with Photoshop, the GIMP, Illustrator, or others? Want to show off your work? Looking for advice on your newest Flash stuff?

Moderator: General Moderators

Post Reply
User avatar
pthomas
Forum Commoner
Posts: 68
Joined: Wed Jan 19, 2005 11:28 am
Location: Cincinnati, OH

Can't make Flash movie NOT play when page loads

Post 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
User avatar
John Cartwright
Site Admin
Posts: 11470
Joined: Tue Dec 23, 2003 2:10 am
Location: Toronto
Contact:

Post 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();
Last edited by John Cartwright on Wed Mar 02, 2005 11:18 am, edited 1 time in total.
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post by n00b Saibot »

Methinks Parameter should be AUTOPLAY and set to false...
just give it a try
User avatar
pthomas
Forum Commoner
Posts: 68
Joined: Wed Jan 19, 2005 11:28 am
Location: Cincinnati, OH

Post 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
User avatar
n00b Saibot
DevNet Resident
Posts: 1452
Joined: Fri Dec 24, 2004 2:59 am
Location: Lucknow, UP, India
Contact:

Post 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. ;)
Post Reply