Skip to main content
Inspiring
May 8, 2008
Question

AS3 force textfield hand cursor

  • May 8, 2008
  • 1 reply
  • 2225 views
Hi,

I'm working on a flash project with AS3. Nice, really powerful!

I realized that I only need to create a simple textfield for my buttons.
Great! No need for complex structures with too many movieclips/sprites, then
other sprites simulating background effect, border effect, and so on.
So know with simply one object I can animate color, textcolor,
backgroundColor, borderColor, x, y. I can also have Mouse interaction just
like a button or movieclip like in AS2. PERFECT!!!!! With a textfield I get
all the properties I need.
My only problem is that when applying Mouse Events to the textfield I lose
the hand cursor. Unfortunately I thing this would be a loose of usability in
my project.

Is there a way to force the textfield or the Mouse Event to swap cursors?

Thanks
PM


This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 8, 2008
add some complexity and make it a child of a sprite and assign your properties/methods to the sprite. (and make your textfield non-selectable or disable the sprite's mouseChildren property.)