i have a movie clip(name: mv6) and in there have a button(name: rdt). i have using :
onSelfEvent (load) {
_root.mv6.rdt.useHandCursor = false;
}
at the button script for removing the pointy finger went it mouse over the button. However the effect not working. Did i using the script at the wrong place or wrong statement?
Page 1 of 1
remove pointy finger icon not working
#2
Posted 11 March 2009 - 12:37 PM
Hi,
this bit of script will work if all you want to do is hide the cursor when over your button and make it show when it is not.
davidp
this bit of script will work if all you want to do is hide the cursor when over your button and make it show when it is not.
on (rollOver) {Mouse.hide();
}
on (rollOut) {Mouse.show();
}davidp
http://blog.swishzone.com/ ...for cool tutorials, samples and new components
NEW! Project Broadcast ...broadcast audio content via the flash player, be your own DJ.
NEW! Project Broadcast ...broadcast audio content via the flash player, be your own DJ.
#3
Posted 11 March 2009 - 12:53 PM
thanks for the fast reply David... code that u gave work for me but can the mouse cursor change it to normal cursor. it's seems weird without cursor..
#6
Posted 11 March 2009 - 05:20 PM
I couldn't seem to get this to work either. Putting:
in the onSelfEvent(load) event for a button did not turn off the hand cursor.
However, it seems if you put
in the onSelfEvent(load) event for the scene, it turns off the hand cursor for all the buttons. Maybe that will work for you?
/John
this.useHandCursor = false
in the onSelfEvent(load) event for a button did not turn off the hand cursor.
However, it seems if you put
Button.prototype.useHandCursor = false
in the onSelfEvent(load) event for the scene, it turns off the hand cursor for all the buttons. Maybe that will work for you?
/John
#7
Posted 11 March 2009 - 05:51 PM
WAAAAA!!!!! THANK YOU JOHN.... u rock my swish... it's working... i did not understand how this code work but it working in my swish... THANK YOU JOHN!!!!!!
#8
Posted 11 March 2009 - 10:17 PM
DrJohn, on Mar 11 2009, 08:20 AM, said:
I couldn't seem to get this to work either. Putting:
in the onSelfEvent(load) event for a button did not turn off the hand cursor.
this.useHandCursor = false
in the onSelfEvent(load) event for a button did not turn off the hand cursor.
This will work fine when defining the handlers using the appropriate MovieClip event function handlers, ie onRollOver = function(). When using on(mouseEvent) or onSelfEvent(mouseEvent) it won't work because the the button and its events are wrapped into a MovieClip (search for Script Object and/or _button in the help file) named _button, so the script would have to be
_button.useHandCursor = false;
Best
Oliver
Share this topic:
Page 1 of 1

Help














