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

KnowledgeWare knowledgeware at kccsoft.com
Fri Feb 24 20:16:20 GMT 2012


Thanks!

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: Friday, February 24, 2012 12:31 AM
To: Xerte discussion list
Subject: [Xerte] Re: xerte - sound icon - play property - using an array
value

 

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

 



 

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. 

 

 

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/20120224/38ac562a/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 11980 bytes
Desc: not available
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20120224/38ac562a/attachment-0001.png>


More information about the Xerte mailing list