<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML dir=ltr><HEAD><TITLE>RE: [Xerte] How do you detect someone clicking on text that hasbeenmarked with the hot text tags?</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.6000.16825" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=621174707-09092009><FONT face=Arial
color=#0000ff size=2>Hello Julian,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=621174707-09092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=621174707-09092009><FONT face=Arial
color=#0000ff size=2>Many thanks - it's easy when you know how
:-)</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=621174707-09092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=621174707-09092009><FONT face=Arial
color=#0000ff size=2>Kind regards</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=621174707-09092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=621174707-09092009><FONT face=Arial
color=#0000ff size=2>Johnathan</FONT></SPAN></DIV>
<DIV> </DIV>
<P><FONT face=Arial size=2>Johnathan Kemp<BR>ICT Development
Coordinator<BR>Connexions Staffordshire<BR></FONT><A
href="http://www.cxstaffs.co.uk/"><FONT face=Arial
size=2>www.cxstaffs.co.uk</FONT></A><BR><FONT face=Arial size=2>01785
355714<BR></FONT></P>
<P> </P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Julian
Tenney<BR><B>Sent:</B> 08 September 2009 17:50<BR><B>To:</B> Xerte discussion
list<BR><B>Subject:</B> RE: [Xerte] How do you detect someone clicking
ontextthathasbeenmarked with the hot text tags?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText72879 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>I thought you were looking in
the source code for the engine: here is the function:</FONT></DIV>
<DIV dir=ltr><FONT size=2></FONT> </DIV>
<DIV dir=ltr><FONT face="Courier New" size=2>function
hotText(text){<BR> rootIcon.hotTextClicked =
text;<BR> rootIcon.broadcast('onHotText');<BR>}</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>so you need to listen to rootIcon and then
use rootIcon.hotTextClicked to decide what to do,</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>J</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on
behalf of Johnathan Kemp<BR><B>Sent:</B> Tue 08/09/2009 16:39<BR><B>To:</B>
Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] How do you detect someone
clicking on textthathasbeenmarked with the hot text tags?<BR></FONT><BR></DIV>
<DIV dir=ltr>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2>Hello Julian,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2>That is exactly what I am trying to find out but I have
exhausted where to look.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2>I can't find anything in the Xerte help file, or in the
mail list archives.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2>I am assuming that hotText is a Xerte method rather than a
native action script method as I can find no reference to it in the Action
script 2 reference.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2>I found out that hotTextClicked existed because it showed
up in the list when you press ctrl + shift in a script
window.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2>I found hotText as a method by seeing it in the text
entered when I marked text as hot text.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2>I have inspected _level0.engine but all it tells me is that
hotText is a function, so I have no idea how to find out about what if any
parameters it takes.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2>I am guessing that the function will return the string of
the marked text e.g. in your example below it would return
"index"</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2>I am guessing that when you click on the text the hotText
function will fire an event but thus far I have been unable to trap
it</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2>I tried setting up</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2>page id = hots</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2> text icon id = myText, text = Text click
<a href="asfunction:_level0.engine.hotText,here">here</a> to trigger
hot text action.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2> interaction perpetual =
1</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2> event eventName
= hotTextClicked, icon = myText</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class=720561815-08092009>
<FONT face=Arial color=#0000ff size=2>script </FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=720561815-08092009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN
class=720561815-08092009>
debug("hot text clicked");</SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class=720561815-08092009>
debug(myText.hotTextClicked);</SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=720561815-08092009>but
the script never gets to fire.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=720561815-08092009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=720561815-08092009>Any
tips that might point me in the right direction would be most
appreciated.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=720561815-08092009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=720561815-08092009>Kind
regards</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=720561815-08092009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN
class=720561815-08092009>Johnathan</SPAN></FONT></DIV>
<P><FONT face=Arial size=2>Johnathan Kemp<BR>ICT Development
Coordinator<BR>Connexions Staffordshire<BR></FONT><A
href="http://www.cxstaffs.co.uk/"><FONT face=Arial
size=2>www.cxstaffs.co.uk</FONT></A><BR><FONT face=Arial size=2>01785
355714<BR></FONT></P>
<P> </P>
<DIV> </DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk
[mailto:xerte-bounces@lists.nottingham.ac.uk] <B>On Behalf Of </B>Julian
Tenney<BR><B>Sent:</B> 08 September 2009 16:06<BR><B>To:</B> Xerte discussion
list<BR><B>Subject:</B> RE: [Xerte] How do you detect someone clicking on text
thathasbeenmarked with the hot text tags?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV id=idOWAReplyText55634 dir=ltr>
<DIV dir=ltr><FONT face=Arial color=#000000 size=2>the method is there so it can
be called from <a href="asfunction:_level0.engine.hotText, index"> link in
html and have the piece navigate to a page. I think. Check out what the actual
function does and what parameters it expects.</FONT></DIV>
<DIV dir=ltr><FONT face=Arial size=2></FONT> </DIV>
<DIV dir=ltr><FONT face=Arial size=2>J</FONT></DIV></DIV>
<DIV dir=ltr><BR>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> xerte-bounces@lists.nottingham.ac.uk on
behalf of Johnathan Kemp<BR><B>Sent:</B> Tue 08/09/2009 08:59<BR><B>To:</B>
Xerte discussion list<BR><B>Subject:</B> RE: [Xerte] How do you detect someone
clicking on text that hasbeenmarked with the hot text tags?<BR></FONT><BR></DIV>
<DIV>
<P><FONT size=2>Dear Xerte Team,<BR><BR>I have now discovered that there is a
method _level0.engine.hotText.<BR><BR>There also appears to be a property
hotTextClicked, though I am unsure<BR>what object it belongs to.<BR><BR>However
since the hottext is not a child of an interaction I am unsure<BR>how to test
for when the text has been clicked on, so as to trigger<BR>events from a
script.<BR><BR>I have searched the help and the archives but cannot find
anything that<BR>will give me the final part to solve the puzzle.<BR><BR>Kind
regards<BR><BR>Johnathan<BR><BR><BR>Johnathan Kemp<BR>ICT Development
Coordinator<BR>Connexions Staffordshire<BR>www.cxstaffs.co.uk<BR>01785
355714<BR><BR><BR><BR><BR><BR>-----Original Message-----<BR>From:
xerte-bounces@lists.nottingham.ac.uk<BR>[<A
href="mailto:xerte-bounces@lists.nottingham.ac.uk">mailto:xerte-bounces@lists.nottingham.ac.uk</A>]
On Behalf Of Johnathan<BR>Kemp<BR>Sent: 03 September 2009 12:02<BR>To: Xerte
discussion list<BR>Subject: [Xerte] How do you detect someone clicking on text
that has<BR>beenmarked with the hot text tags?<BR><BR>Dear Xerte Team,<BR><BR>I
have a text icon which contains text that is to long to fit in the<BR>text box,
so I am using a scroll bar. However I want to trap the user<BR>clicking on
sections of the text.<BR><BR>If I use a hot spot this becomes out of position
when the user scrolls<BR>the text icon, as the text moves but the hot spot does
not.<BR><BR>Could I use the hot text tags to mark the text I want the user to
click<BR>on?<BR><BR>If so how would I then trap the event, distinguishing
between one<BR>section of text within the icon and another?<BR><BR>I am trying
to avoid breakApart() as the text icon in question is being<BR>used as a display
area, being populated by script that reads the text<BR>property of the
appropriate text icon to be displayed and then using<BR>setText() to set the
text of the display text icon. If I can just put<BR>tags in the text that would
be ideal.<BR><BR>Kind regards<BR><BR>Johnathan<BR><BR><BR>Johnathan Kemp<BR>ICT
Development Coordinator<BR>Connexions
Staffordshire<BR>www.cxstaffs.co.uk<BR>01785 355714<BR><BR><BR>This email and
any files transmitted with it are confidential and are<BR>intended solely for
the use of the individual(s) or entity(s) to whom<BR>they are addressed. All
messages are monitored for virus, high risk<BR>files and inappropriate content.
As a result users should be aware that<BR>this mail maybe accessed, read and the
right is reserved to reject,<BR>return, remove attachments or delete if
considered to be inappropriate<BR>or unsuitable. Liability cannot be accepted
for any loss or damage<BR>arising from this email (or any attachments) or from
scripts or any<BR>virus transmitted.<BR><BR><BR><BR>This communication
represents the originator's personal views and<BR>opinions, which do not
necessarily reflect those of Connexions<BR>Staffordshire. If you are not the
original recipient or the person<BR>responsible for delivering the email to the
intended recipient, be<BR>advised that you have received this email in error,
and that any use,<BR>dissemination, forwarding, printing, or copying of this
email is<BR>strictly prohibited. If you received this email in error,
please<BR>immediately reply to the sender or notify
postmaster@cxstaffs.co.uk<BR><BR><BR><BR><BR><BR>Connexions Staffordshire
Limited is registered in England No.4355170<BR><BR>Registered office: Foregate
House, 70 Foregate Street, Stafford,<BR>Staffordshire, ST16
2PX<BR><BR>_______________________________________________<BR>Xerte mailing
list<BR>Xerte@lists.nottingham.ac.uk<BR><A
href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR><BR>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.<BR><BR><BR><BR>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@cxstaffs.co.uk<BR><BR><BR><BR><BR><BR>Connexions Staffordshire
Limited is registered in England No.4355170<BR><BR>Registered office: Foregate
House, 70 Foregate Street, Stafford, Staffordshire, ST16
2PX<BR><BR>_______________________________________________<BR>Xerte mailing
list<BR>Xerte@lists.nottingham.ac.uk<BR><A
href="http://lists.nottingham.ac.uk/mailman/listinfo/xerte">http://lists.nottingham.ac.uk/mailman/listinfo/xerte</A><BR></FONT></P></DIV>
<DIV align=\>
<HR width=\>
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@cxstaffs.co.uk Connexions
Staffordshire Limited is registered in England No.4355170 Registered office:
Foregate House, 70 Foregate Street, Stafford, Staffordshire, ST16
2PX</DIV></DIV><div align=\"center\" style=\"font-family:verdana; font-size:10px;\"><hr width=\"100%\">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@cxstaffs.co.uk
Connexions Staffordshire Limited is registered in England No.4355170
Registered office: Foregate House, 70 Foregate Street, Stafford, Staffordshire, ST16 2PX</div></body></HTML>