[Xerte] Problems setting autoPlay from script - Desktop Xerte 2

Mary Ann Ahearn maryann at moberg.com
Mon Oct 4 22:59:27 BST 2010


Thanks I'll give 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.

On Mon, Oct 4, 2010 at 5:48 PM, Paul Swanson <Paul.Swanson at harlandfs.com>wrote:

>  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.
>
>
>
> *From:* xerte-bounces at lists.nottingham.ac.uk [mailto:
> xerte-bounces at lists.nottingham.ac.uk] *On Behalf Of *Mary Ann Ahearn
> *Sent:* Monday, October 04, 2010 2:38 PM
> *To:* Xerte discussion list
> *Subject:* [Xerte] Problems setting autoPlay from script - Desktop Xerte 2
>
>
>
> I'm totally stuck and sure I'm doing something really stupid.
>
> Setting the autoPlay property of a swf in its onLoad event with the
> following code:
>
>  if (looping == true) {
>     graphic.autoPlay = 2;
> } else {
>     graphic.autoPlay = 1;
> }
> debug(graphic.autoPlay);
>
>   "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.
>
> Any suggestions would be most welcome.
>
> Thanks!
> ma
>
>
>  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.
>
> 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.
>
> _______________________________________________
> Xerte mailing list
> Xerte at lists.nottingham.ac.uk
> http://lists.nottingham.ac.uk/mailman/listinfo/xerte
>
> 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.
>
> 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.
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101004/7e7b5d0e/attachment.html


More information about the Xerte mailing list