Click to See Complete Forum and Search --> : swf document looping but loop is set to 'false'


npqster
04-16-2009, 01:58 AM
Aside from the layout issue (which I am working on)
why is this swf looping?

http://www.ltcproduction.com/Home_photo.php


<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Ltc production: Full web production services including design, content, video, flash and email</title>
<script language="javascript">AC_FL_RunContent = 0;</script>
<link href="ltc_css.css" rel="stylesheet" type="text/css">
<script src="AC_RunActiveContent.js" language="javascript"></script>
<meta name="description" content="Full web production services including web, graphic design, video, flash and email. Localization and online marketing services also available." />
<meta name="keywords" content="web production, web services, web content, graphic design, video production, flash, email, localization, SEO, online marketing" />
</head>
<body bgcolor="#ffff99">
<!--url's used in the movie-->
<!--Full web production services including web, graphic design, copy, video, flash and email. Localization and online marketing services also available.-->

<!-- saved from url=(0013)about:internet -->
<div id="bar-top"></div>

<div style="position:relative; height: 460px; border: solid #000000 1px; padding:1px; overflow: hidden; margin:0px 8% 0 8%; background-color: #FFFF99;">

<h2>Ltc Production</h2>
<?php
include("navbar_insert.php");
?>

<div style="position:relative; width:700px; height: 470px; border: none; overflow: hidden; padding: 0 30% 0 35%; border: none;">
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0',
'width', '640',
'height', '430',
'src', 'photo',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'false',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'photo',
'bgcolor', '#ffff99',
'name', 'photo',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'photo',
'salign', ''
); //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=9,0,0,0" width="640" height="430" id="photo" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="photo.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffff99" /> <embed src="photo.swf" quality="high" bgcolor="#ffff99" width="356" height="360" name="photo" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</div>
</div>

</div>

<div id="bar-bottom"><span class="copyright">(c) ltc production</span></div>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
</body>
</html>

Eye for Video
04-16-2009, 01:33 PM
Most likely cause is that there is no stop action
stop();
in last frame of .fla. This would prevent the animation from continuing on, that is, going back to frame 1
So when the swf is published, to Flash it appears that the looping is the correct manner of display. So you may infact have looping set to false, and that part is working.... but as published, the correct display plays frame 1 to 100 (or whatever) then recycles to frame 1, which is different than looping or replaying the swf.
EfV

npqster
04-18-2009, 07:51 PM
I tried that and it's not working :(

Eye for Video
04-18-2009, 08:00 PM
As it stands now, I've downloaded just the .swf and opened it in the actual Flash Player, not the Web browser. It still loops. So there is nothing you can do in the html code to change that. The problem is in the .fla file.
So are you saying that you have a stop action in your last frame and when you test the .swf directly in Flash, it still loops?
What version of AS are you using?
EfV