[Xerte] Re: Scoring in Xerte

Julian Tenney Julian.Tenney at nottingham.ac.uk
Wed Aug 31 09:36:34 BST 2011


textBlock.setText('you're score is: ' + _level0.engine.scoreXerte);

you might need to string the number if you get NaN displayed, i.e.

textBlock.setText('you're score is: ' + String(_level0.engine.scoreXerte));

but I think it will just work.



From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Deborah Delin
Sent: 31 August 2011 06:19
To: Xerte discussion list
Subject: [Xerte] Re: Scoring in Xerte

Took two days for the penny to drop.

So now, with the script:

textBlock.setText(_level0.engine.scoreXerte);

in the scoring script icon, the text icon displays the score as required. :-)

Text inserted in the normal way via the wizard is not displayed.  Just the score itself is displayed.  How do I get the text icon to display "Your score in Exercise 1 is: scoreXerte"?

Thank you for your patience and time.

Deborah


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20110831/81ba4ce1/attachment.html>


More information about the Xerte mailing list