<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
<br><br>Steve, I had the same conceptual miscue:<br><br>I think this is the actual sequence:<br> <br>Xerte reads in the rlo file and creates a virtual xml structure from that.<br>It then uses that .xml structure to create the objects you manipulate.<br><br>Once that structure has created the object, to reflect any changes you make to the structure, e.g.<br><font style="font-size: 10pt;" size="2" face="sans-serif">_level0.contentXML.firstChild.attributes.stageColour
= '0xFF6699';</font>
<br><br>you would have to reload that .xml, i.e. recreate the object using those new parameters.<br><br>Julian's code addresses the created object instance.<br><br>Dave<br><br><hr id="stopSpelling">To: xerte@lists.nottingham.ac.uk<br>From: steve.frank@lucite.com<br>Date: Mon, 23 Mar 2009 11:10:08 +0000<br>Subject: [Xerte] Learning Object Properties<br><br>
<br><font size="2" face="sans-serif">Is it possible to change the Learning
Object properties using script?</font>
<br>
<br><font size="2" face="sans-serif">I'd like to be able to vary the stageColour
and have tried the following:-</font>
<br>
<br><font size="2" face="sans-serif">_level0.contentXML.firstChild.attributes.stageColour
= '0xFF6699';</font>
<br><font size="2" face="sans-serif">debug(_level0.contentXML.firstChild.attributes.stageColour);</font>
<br>
<br><font size="2" face="sans-serif">debug returns 0xFF6699 as expected but
the stageColour itself doesn't change.</font>
<br><font size="2" face="sans-serif"><br>
Steve<br>
__________________________________________________________________________________<br>
Lucite International Group Limited. Registered in England No. 5671799.
<br>
Registered Office: Queens Gate, 15-17 Queens Terrace, Southampton SO14
3BP, United Kingdom<br>
Holding Company for the Lucite International Group<br>
</font><br><br>
<font style="background-color: rgb(255, 255, 255);"><font size="2" face="Verdana">
<strong>IMPORTANT NOTICE::-</strong> 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. <br>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 <br>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. <br>We advise that you understand and consider this lack of security when e-mailing us.<BR></font></font><br /><hr />Windows Live™ SkyDrive: Get 25 GB of free online storage. <a href='http://windowslive.com/online/skydrive?ocid=TXT_TAGLM_WL_skydrive_032009' target='_new'>Check it out.</a></body>
</html>