# \[FMX\]Custom cursors and links in dynamic Textfields

**URL:** <https://forum.kirupa.com/t/fmx-custom-cursors-and-links-in-dynamic-textfields/23333>\
**Category:** flash\
**Created:** [June 16, 2003, 5:04pm UTC](https://forum.kirupa.com/t/fmx-custom-cursors-and-links-in-dynamic-textfields/23333 "2003-06-16T17:04:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dns](https://avatars.discourse-cdn.com/v4/letter/d/58f4c7/32.png) [@dns](https://forum.kirupa.com/u/dns)\
**Post date:** [June 16, 2003, 5:04pm UTC](https://forum.kirupa.com/t/fmx-custom-cursors-and-links-in-dynamic-textfields/23333/1 "2003-06-16T17:04:52Z")

</div>

Mouse.hide doesn’t work when rolling over the link.

try this code and roll the mouse over the link:

Mouse.hide();  
createTextField(“tf”, 100, 0, 0, 200, 30);  
tf.html = true;  
tf.htmlText = ‘\<a href="#"\>’ + System.capabilities.version + ‘\</a\>’ ;

does anybody have an ideia how to make this work?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2003, 8:34pm UTC](https://forum.kirupa.com/t/fmx-custom-cursors-and-links-in-dynamic-textfields/23333/2 "2003-06-16T20:34:38Z")

</div>

You’re right…  
I tried adding  
[AS]Mouse.hide();  
createTextField(“tf”, 100, 0, 0, 200, 30);  
tf.html = true;  
tf.selectable = false;  
tf.useHandCursor = false;  
tf.htmlText = "\<a href="[http://64.207.155.38/forums/showthread.php?s=&threadid=26050#"\>"](http://64.207.155.38/forums/showthread.php?s=&threadid=26050#%22%3E%22) +System.capabilities.version + “\</a\>” ; [/AS]  
still the same…?  
senocular, you in the house?  
(haven’t refreshed between testing and posting, maybe the answer is there already…?)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2003, 8:57pm UTC](https://forum.kirupa.com/t/fmx-custom-cursors-and-links-in-dynamic-textfields/23333/3 "2003-06-16T20:57:00Z")

</div>

doesn’t work, and i tried to use tf.useHandCursor = 0; either 😛

in this url there’s a list of bugs, but i don’t know if it is reported to MM or stuff…

[http://chattyfig.figleaf.com/flashcoders-wiki/index.php?Bugs](http://chattyfig.figleaf.com/flashcoders-wiki/index.php?Bugs)

is there any event that can be used in a link tag??? i don’t think so…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2003, 9:10pm UTC](https://forum.kirupa.com/t/fmx-custom-cursors-and-links-in-dynamic-textfields/23333/4 "2003-06-16T21:10:11Z")

</div>

useHandCursor is a MovieClip and Button property only, it cannot be used within a textfield.

So as long as that is a link, the hand cursor stays.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2003, 9:19pm UTC](https://forum.kirupa.com/t/fmx-custom-cursors-and-links-in-dynamic-textfields/23333/5 "2003-06-16T21:19:56Z")

</div>

Ok, since useHandCursor is not a textField property this is not a bug, although you could possibly contact Macromedia to recommend they enable this for textFields.

I just tested this and it works, we can re-adjust your code by creating your textbox inside a movie clip, and making the movie clip contain the link in a getURL and set the useHandCursor to false…

[AS]Mouse.hide();  
this.createEmptyMovieClip(“tfContainer”, 30);  
tfContainer.createTextField(“tf”, 100, 0, 0, 200, 30);  
tfContainer.tf.selectable = false;  
tfContainer.tf.text = System.capabilities.version;  
tfContainer.useHandCursor = false;  
tfContainer.onRelease = function() {  
getURL(“[http://64.207.155.38/forums/showthread.php?s=&threadid=26050#](http://64.207.155.38/forums/showthread.php?s=&threadid=26050#)”, “\_blank”);  
};[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 16, 2003, 10:50pm UTC](https://forum.kirupa.com/t/fmx-custom-cursors-and-links-in-dynamic-textfields/23333/6 "2003-06-16T22:50:18Z")

</div>

well, surelly this works fine, but the main idea is to use a custom cursor or something when loading a html text with links.

anyway, thanks everybody for your help!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [June 17, 2003, 12:22am UTC](https://forum.kirupa.com/t/fmx-custom-cursors-and-links-in-dynamic-textfields/23333/7 "2003-06-17T00:22:02Z")

</div>

Well not much you can do there :-\ Sorry ☹
