[Xerte] Using hotspots in Xerte raw

Johnathan Kemp johnathan.kemp at cxstaffs.co.uk
Thu Jul 30 14:27:30 BST 2009


Many thanks.
 
I don't know what I was doing wrong but having deleted my interaction
and then recreated it with the structure you used below it now works
 
Over and Out :-)
 
Johnathan
 

Johnathan Kemp
ICT Development Coordinator
Connexions Staffordshire
www.cxstaffs.co.uk <http://www.cxstaffs.co.uk/> 
01785 355714


 

 

________________________________

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 29 July 2009 16:25
To: Xerte discussion list
Subject: RE: [Xerte] Using hotspots in Xerte raw



Make an .rlo from this:

 

--snip here-

<LO name="Learning Object">

<IFC name="Interface" title="My Learning Object" visuals="1">

<PG name="[Untitled]" title="Page Title" help="Page Help">

<INT name="[Untitled]" perpetual="0">

<RES rs="hs1" name="[Untitled]" type="hotSpot" x="0" y="0" w="100"
h="100" click="0" cursor="1" erase="1" exit="0"><SCR
name="[Untitled]"><![CDATA[debug("Over");]]></SCR></RES>

<RES name="[Untitled]" type="event" eventName="onRollOut" icon="hs1"
erase="1" exit="0">

<SCR name="[Untitled]"><![CDATA[debug("OUT");]]></SCR></RES>

</INT>

</PG>

</IFC>

<BIN name="Deleted Items" />

</LO>

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Johnathan
Kemp
Sent: Wednesday, July 29, 2009 4:25 PM
To: Xerte discussion list
Subject: RE: [Xerte] Using hotspots in Xerte raw

 

Hello Julian,

 

Thanks for the quick response.

 

_visible did the trick :-)

 

Still struggling with the event.

 

I have 

 

 

Interaction

    hotspot

        script (triggered by onRollOn event as hotspot click property is
set to 0)

    event

        script (I assume this will trigger when I have the event set up
properly)

 

 

 

the hotspot has an rs value : hs_01_PerfSupp

the event has values

    eventName : onRollOut

    icon : hs_01_PerfSupp

    erase : 1

    exit : 0

 

But the event script never gets run.

 

What have I missed?

 

Kind regards

 

Johnathan

Johnathan Kemp
ICT Development Coordinator
Connexions Staffordshire
www.cxstaffs.co.uk <http://www.cxstaffs.co.uk/> 
01785 355714

 

 

 

________________________________

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Julian Tenney
Sent: 29 July 2009 15:37
To: Xerte discussion list
Subject: RE: [Xerte] Using hotspots in Xerte raw

Use the onRollOut event of the hotspot. Give it an rs identifier. Then
add an event response:

 

Icon: yourRSFor YourHotspot

EventName:onRollOut

 

_visible is the property.

 

From: xerte-bounces at lists.nottingham.ac.uk
[mailto:xerte-bounces at lists.nottingham.ac.uk] On Behalf Of Johnathan
Kemp
Sent: Wednesday, July 29, 2009 3:18 PM
To: Xerte discussion list
Subject: [Xerte] Using hotspots in Xerte raw

 

On a page I have an interaction which contains a hotspot.

 

I want to display a text block when the hotspot is rolled over and hide
the text block when the mouse pointer is subsequently moved off the
hotspot.

 

I have hit two issues.

 

1. I can fire a script when the mouse moves over the hotspot, but I
can't find a way to detect when the mouse moves off the hotspot to
trigger some script.

2. I haven't found a way to hide a text icon - there does not appear to
be a visible property and I have not been able to set its alpha to 0

 

Can anyone point me in the right direction?

 

Kind regards 

 

Johnathan

 

Johnathan Kemp
ICT Development Coordinator
Connexions Staffordshire
www.cxstaffs.co.uk <http://www.cxstaffs.co.uk/> 
01785 355714

 

________________________________

This email and any files transmitted with it are confidential and are
intended solely for the use of the individual(s) or entity(s) to whom
they are addressed. All messages are monitored for virus, high risk
files and inappropriate content. As a result users should be aware that
this mail maybe accessed, read and the right is reserved to reject,
return, remove attachments or delete if considered to be inappropriate
or unsuitable. Liability cannot be accepted for any loss or damage
arising from this email (or any attachments) or from scripts or any
virus transmitted. This communication represents the originator's
personal views and opinions, which do not necessarily reflect those of
Connexions Staffordshire. If you are not the original recipient or the
person responsible for delivering the email to the intended recipient,
be advised that you have received this email in error, and that any use,
dissemination, forwarding, printing, or copying of this email is
strictly prohibited. If you received this email in error, please
immediately reply to the sender or notify postmaster at cxstaffs.co.uk
Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford,
Staffordshire, ST16 2PX

________________________________

This email and any files transmitted with it are confidential and are
intended solely for the use of the individual(s) or entity(s) to whom
they are addressed. All messages are monitored for virus, high risk
files and inappropriate content. As a result users should be aware that
this mail maybe accessed, read and the right is reserved to reject,
return, remove attachments or delete if considered to be inappropriate
or unsuitable. Liability cannot be accepted for any loss or damage
arising from this email (or any attachments) or from scripts or any
virus transmitted. This communication represents the originator's
personal views and opinions, which do not necessarily reflect those of
Connexions Staffordshire. If you are not the original recipient or the
person responsible for delivering the email to the intended recipient,
be advised that you have received this email in error, and that any use,
dissemination, forwarding, printing, or copying of this email is
strictly prohibited. If you received this email in error, please
immediately reply to the sender or notify postmaster at cxstaffs.co.uk
Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford,
Staffordshire, ST16 2PX

This email and any files transmitted with it are confidential and are intended solely for the use of the individual(s) or entity(s) to whom they are addressed. All messages are monitored for virus, high risk files and inappropriate content. As a result users should be aware that this mail maybe accessed, read and the right is reserved to reject, return, remove attachments or delete if considered to be inappropriate or unsuitable. Liability cannot be accepted for any loss or damage arising from this email (or any attachments) or from scripts or any virus transmitted.

This communication represents the originator's personal views and opinions, which do not necessarily reflect those of Connexions Staffordshire. If you are not the original recipient or the person responsible for delivering the email to the intended recipient, be advised that you have received this email in error, and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you received this email in error, please immediately reply to the sender or notify postmaster at cxstaffs.co.uk


Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford, Staffordshire, ST16 2PX
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.nottingham.ac.uk/pipermail/xerte/attachments/20090730/9ff465ca/attachment.html


More information about the Xerte mailing list