|
From: Mike Crisp on 10 Apr 2008 12:13 I'm using co-ordinates to control a mouseUp command (below) if the mousev > 510 and the mousev<530 then if the mouseh>216 and the mouseh<272 then left What do i need to include from the Rollover Cursor change (library behaiour) to make the cursor became a finger when it passes over the above co-ordinates ?
From: Mike Blaustein on 10 Apr 2008 12:39 You can set the cursor that is used when the mouse is over a sprite like this: sprite(me.spriteNum).cursor=280 That is the finger pointer. Check out the help file for a list of all of them. Anyway, set it to zero when you want it to have the standard default one, and 280 when you want it to be the pointer (or other numbers for other cursors as you like)
From: Darrel Hoffman on 10 Apr 2008 15:48 > You can set the cursor that is used when the mouse is over a sprite like > this: > > sprite(me.spriteNum).cursor=280 > > That is the finger pointer. Check out the help file for a list of all of > them. Anyway, set it to zero when you want it to have the standard > default one, and 280 when you want it to be the pointer (or other numbers > for other cursors as you like) Addendum: If you want to use your own graphics for a cursor, use cursor=200 in the startMovie or something, then create a sprite of your graphic (don't forget to move the regpoint in the Paint window to where you want your hot-point) and either use the Sprite Track Mouse behavior from the library (unneccesarily bulky) or script your own by using: on exitFrame me sprite(me.spriteNum).loc = the mouseLoc end Then you can change between different cursor graphics simply by changing the member of that sprite.
From: Mike Blaustein on 10 Apr 2008 15:49 addendum to the addendum: you will have better luck using prepareFrame instead of exitFrame for the custom cursor. If you have a complex scene, the cursor will "drag" behind the actual mouse location if it is in exitFrame. It will be placed better if you use prepareFrame.
From: Darrel Hoffman on 10 Apr 2008 17:21 > you will have better luck using prepareFrame instead of exitFrame for the > custom cursor. If you have a complex scene, the cursor will "drag" behind > the actual mouse location if it is in exitFrame. It will be placed better > if you use prepareFrame. Right, my bad. I was thinking that or enterFrame maybe. PrepareFrame doesn't always work, I've found. Like, you can use it on a frame script, but it doesn't necessarily do what you'd expect on a behavior. As always, use trial and error to find the best way...
|
Next
|
Last
Pages: 1 2 Prev: lingo-Java Script problem with new members Next: D11: Has text input in LDM?s been fixed? |