[Xerte] xerte desktop 2 - accessing the rootIcon from a flash
wrapper
Julian Tenney
Julian.Tenney at nottingham.ac.uk
Fri Dec 3 08:16:17 GMT 2010
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.
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.
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
If (_level0.myFlagExists)
{
//navigate. Much easier this way.
}
Do you need an engine solution, or can you handle it on the Xerte side of things?
From: xerte-bounces at lists.nottingham.ac.uk [mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Mary Ann Ahearn
Sent: 02 December 2010 18:03
To: Xerte discussion list
Subject: Re: [Xerte] xerte desktop 2 - accessing the rootIcon from a flash wrapper
Oops!
Just looked over what I originally sent and see that it's not correct -
I'm loading the movie with the following (don't know how that '._parent' got in there):
this.attachMovie('Xerte', 'myRLO', 0).init('Lesson3.rlo', 230, 80, 1020, 640);
Trying to find the correct syntax to tell the rootIcon to go to page 5.
On Thu, Dec 2, 2010 at 12:47 PM, Patrick Lockley <Patrick.Lockley at nottingham.ac.uk<mailto:Patrick.Lockley at nottingham.ac.uk>> wrote:
Try doing a for each look on _level0.myRLO that usually brings up the name - Julian will have a better answer though :)
From: xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk> [mailto:xerte-bounces at lists.nottingham.ac.uk<mailto:xerte-bounces at lists.nottingham.ac.uk>] On Behalf Of Mary Ann Ahearn
Sent: 02 December 2010 17:43
To: xerte at lists.nottingham.ac.uk<mailto:xerte at lists.nottingham.ac.uk>
Subject: [Xerte] xerte desktop 2 - accessing the rootIcon from a flash wrapper
Okay, so here's my new flash wrapper conundrum.
I want to load a xerte learning object and send it to the last page.
Loading the rlo file in our flash wrapper:
this._parent.attachMovie('Xerte', 'myRLO', 0).init('Lesson3.rlo', 230, 80, 1020, 640);
Creates the following movieClip:
_level0.myRLO
Tried variations on the following with no luck.
_level0.myRLO.engine.IFC.gotoPage(5);
Tried various ways of inserting rootIcon in there with no luck either.
Is this not doable or have I just got the syntax wrong?
Thanks!!
ma
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<mailto: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/20101203/925564a1/attachment-0001.html
More information about the Xerte
mailing list