SWiSHzone.com Support Forums: remove pointy finger icon not working - SWiSHzone.com Support Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

remove pointy finger icon not working Rate Topic: -----

#1 User is offline   WirawanNaga 

  • New Member
  • Pip
  • Group: New Members
  • Posts: 5
  • Joined: 16-February 09

Posted 11 March 2009 - 12:01 PM

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?
0

#2 User is offline   David Petley 

  • Advanced Member
  • PipPipPip
  • View gallery
  • Group: Admin
  • Posts: 6,632
  • Joined: --

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.


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.
0

#3 User is offline   WirawanNaga 

  • New Member
  • Pip
  • Group: New Members
  • Posts: 5
  • Joined: 16-February 09

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..
0

#4 User is offline   Wolf Gross 

  • Advanced Member
  • PipPipPip
  • Group: Moderator
  • Posts: 19,916
  • Joined: --
  • Gender:Male
  • Location:Perth/Australia

Posted 11 March 2009 - 04:14 PM

...try:

onLoad (){
this.useHandCursor = false;
}

wolf
Posted Image
Web Wolf Wonder Web Works

SWiSHsites modified
0

#5 User is offline   WirawanNaga 

  • New Member
  • Pip
  • Group: New Members
  • Posts: 5
  • Joined: 16-February 09

Posted 11 March 2009 - 04:43 PM

i have try Wolf code... it's have error on the line...
0

#6 User is offline   DrJohn 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 492
  • Joined: 26-October 08
  • Gender:Male
  • Location:Stillwater, MN / USA

Posted 11 March 2009 - 05:20 PM

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
0

#7 User is offline   WirawanNaga 

  • New Member
  • Pip
  • Group: New Members
  • Posts: 5
  • Joined: 16-February 09

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!!!!!!
0

#8 User is offline   s02 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 2,969
  • Joined: 26-December 03
  • Gender:Male
  • Location:Germany

Posted 11 March 2009 - 10:17 PM

View PostDrJohn, on Mar 11 2009, 08:20 AM, said:

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
_button.useHandCursor = false;


Best
Oliver
www
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users