[Xerte] Learning Object Properties
Dave Burnett
d_b_burnett at hotmail.com
Mon Mar 23 12:00:49 GMT 2009
Steve, I had the same conceptual miscue:
I think this is the actual sequence:
Xerte reads in the rlo file and creates a virtual xml structure from that.
It then uses that .xml structure to create the objects you manipulate.
Once that structure has created the object, to reflect any changes you make to the structure, e.g.
_level0.contentXML.firstChild.attributes.stageColour
= '0xFF6699';
you would have to reload that .xml, i.e. recreate the object using those new parameters.
Julian's code addresses the created object instance.
Dave
To: xerte at lists.nottingham.ac.uk
From: steve.frank at lucite.com
Date: Mon, 23 Mar 2009 11:10:08 +0000
Subject: [Xerte] Learning Object Properties
Is it possible to change the Learning
Object properties using script?
I'd like to be able to vary the stageColour
and have tried the following:-
_level0.contentXML.firstChild.attributes.stageColour
= '0xFF6699';
debug(_level0.contentXML.firstChild.attributes.stageColour);
debug returns 0xFF6699 as expected but
the stageColour itself doesn't change.
Steve
__________________________________________________________________________________
Lucite International Group Limited. Registered in England No. 5671799.
Registered Office: Queens Gate, 15-17 Queens Terrace, Southampton SO14
3BP, United Kingdom
Holding Company for the Lucite International Group
IMPORTANT NOTICE::- This email is confidential, may be legally privileged, and is solely for the use of the intended recipient. Access, disclosure, copying, distribution, or reliance on any of it by anyone else is prohibited and may be a criminal offence.
If you have received this e-mail by mistake, please notify the sender immediately by e-mail and delete this e-mail from your system. The sender has taken reasonable precautions to ensure no viruses are present in this e-mail however the company cannot accept
responsibility for any loss or damage arising from the use of this e-mail or attachments. Please note that this e-mail has been created in the knowledge that Internet e-mail is not a 100% secure communications medium.
We advise that you understand and consider this lack of security when e-mailing us.
_________________________________________________________________
Windows Live™ SkyDrive: Get 25 GB of free online storage.
http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_032009
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090323/50b9a0bb/attachment.html
More information about the Xerte
mailing list