|
|
|
Fake Drag Bar - Stage
Added on 6/1/2001
|
Moves the stage using a sprite instead of the actual window bar.
--Copyright 2001 MediaMacros, Inc.
property spritenum, state, lastM
on mouseDown me
lastM = the mouseLoc
state = 1
end
on beginSprite me
state = 0
end
on mouseUp me
state = 0
end
on mouseUpOutside me
state = 0
end
on exitFrame me
if state = 1 then
d = the mouseLoc -lastM
(the stage).rect = (the stage).rect.offset(d[1], d[2])
end if
end
on getBehaviorDescription me
return "Drop this on a sprite to make it move the stage."
end
|
|