Solved

how to stop AutoPlay in Flash movie?

Posted on 2008-10-27
6
5,300 Views
Last Modified: 2012-06-21
Hi. I've published a Flash movie here:

http://www.foet.org/tir/gridweek4.html

You will note that it autoplays when the page loads.

However, in Publish Settings, under the HTML tab, I selected "Paused at Start".

Nonetheless, the movie plays when the page loads. How do I stop the autoplay?

I am using Adobe Flash CS3.

Obviously I am missing some kind of key step. I am really grateful for any advice. Thanks very much.

Eric
<!-- saved from url=(0013)about:internet -->

<html lang="en">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>gridweek4</title>

<script language="javascript"> AC_FL_RunContent = 0; </script>

<script language="javascript"> DetectFlashVer = 0; </script>

<script src="AC_RunActiveContent.js" language="javascript"></script>

<script language="JavaScript" type="text/javascript">

<!--

// -----------------------------------------------------------------------------

// Globals

// Major version of Flash required

var requiredMajorVersion = 9;

// Minor version of Flash required

var requiredMinorVersion = 0;

// Revision of Flash required

var requiredRevision = 115;

// -----------------------------------------------------------------------------

// -->

</script>

</head>

<body bgcolor="#ffffff">

<!--url's used in the movie-->

<!--text used in the movie-->

<script language="JavaScript" type="text/javascript">

<!--

if (AC_FL_RunContent == 0 || DetectFlashVer == 0) {

	alert("This page requires AC_RunActiveContent.js.");

} else {

	var hasRightVersion = DetectFlashVer(requiredMajorVersion, requiredMinorVersion, requiredRevision);

	if(hasRightVersion) {  // if we've detected an acceptable version

		// embed the flash movie

		AC_FL_RunContent(

			'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,115,0',

			'width', '240',

			'height', '250',

			'src', 'gridweek4',

			'quality', 'best',

			'pluginspage', 'http://www.macromedia.com/go/getflashplayer',

			'align', 'middle',

			'play', 'false',

			'loop', 'false',

			'scale', 'showall',

			'wmode', 'transparent',

			'devicefont', 'false',

			'id', 'gridweek4',

			'bgcolor', '#ffffff',

			'name', 'gridweek4',

			'menu', 'true',

			'allowScriptAccess','sameDomain',

			'allowFullScreen','false',

			'movie', 'gridweek4',

			'salign', 'lt'

			); //end AC code

	} else {  // flash is too old or we can't detect the plugin

		var alternateContent = 'Alternate HTML content should be placed here.'

			+ 'This content requires the Adobe Flash Player.'

			+ '<a href=http://www.macromedia.com/go/getflash/>Get Flash</a>';

		document.write(alternateContent);  // insert non-flash content

	}

}

// -->

</script>

<noscript>

	// Provide alternate content for browsers that do not support scripting

	// or for those that have scripting disabled.

  	Alternate HTML content should be placed here. This content requires the Adobe Flash Player.

  	<a href="http://www.macromedia.com/go/getflash/">Get Flash</a>

</noscript>

</body>

</html>

Open in new window

0
Comment
Question by:Eric Bourland
  • 4
6 Comments
 
LVL 3

Author Comment

by:Eric Bourland
ID: 22979605
I apologize for leaving this question open for so long. I have been trying on my own to ascertain a solution. I am going to reencode the source video as an AVI file. Then I will see if Adobe Flash CS3 will let me apply a "Clear" skin to it. I'm grateful for any advice regarding this.
0
 
LVL 3

Author Comment

by:Eric Bourland
ID: 23031083
modus_operandi,

Thanks for your help.

I think I am just going to post the movie using the EMBED and OBJECT tags which will allow me to turn off autoplay.

I'll update here when I have done so.

Best from Eric
0
 
LVL 39

Accepted Solution

by:
blue-genie earned 500 total points
ID: 23032528
hi i don't know about the whole avi approach you're going with but in your original flash file, if you had a stop action in the movie on the first frame it should then not autoplay.
0
 
LVL 3

Author Comment

by:Eric Bourland
ID: 23037665
blue-genie,

Thanks for this reply. I will try to add a Stop action and let you know what happens.

I'll return here later.

All best,

Eric
0
 
LVL 3

Author Comment

by:Eric Bourland
ID: 23039373
hi, blue_genie,

I solved my problem, and you can see the Flash movies here: http://www.foet.org/tir/TIR_SmartGrids.html

I used the OBJECT and EMBED tags. I inserted this variable: &autoPlay=false

and that seems to have worked. Learn something new every day. =)

Thanks very much for your help.

Eric

<p><strong>What is a Smart Grid?</strong><br />
Length: 3:15


  <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0','width','247','height','200','id','FLVPlayer','src','FLVPlayer_Progressive','flashvars','&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=gridweek1&autoPlay=false&autoRewind=true','quality','high','scale','noscale','name','FLVPlayer','salign','lt','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','FLVPlayer_Progressive' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="247" height="200" id="FLVPlayer">
    <param name="movie" value="FLVPlayer_Progressive.swf" />
    <param name="salign" value="lt" />
    <param name="quality" value="high" />
    <param name="scale" value="noscale" />
    <param name="FlashVars" value="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=gridweek1&autoPlay=false&autoRewind=true" />
    <embed src="FLVPlayer_Progressive.swf" flashvars="&MM_ComponentVersion=1&skinName=Clear_Skin_1&streamName=gridweek1&autoPlay=false&autoRewind=true" quality="high" scale="noscale" width="247" height="200" name="FLVPlayer" salign="LT" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" />    
</object></noscript>
</p>
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
Here are some practices and techniques that can be adopted into your Flash/Flex application development process. Note: Not all "performance tips" provide an immediately-recognizable benefit.   This article does not include timing validation data,…
The goal of the tutorial is to teach the user how to set there setting in Adobe Flash Media Live Encoder and YouTube for optimal video and audio quality.
The goal of the tutorial is to teach the user what frame rate is, how to control it and what effect it has on the video.

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now