dalar
03-12-2007, 08:22 AM
Hi all
I'm having a strange problem with buttons - bare in mind Im talking about buttons as components - from the componenets library...
I want the user's mouse to change to a hand sign (hand cursor), whenever their mouse is over the button... now by default, (at least on my system) all my 'component' buttons simply have the same standard pointer whenever the cursor is over them...
So far I have managed to solve this by:
myComponentButtonInstance.useHandCursor = true;
Now this seems to solve the problem, but I have many more buttons in my entire application, and this line will only alter the 'useHandCursor' property for just one instance of my buttons 'myComponentButtonInstance'.
Im pretty sure there is some sort of line of code I can put at the top of my actionscript file which will alter all future instances of the Component Button and set their useHandCursor property to true.
So far this is the only link I have found:
http://www.actionscript.org/forums/showthread.php3?s=&threadid=25934
But this talks about MovieClips??? ... remember that Im using a Button Component.
Thanks in advance! :)
I'm having a strange problem with buttons - bare in mind Im talking about buttons as components - from the componenets library...
I want the user's mouse to change to a hand sign (hand cursor), whenever their mouse is over the button... now by default, (at least on my system) all my 'component' buttons simply have the same standard pointer whenever the cursor is over them...
So far I have managed to solve this by:
myComponentButtonInstance.useHandCursor = true;
Now this seems to solve the problem, but I have many more buttons in my entire application, and this line will only alter the 'useHandCursor' property for just one instance of my buttons 'myComponentButtonInstance'.
Im pretty sure there is some sort of line of code I can put at the top of my actionscript file which will alter all future instances of the Component Button and set their useHandCursor property to true.
So far this is the only link I have found:
http://www.actionscript.org/forums/showthread.php3?s=&threadid=25934
But this talks about MovieClips??? ... remember that Im using a Button Component.
Thanks in advance! :)