[Xerte] Re: xerte - sound icon - play property - using an array value

Julian Tenney Julian.Tenney at nottingham.ac.uk
Fri Feb 24 08:31:20 GMT 2012


Did you try the expression in {}s?

Otherwise, you can set the value of the attribute using some script: in a script immediately before the sound icon do

If (someCOndition == true){
icon.nextSibling.attributes.play = '1';
} else {
icon.nextSibling.attributes.play = '0';
}

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of KnowledgeWare
Sent: 24 February 2012 05:09
To: Xerte discussion list
Subject: [Xerte] xerte - sound icon - play property - using an array value

I'm using xerte desktop.

I want a sound to play in a sound icon on entering a page IF trackingData.audioPlay = 1 (set on a checkbox on the main menu SWF), but can't seem to make this work with or without using the Eval function. Is the sound icon 'play' property hardwired to accept only a literal '0' or '1' or can should I be able to use vars or array values in these fields? Or am I just doing something wrong here?

Thanks for any tips!

RonM2

[cid:image001.png at 01CCF2CE.AF37B470]

A checkbox on the main menu lets the user set the sound to play on entering each page (Play = 1). I'm holding this in the 'trackingData' array, however this seems to be a field that can't interpret the array value.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120224/691d032d/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 11980 bytes
Desc: image001.png
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120224/691d032d/attachment-0001.png>


More information about the Xerte mailing list