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

Mary Ann Ahearn maryann at moberg.com
Mon Oct 4 22:38:00 BST 2010


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20101004/3f270ea1/attachment.html


More information about the Xerte mailing list