|
|
|
Move Window [ stage or MIAW ]
Added on 10/1/2002
|
|
Compatibilities:
|
This item has not yet been rated
|
Just drop ONE of this into any sprite an then use the sprite to drag the current window
DON'T USE together
DOWNLOAD the source code for a movie demo
Download PC Source
----------------------- BEHAVIOR 1 -----------------------
on mouseDown me
repeat while the mouseDown
A = the activeWindow.rect
N = the mouseLoc - the clickLoc
(the activeWindow).rect = rect(A[1]+N[1], A[2]+N[2], A[3]+N[1], A[4]+N[2])
end repeat
end
-------------------------- END ---------------------------
----------------------- BEHAVIOR 2 -----------------------
on mouseDown me
add the actorlist me
end
on stepFrame me
if the mouseDown then
A = the activeWindow.rect
N = the mouseLoc - the clickLoc
(the activeWindow).rect = rect(A[1]+N[1], A[2]+N[2], A[3]+N[1], A[4]+N[2])
else deleteAt the actorlist, getPos(the actorlist, me)
end
-------------------------- END ---------------------------
|
|