Click here to Skip to main content
Rate this: bad
good
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>
</object>
 
Where 1.swf is created from simple Powerpoint Slides..!
Thanks
Posted 21-Aug-12 4:13am
Edited 23-Aug-12 0:09am
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
0 DamithSL 400
1 Maciej Los 222
2 OriginalGriff 213
3 Zoltán Zörgő 135
4 BillWoodruff 130
0 OriginalGriff 7,969
1 DamithSL 6,139
2 Sergey Alexandrovich Kryukov 5,449
3 Maciej Los 5,309
4 Kornfeld Eliyahu Peter 4,539


Advertise | Privacy | Mobile
Web03 | 2.8.141223.1 | Last Updated 23 Aug 2012
Copyright © CodeProject, 1999-2014
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