Trying to solve this problem has finally gotten me to become friends with the Flash debugger and what a handy thing it is.  Figured out that it&#39;s a timing issue as I debugged my wrapper and watched the whole myRLO structure appear in the debugger quite a bit later than I expected it to be there. <br>

<br>Just getting started today but I&#39;ll try to pursue a solution on the xerte side of things.  So far we&#39;ve been able to do everything we need without touching the xerte engine source code and I&#39;d kind of like to keep it that way.<br>

<br>Thanks so much yet again, and have a great weekend!<br>ma<br><br><div class="gmail_quote">On Fri, Dec 3, 2010 at 3:16 AM, Julian Tenney <span dir="ltr">&lt;<a href="mailto:Julian.Tenney@nottingham.ac.uk">Julian.Tenney@nottingham.ac.uk</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div link="blue" vlink="purple" lang="EN-GB"><div><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">The trouble is you need to wait until the .rlo has loaded into your swf, then loaded its xml, then finished parsing. That’s tricky because until it’s done all that there isn’t anything to hang an event handler on from the parent. Best thing would be if the engine, once set up and initialised could call back to the parent and say ‘I’m done – we’re good to go.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Lines 654 onwards in frame2 of the engine are where all the action starts. The contentXML has already been loaded by the preloader (i.e. your wrapper). You might also want to see what the preloader does – I’d base any code on the code in there to load a new engine up.</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Alternatively, find a way of getting the rlo itself to navigate, from Xerte code: so, pass in variable and have a script in the .rlo say </span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">If (_level0.myFlagExists)</span></p><p class="MsoNormal">

<span style="font-size: 11pt; color: rgb(31, 73, 125);">{</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">  //navigate. Much easier this way.</span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">}</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);">Do you need an engine solution, or can you handle it on the Xerte side of things?</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><div style="border-width: 1pt medium medium; border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; padding: 3pt 0cm 0cm;">

<p class="MsoNormal" style="margin-left: 36pt;"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Mary Ann Ahearn<br>

<b>Sent:</b> 02 December 2010 18:03<br><b>To:</b> Xerte discussion list<br><b>Subject:</b> Re: [Xerte] xerte desktop 2 - accessing the rootIcon from a flash wrapper</span></p></div><div><div></div><div class="h5"><p class="MsoNormal" style="margin-left: 36pt;">

 </p><p class="MsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><b>Oops!</b><br><br>Just looked over what I originally sent and see that it&#39;s not correct - <br><br>I&#39;m loading the movie with the following (don&#39;t know how that &#39;._parent&#39; got in there):</p>

<div style="margin-left: 30pt;"><p class="MsoNormal" style="margin-left: 36pt;"><span style="color: rgb(51, 51, 255);"><br>this.attachMovie(&#39;Xerte&#39;, &#39;myRLO&#39;, 0).init(&#39;Lesson3.rlo&#39;, 230, 80, 1020, 640);</span></p>

</div><p class="MsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><br><br>Trying to find the correct syntax to tell the rootIcon to go to page 5.<br><br></p><div><p class="MsoNormal" style="margin-left: 36pt;">

On Thu, Dec 2, 2010 at 12:47 PM, Patrick Lockley &lt;<a href="mailto:Patrick.Lockley@nottingham.ac.uk" target="_blank">Patrick.Lockley@nottingham.ac.uk</a>&gt; wrote:</p><div><div><p class="MsoNormal" style="margin-left: 36pt;">

<span style="font-size: 11pt; color: rgb(31, 73, 125);">Try doing a for each look on _level0.myRLO that usually brings up the name – Julian will have a better answer though </span><span style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125);">J</span></p>

<p class="MsoNormal" style="margin-left: 36pt;"><span style="font-size: 11pt; color: rgb(31, 73, 125);"> </span></p><div style="border-width: 1pt medium medium; border-style: solid none none; padding: 3pt 0cm 0cm; border-color: -moz-use-text-color;">

<p class="MsoNormal" style="margin-left: 72pt;"><b><span style="font-size: 10pt;" lang="EN-US">From:</span></b><span style="font-size: 10pt;" lang="EN-US"> <a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a> [mailto:<a href="mailto:xerte-bounces@lists.nottingham.ac.uk" target="_blank">xerte-bounces@lists.nottingham.ac.uk</a>] <b>On Behalf Of </b>Mary Ann Ahearn<br>

<b>Sent:</b> 02 December 2010 17:43<br><b>To:</b> <a href="mailto:xerte@lists.nottingham.ac.uk" target="_blank">xerte@lists.nottingham.ac.uk</a><br><b>Subject:</b> [Xerte] xerte desktop 2 - accessing the rootIcon from a flash wrapper</span></p>

</div><div><div><p class="MsoNormal" style="margin-left: 72pt;"> </p><p class="MsoNormal" style="margin-left: 72pt;">Okay, so here&#39;s my new flash wrapper conundrum.<br><br>I want to load a xerte learning object and send it to the last page.<br>

<br>Loading the rlo file in our flash wrapper:<br><span style="color: rgb(51, 51, 255);">        this._parent.attachMovie(&#39;Xerte&#39;, &#39;myRLO&#39;, 0).init(&#39;Lesson3.rlo&#39;, 230, 80, 1020, 640);</span><br><br>

Creates the following movieClip:<br>_level0.myRLO<br><br>Tried variations on the following with no luck.<br>_level0.myRLO.engine.IFC.gotoPage(5);<br><br>Tried various ways of inserting rootIcon in there with no luck either.<br>

<br>Is this not doable or have I just got the syntax wrong?<br><br>Thanks!!<br>ma</p></div></div></div><p class="MsoNormal" style="margin-left: 36pt;"> </p><p style="margin-left: 36pt;">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. </p>

<p style="margin-left: 36pt;">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. </p>

</div><p class="MsoNormal" style="margin-right: 0cm; margin-bottom: 12pt; margin-left: 36pt;"><br>_______________________________________________<br>Xerte mailing list<br><a href="mailto:Xerte@lists.nottingham.ac.uk" target="_blank">Xerte@lists.nottingham.ac.uk</a><br>

<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br><br>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.<br>

<br>This message has been checked for viruses but the contents of an attachment<br>may still contain software viruses which could damage your computer system:<br>you are advised to perform your own checks. Email communications with the<br>

University of Nottingham may be monitored as permitted by UK legislation.<br><br></p></div><p class="MsoNormal" style="margin-left: 36pt;"> </p></div></div></div></div><br>_______________________________________________<br>


Xerte mailing list<br>
<a href="mailto:Xerte@lists.nottingham.ac.uk">Xerte@lists.nottingham.ac.uk</a><br>
<a href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte" target="_blank">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</a><br>
<br>
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.<br>


<br>
This message has been checked for viruses but the contents of an attachment<br>
may still contain software viruses which could damage your computer system:<br>
you are advised to perform your own checks. Email communications with the<br>
University of Nottingham may be monitored as permitted by UK legislation.<br>
<br>
<br></blockquote></div><br>