Click here to Skip to main content
12,446,296 members (56,243 online)
Rate this:
 
Please Sign up or sign in to vote.
Hey all,

I have created an EMBED object in my html page and have added SWF flash object as source.

The swf file contains the PPT slides..that changed after 5 seconds..
Now i want to autoplay this object using javascript..

is it possible by this way or if there is another way please let me know..!

My Embed code is like this..

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="800" height="200"
            id="header_flash" align="middle">
            <param name="movie" value="1.swf" />
            <embed src="1.swf" type="application/x-shockwave-flash" flashvars="autoplay=true"
                play="true" wmode="transparent" allowfullscreen="true" allowscriptaccess="always"
                width="720" height="540"></embed>

Where 1.swf is created from simple Powerpoint Slides..!
Thanks
Posted 21-Aug-12 3:13am
Updated 22-Aug-12 23:09pm
v2

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

In order to start automatically a flash movie, I've used this and in my case it starts automatically:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
		width="800"
		height="200"
		id="header_flash"
		align="middle">
	  <param name="movie" value="/Flash.swf">
  
 
	<!--[if !IE]>-->
		<object type="application/x-shockwave-flash">
			data="/Flash.swf" width="800" height="200">
		>
      <param name="movie" value="/Flash.swf">
	<!--<![endif]-->
 
	<a href="http://www.adobe.com/go/getflash">
	<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player">
	</img></a>
 
	<!--[if !IE]>-->
		</param></object>
	<!--<![endif]-->
	</param></object>

Try it and see if it works or not.

PS: if this is not the solution you are looking for (possibly it will be the case) improve your question with your code snippet.

Good luck!
  Permalink  
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160811.3 | Last Updated 23 Aug 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100