<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
OK, for the archives, I think I may have sussed it out.<br><br>In a text icon I have:<br>&lt;a href="asfunction:_level0.engine.help_function,Click"&gt;Click&lt;/a&gt;<br><br>help_function is the name of an isFunc script icon somewhere above the text icon that contains this:<br>eventObject.word = args[0];<br>rootIcon.broadcast('showDefinition');<br><br>Then I have an event response off an interaction set to icon: rootIcon and eventName: showDefinition<br><br>Below that in a script:<br>debug(eventObject.word);<br>&nbsp;<br>So when you click on the word "Click", it triggers the function and passes the word "Click" as an argument.<br>The function sets "Click" as the word property of eventObject, then broadcasts the "showDefinition" event, which is picked up by the event response.<br><br>Probably just re-invented the wheel, and slightly out of round to boot.<br><br><br><hr id="stopSpelling">From: d_b_burnett@hotmail.com<br>To: xerte@lists.nottingham.ac.uk<br>Subject: Call script function from HREF anchor?<br>Date: Tue, 22 Dec 2009 12:22:15 -0500<br><br>



<style>
.ExternalClass .ecxhmmessage P
{padding:0px;}
.ExternalClass body.ecxhmmessage
{font-size:10pt;font-family:Verdana;}
</style>


I can't seem to get the syntax for calling a named script icon function from an html link.<br><br>                                               <br><hr>Hotmail: Trusted email with powerful SPAM protection. <a href="http://clk.atdmt.com/GBL/go/177141665/direct/01/">Sign up now.</a>                                               <br /><hr />Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. <a href='http://clk.atdmt.com/GBL/go/171222985/direct/01/' target='_new'>Sign up now.</a></body>
</html>