SWiSHzone.com Support Forums Home

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> remove pointy finger icon not working
WirawanNaga
post 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?
Go to the top of the page
 
+Quote Post
David Petley
post 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


--------------------
IPB Image
Go to the top of the page
 
+Quote Post
WirawanNaga
post 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..
Go to the top of the page
 
+Quote Post
Wolf Gross
post 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


--------------------

Web Wolf Wonder Web Works

SWiSHsites modified
Go to the top of the page
 
+Quote Post
WirawanNaga
post 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...
Go to the top of the page
 
+Quote Post
DrJohn
post 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
Go to the top of the page
 
+Quote Post
WirawanNaga
post 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!!!!!!
Go to the top of the page
 
+Quote Post
s02
post Mar 11 2009, 10:17 PM
Post #8


Advanced Member
***

Group: Members
Posts: 2779
Joined: 26-December 03
From: Germany
Member No.: 6775



QUOTE (DrJohn @ Mar 11 2009, 08:20 AM) *
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


--------------------
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 21st November 2009 - 01:48 PM