[Xerte] Re: Some Modification Questions in Page Wizards (attn. JK)
Kemp Johnathan
johnathan.kemp at ntlworld.com
Mon Mar 7 12:16:57 GMT 2011
Hello Deborah,
Highlights
Drag drop label highlight colour. There is an omission in the xml file for
the Drag and Drop Label Page Wizard - the highlightColour property is
missing. As a result it does not show as an option in the Page Wizard so it
defaults to black. Not sure what happened there - I will fix this in the
forthcoming page wizards update. In the mean time open the xml file for the
Drag and Drop Label page (you will need to do this for each page you have
created using this wizard) and add to the end of the properties the
following
highlightColour="0xffff00"
e.g.
<learningObject>
<dragDropLabel narration="FileLocation + 'media/acquire_Olfactory.mp3'"
linkID="" text="Enter text for the page here" url="FileLocation +
'media/boggs.jpg'" align="Left" tip="Enter a tooltip for the image"
highlightColour="0xffff00">
<hotspot name="Ma" text="Description for the hotspot" feedback="Try Again"
x="14" y="7" w="72" h="57" />
</dragDropLabel>
</learningObject>
Do this when Xerte is not running. If you lack an editor in which to do this
you might like to try FlashDevelop a free download from FlashDevelop.org
When you reopen Xerte the page wizard should display the highlightColour
property and you can use the colour picker to set it to what you want.
The reason your additions to the xml did not work is due to inconsistencies
between the property names in the various page wizards.
Getting narration working with Page Wizards
1. Download the narrationHandler model from the Page Wizards page of the
xerte wiki.
2. Add an Entry Frame to the interface of your project, so that it appears
as the first child of the interface.
3. Unzip the narrationHandlers.rlm model file from the downloaded zip file.
4. Do File / Insert Model in Xerte to import the narrationHandlers.rlm file
into your xerte project and then move the narrationHandlers icon so that it
is a child of the Entry Frame.
In your page's Wizard add the optional property "narration" from the
optional properties menu and set its value by using the file selector button
to locate an .mp3 file that will be your narration.
When the page loads you should see a player bar, click this and the
narration will play.
If you want the narration to play when the page loads then you could try
this, it has worked on my brief testing on one Page Wizard, but with a bit
of luck and fingers crossed it may well work for all of them.
1. Expand the page's icon structure in the project tree.
2. Select the script "getPageID"
3. Open the script property and locate the block of code that sets the
narration, it will be similar to the following - except for the nar.play();
bit and the page name referenced.
Just add the nar.play(); line and narration should happen automatically when
the page is opened.
if (pageIcon.templateData.learningObject[0].dragDropLabel[0].narration !=
undefined){
narration =
pageIcon.templateData.learningObject[0].dragDropLabel[0].narration;
rootIcon.broadcast('showAudio');
nar.play(); // add this line
}
Kind regards
Johnathan
On 7 March 2011 10:25, Deborah Delin <admin at strivney.com> wrote:
> Hi Jonathan,
>
> Hope it's OK if I ask about two issues in one post.
>
> 1. *Highlight Colour : * In Drag Drop Label* *the highlight line for the
> hot spots is black and rather hard to see on my colourful image.* * In
> Hotspot Image Sound the line is yellow and seems to be defined by *highlight="false"
> hicol="0xFFFF00"* in the .xml file. But I can't find any reference to
> this in either the .xml or the .xwd file for Drag Drop Label and if I add
> the above snippet to the .xml file nothing changes.
>
> 2. *Narration: *The issue I mentioned earlier with the narration not
> showing up on the first page in the Templates does't seem to be a problem
> with the Page Wizards. But I would like the narration to play automatically
> when the page loads, as it does with the Templates. I tried adding *
> autostart="true"* in various places but, as you will have realised, my
> modifying skills still need quite a lot of practise!
>
> Please could you advise. Thanks so much in advance.
>
> Deborah
>
>
> 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
> 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/20110307/53334143/attachment.html>
More information about the Xerte
mailing list