Umed,
Your code works fine for me as well. The number for the closed hand is
290. Below is a common script that I include in all of my movies. It
returns the integer of the cursor you are looking for from a string
rather than a hard to remember integer. Just do:
sprite(me.spriteNum).cursor = getCursor("ClosedHand")
on getCursor strCursor
case strCursor of
"Arrow": return 0
"IBeam": return 1
"Crosshair": return 2
"Crossbar": return 3
"Watch": return 4
"HourGlass": return 4
"Blank": return 200
"Help": return 254
"Pencil": return 256
"Eraser": return 257
"SelectCrosshair": return 258
"Bucket": return 259
"Hand": return 260
"RegCrosshair": return 271
"Lasso": return 272
"Finger": return 280
"Dropper": return 281
"VerticalSize": return 284
"HorizontalSize": return 285
"DiagonalSize": return 286
"ClosedHand": return 290
"NoDropHand": return 291
"CopyClosedHand": return 292
"InverseArrow": return 293
"Rotate": return 294
"Skew": return 295
"SkewBlack": return 296
"VerticalSizeBlack": return 297
"DiagonalResizePosBlack": return 298
"DiagonalResizeNegBlack": return 299
"Smear": return 300
"AirBrush": return 301
"ZoomIn": return 302
"ZoomOut": return 303
"Magnify": return 304
otherwise: return -1
end case
End
HTH
Brian Romanko
Lead Developer - Neo/SCI Corporation
Member - Greater Rochester Macromedia User Group
-----Original Message-----
At 1:09 PM -0700 10/18/01, Umed Zokirov wrote:
>Hi there
>
>I have a draggable sprite for which I added a behavior so that whenever
>the mouse is over it, it changes the cursor to open hand. The thing is
>that I would like to "close the hand" when the user clicks on the
>sprite. How can I do it ?
>
>I tried something like
>
>
>on mouseDown
>
>sprite(the clickOn).cursor = 5
>
>end
>
>But nothing happens. I don't know if two behaviors conflict or I don't
>know the exact number of the "closed hand cursor". So I was wondering
>if anyone knows how to do it
>
> Thanks in advance, Umed
the closed hand cursor doesn't seem to be listed in the docs & your
code works if i put a 2 in place of the 5 (I get the "+" cursor), so
I'd guess that you'll need to make a hand cursor member & mask member
& use the cursor [castNumber, maskCastNumber] command instead.
[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list,
email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo. Thanks!]