<div dir="ltr">For lack of a better name, I went with the name that Flex assigned to the event, their event is called TextEvent.LINK, <div>so I called ours "ontextlink".</div><div><br></div><div><br><br><div class="gmail_quote">
On Sat, Sep 27, 2008 at 9:41 PM, David Temkin <span dir="ltr"><<a href="mailto:temkin@laszlosystems.com">temkin@laszlosystems.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
It's confusing, I think, to call these hyperlinks since they are custom actions. There are better ways to do conventional hyperlinks. "MakeClickableText"? or something.<div><div></div><div class="Wj3C7c"><br>
<br>
On Sep 27, 2008, at 12:02 PM, P T Withington wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I wonder if you should call it makeHyperlink and onhyperlink instead?<br>
<br>
On 2008-09-27, at 13:35EDT, Henry Minsky wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The use case I'm trying to support is making hyperlinks in your text fields<br>
that perform custom actions local to the current application.Such as<br>
clicking on something in the debugger window and having it perform<br>
Debug.inspect() of the object.<br>
<br>
<br>
<br>
On Sat, Sep 27, 2008 at 1:29 PM, David Temkin <<a href="mailto:temkin@laszlosystems.com" target="_blank">temkin@laszlosystems.com</a>>wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Wait a sec.... Isn't the <a> tag, with the normal usage of the href<br>
attribute, supported within text fields -- even in Flash?<br>
Now, href doesn't work within the <view> tag, and <a> doesn't work anywhere<br>
but inside of <text>, but that's another story.<br>
<br>
Not that what you've done isn't useful -- but I don't think it's needed in<br>
the normal case (click to link to another page).<br>
<br>
On Sep 27, 2008, at 6:26 AM, Henry Minsky wrote:<br>
<br>
Hello,<br>
The function to respond to a hyperlink is currently platform-dependent,<br>
although just a few days ago<br>
I added a cross-platform mechanism to the LFC. That is available only if<br>
you run a nightly build at the moment.<br>
<br>
If you look at the implementation, the actual mechanism for Flash 8<br>
applications is to use the syntax <a href="asfunction:funcname,arg">,<br>
whereas for DHTML is it to use "javascript:somescript" for target.<br>
<br>
The new API is to call LzText.makeTextLink, which returns a string of the<br>
form "<a href=...>displayed value</a>" which you can append to the content<br>
of your LzText field. When clicked, it sends a "ontextlink" event back to<br>
the LzText object, with the value you choose.<br>
<br>
/**<br>
* Return a string which can be used to insert a hyperlink in a text<br>
field.<br>
* @param String str: The text displayed in the hyperlink.<br>
* @param String value: The value returned when the link is clicked.<br>
* @access public<br>
The text returned by makeTextLink can be appended to the text of a<br>
text field. It will make an HTML-style anchor, and will have a<br>
displayed representation of the string STR. When clicked, the link will<br>
send an ontextlink event to the text view, with a value of VALUE.<br>
*/<br>
public function makeTextLink(str, value) {<br>
return this.sprite.makeTextLink(str,value);<br>
}<br>
<br>
<br>
<br>
<br>
On Fri, Sep 26, 2008 at 11:29 PM, cyril alias lyric <<a href="mailto:lyric680-web@yahoo.de" target="_blank">lyric680-web@yahoo.de</a><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
wrote:<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello,<br>
<br>
how to define an hyperlink that throws an<br>
onclick-event?<br>
<br>
I'd like to have the same behaviour as for buttons:<br>
<button onclick="doSomething();" /><br>
<br>
If possible, what is the correct syntax.<br>
I tried<br>
<a href="" onclick="doSomething();">Link</a><br>
without success.<br>
<br>
Cheers,<br>
lyric<br>
<br>
<br>
<br>
__________________________________________________<br>
Do You Yahoo!?<br>
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz<br>
gegen Massenmails.<br>
<a href="http://mail.yahoo.com" target="_blank">http://mail.yahoo.com</a><br>
<br>
</blockquote>
<br>
<br>
<br>
--<br>
Henry Minsky<br>
Software Architect<br>
<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a><br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
-- <br>
Henry Minsky<br>
Software Architect<br>
<a href="mailto:hminsky@laszlosystems.com" target="_blank">hminsky@laszlosystems.com</a><br>
</blockquote>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Henry Minsky<br>Software Architect<br><a href="mailto:hminsky@laszlosystems.com">hminsky@laszlosystems.com</a><br><br><br>
</div></div>