PDA

View Full Version : [FMX]Custom cursors and links in dynamic Textfields



dns
June 16th, 2003, 01:04 PM
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?

eyezberg
June 16th, 2003, 04:34 PM
You're right..
I tried adding
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#\">" +System.capabilities.version + "</a>" ;
still the same..?
senocular, you in the house?
(haven't refreshed between testing and posting, maybe the answer is there already..?)

dns
June 16th, 2003, 04:57 PM
doesn't work, and i tried to use tf.useHandCursor = 0; either :P

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

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

lostinbeta
June 16th, 2003, 05:10 PM
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.

lostinbeta
June 16th, 2003, 05:19 PM
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...

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#", "_blank");
};

dns
June 16th, 2003, 06:50 PM
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!

lostinbeta
June 16th, 2003, 08:22 PM
Well not much you can do there :-\ Sorry :(