Ta in advance
Denty
Referring URLs
property prevMouseLoc, myTimer
on enterFrame
if the mouseLoc<>prevMouseLoc then
cursor -1
myTimer=the milliseconds
prevMouseLoc=the mouseLoc
else
if the milliseconds-myTimer>200 then
cursor 200
end if
end if
end enterFrame
on beginSprite
prevMouseLoc=the mouseLoc
myTimer=the milliseconds
end beginSprite
on exitFrame
go the frame
end
I put the timing in to keep the appearance neater.
HTH
Andrew Morton
Easier:
if the lastRoll > 60 then cursor 200
else cursor -1
This will make the cursor disappear after 1 second of not moving. (60
ticks)
(Note, you must use 200, not -200 to make the cursor disappear. Both 0
and -1 seem to work for getting the arrow back, but I believe there are some
instances where -1 will work more reliably than 0.)
Denty
Referring URLs