View Full Version : No hand Icon when mouse is over text
PixelDroid
12-19-2008, 04:55 AM
I have a MC which I'm using as a button. It has an image and a text box.
I've set it to button mode using:
bioLink.buttonMode = true;
When the mouse is over the MC it shows the hand icon when over the image, but not over the textbox. However, if the textbox is clicked, it still executes the button code. Is there a way to have the hand icon show when over the text as well?
Thanks.
CyanBlue
12-19-2008, 04:57 AM
Howdy and Welcome... :)
It sounds like your textField is set to be selectable... Make it unselectable and try it again... That should do the job...
PixelDroid
12-19-2008, 06:04 AM
I tried that, no go.
But I did find a fix:
bioLink.mouseChildren = false;
My guess is that the text and the button functions are at odds with each other.
CyanBlue
12-19-2008, 01:27 PM
Glad to hear that you've found the solution... ;)
TextFields don't have a buttonMode property.
You can hack around it and simulate the hand cursor when using dynamic text by wrapping your text in a href tag. Use the "event" property of the link to stop Flash from trying to open a browser window each time the link is clicked.
someTextField.htmlText = "<a href=\"event:dummyEvt\">"+"MyText"+"</a>";
aneuryzma
01-16-2009, 10:54 AM
did you find out how to solve this ?
daveystew
01-16-2009, 11:17 AM
this.useHandCursor = true; worked in AS2. Has it made it into AS3?
PixelDroid
01-16-2009, 02:47 PM
Just to clarify the solution I used:
I have a MC and a text object on the MC is interfering w/the mouseOver, so I used:
MCName.mouseChildren = false; (where MCName is the name of the movieClip)
This prevents all children of the movie clip from receiving mouse events.
Hope that helps.
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.