![]() ![]() |
Mar 11 2009, 12:01 PM
Post
#1
|
|
|
Newbie ![]() Group: New Members Posts: 5 Joined: 16-February 09 Member No.: 56269 |
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? |
|
|
|
Mar 11 2009, 12:37 PM
Post
#2
|
|
![]() Advanced Member ![]() ![]() ![]() Group: Admin Posts: 6177 Joined: -- Member No.: 7 |
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. CODE on (rollOver) {Mouse.hide(); } on (rollOut) {Mouse.show(); } davidp -------------------- ![]() |
|
|
|
Mar 11 2009, 12:53 PM
Post
#3
|
|
|
Newbie ![]() Group: New Members Posts: 5 Joined: 16-February 09 Member No.: 56269 |
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..
|
|
|
|
Mar 11 2009, 04:14 PM
Post
#4
|
|
![]() Advanced Member ![]() ![]() ![]() Group: Moderator Posts: 17192 Joined: -- From: Perth/Australia Member No.: 25 |
...try:
onLoad (){ this.useHandCursor = false; } wolf -------------------- |
|
|
|
Mar 11 2009, 04:43 PM
Post
#5
|
|
|
Newbie ![]() Group: New Members Posts: 5 Joined: 16-February 09 Member No.: 56269 |
i have try Wolf code... it's have error on the line...
|
|
|
|
Mar 11 2009, 05:20 PM
Post
#6
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 307 Joined: 26-October 08 From: Stillwater, MN / USA Member No.: 53568 |
I couldn't seem to get this to work either. Putting:
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 |
|
|
|
Mar 11 2009, 05:51 PM
Post
#7
|
|
|
Newbie ![]() Group: New Members Posts: 5 Joined: 16-February 09 Member No.: 56269 |
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!!!!!!
|
|
|
|
Mar 11 2009, 10:17 PM
Post
#8
|
|
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 2779 Joined: 26-December 03 From: Germany Member No.: 6775 |
I couldn't seem to get this to work either. Putting: 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 CODE _button.useHandCursor = false; Best Oliver -------------------- |
|
|
|
![]() ![]() |
|
Lo-Fi Version | Time is now: 21st November 2009 - 01:48 PM |