Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

how to stop AutoPlay in Flash movie?

Posted on 2008-10-27
6
Medium Priority
?
5,344 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
5 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 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is primarily concerned with ActionScript 3 and generally specific to AVM2.  Most suggestions would apply to ActionScript 2 as well, and I've noted those tips that differ between AS2 and AS3. With the advent of ActionS…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.
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.
Suggested Courses

876 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