<font size="2"><span style="color: rgb(0, 0, 0);">Thanks I'll give </span><span style="color: rgb(0, 0, 0);">onMovieReady a try. I also thought autoPlay was boolean but we were trying to get a flash swf to loop and found that entering a 2 in the properties panel worked. </span><br style="color: rgb(0, 0, 0);">
</font><br><div class="gmail_quote">On Mon, Oct 4, 2010 at 5:48 PM, Paul Swanson <span dir="ltr"><<a href="mailto:Paul.Swanson@harlandfs.com">Paul.Swanson@harlandfs.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">I thought autoPlay was Boolean (true or false), so the values
should be either 1 or 0. If that doesn’t work, try using the onMovieReady event
instead of onLoad. You might be running into an instance where the movie isn’t
ready for playback, even though it is loaded.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p>
<div style="border-width: medium medium medium 1.5pt; border-style: none none none solid; border-color: -moz-use-text-color -moz-use-text-color -moz-use-text-color blue; padding: 0in 0in 0in 4pt;">
<div>
<div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0in 0in;">
<p class="MsoNormal"><b><span style="font-size: 10pt;">From:</span></b><span style="font-size: 10pt;">
<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>]
<b>On Behalf Of </b>Mary Ann Ahearn<br>
<b>Sent:</b> Monday, October 04, 2010 2:38 PM<br>
<b>To:</b> Xerte discussion list<br>
<b>Subject:</b> [Xerte] Problems setting autoPlay from script - Desktop Xerte 2</span></p>
</div>
</div><div><div></div><div class="h5">
<p class="MsoNormal"> </p>
<p class="MsoNormal" style="margin-bottom: 12pt;">I'm totally stuck and sure I'm
doing something really stupid.<br>
<br>
Setting the autoPlay property of a swf in its onLoad event with the following
code:<br>
<br>
</p>
<div style="margin-left: 30pt;">
<p class="MsoNormal" style="margin-bottom: 12pt;">if (looping == true) {<br>
graphic.autoPlay = 2;<br>
} else {<br>
graphic.autoPlay = 1;<br>
}<br>
debug(graphic.autoPlay);<br>
<br>
</p>
</div>
<p class="MsoNormal" style="margin-bottom: 12pt;"> "Looping" is
set when the page begins (this is a modification to the swf template).
The debug statement gives the value expected, but the behavior of the swf just
ignores it. It seems to be completely controlled by the value set by hand
in the properties panel. <br>
<br>
Any suggestions would be most welcome.<br>
<br>
Thanks!<br>
ma<br>
<br>
<br>
</p>
</div></div><p>This message and any attachment are intended solely for the addressee and
may contain confidential information. If you have received this message in
error, please send it back to me, and immediately delete it. Please do not use,
copy or disclose the information contained in this message or in any
attachment. Any views or opinions expressed by the author of this email do not
necessarily reflect the views of the University of Nottingham. </p>
<p>This message has been checked for viruses but the contents of an attachment
may still contain software viruses which could damage your computer system: you
are advised to perform your own checks. Email communications with the
University of Nottingham may be monitored as permitted by UK legislation. </p>
</div>
</div>
</div>
<br>_______________________________________________<br>
Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
This message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham.<br>
<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>