[Xerte] Re: Eval string

Julian Tenney Julian.Tenney at nottingham.ac.uk
Thu Jan 27 16:05:42 GMT 2011


I shall update the hints. Its generally used internally. It's big brother is

script(str, this) which is what executes script icons, so you can create and execute your own code if you want to...

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 27 January 2011 15:56
To: Xerte list
Subject: [Xerte] Re: Eval string

Hadn't used it before, and the code hint that comes up for expression( is Math.exp(number)
________________________________
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Thu, 27 Jan 2011 15:38:31 +0000
Subject: [Xerte] Re: Eval string
str = 'FileLocation';
debug(expression(str,this)); //this == _level0.engine
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 27 January 2011 15:20
To: Xerte list
Subject: [Xerte] Re: Eval string

Daa.
Was leaving out the _level0.engine.

Cheers.


________________________________
From: Julian.Tenney at nottingham.ac.uk
To: xerte at lists.nottingham.ac.uk
Date: Thu, 27 Jan 2011 14:58:11 +0000
Subject: [Xerte] Re: Eval string
expression(string, _level0.engine)

From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Dave Burnett
Sent: 27 January 2011 14:55
To: Xerte list
Subject: [Xerte] Eval string


I'm gapping at the moment.

taskData.group[groups.getPageIndex()].sound[0].sound

originally came in as a string to set the node xml:

"Filelocation + 'media\blah.mp3'"

How do I eval that so it works in a direct set of the clip:

common_sound.loadSound(taskData.group[groups.getPageIndex()].sound[0].sound);



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.

_______________________________________________ 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/20110127/3f94ca1c/attachment.html>


More information about the Xerte mailing list