homepage Welcome to WebmasterWorld Guest from 54.211.95.201
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
Forum Library, Charter, Moderator: open

Flash and Shockwave Forum

    
How to not have flash video starting automatically?
chuckee




msg:4053118
 3:41 am on Jan 3, 2010 (gmt 0)

Hi,
I have just inserted my first ever flash video into a page in my website, and it always starts automatically whenever the page loads. I was wanting to make it so that the user has to click 'Play' in order for the video to start - preferably also with a big Play button on the actual video itself. The code I have in the webpage is this:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="480" height="396" id="myflash_player" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="myflash_player.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<embed src="myflash_player.swf" quality="high" bgcolor="#ffffff" width="480" height="396" name="myflash_player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

Thanks for the help!

 

rocknbil




msg:4053139
 5:52 am on Jan 3, 2010 (gmt 0)

1. Normally you put this in frame 1:

stop();

But with video, it depends on how you are playing it. If it's just inline - dropped on the stage - that might work. If you are using components, with the video player component selected, dig around in the properties panel, you'll find parameters, one of them should be auto play or auto start, or something. Set it to false.

2. Lose the invalid code and use SwfObject [code.google.com]. It will take all of 10 minutes to learn, the gray line "click here to play" will go away in IE, and your code will validate, making it easier to be cross browser compatible.

chuckee




msg:4053141
 6:13 am on Jan 3, 2010 (gmt 0)

Thanks for the reply.
So I take it that there is nothing I can do except regenerate the SWF file?

rocknbil




msg:4053366
 8:13 pm on Jan 3, 2010 (gmt 0)

Well yes, you'll need to re-export it, but having the control you want depends on how you've built the player.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Flash and Shockwave
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved