home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
3D World 110
/
3DW_110.iso
/
mac
/
Menu
/
Scenes
/
DisplayFullImage.dir
/
00004_Script_MouseScroll
< prev
Wrap
Text File
|
2006-09-06
|
493b
|
41 lines
global pOffset
property origin
global pDrag
property Sp
on beginsprite me
pDrag = false
Sp = sprite(me.spritenum)
pOffset = point(0,0)
origin = point(0,0)
end
on mouseWithin me
cursor 260
end
on mouseLeave me
cursor -1
end
on mouseDown me
origin = the mouseLoc
pDrag = true
end
on mouseUp me
pDrag = false
pOffset = Sp.loc
end
on exitframe me
if (pDrag) then
Sp.loc = pOffset + (the mouseLoc - origin)
end if
end