Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
WebViewer Xtra
myScreen
Field Entry Dialog Box
Set PlayBackMode of a Flash Member
Slider bar-Alphamania
Animate Text By Font Size
Glu32
Checking an open database - Valentina
ZoomIn/ZoomOut QTVR Sprite
Learning Lingo : The Art and Science of Programming With Macromedia Director
MediaMacros Xtras Mall
 

 

 

Behavior Move Window [ stage or MIAW ]

Added on 10/1/2002

 

Compatibilities:
D8 D8_5

This item has not yet been rated

Author: JRDR

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  ---------------------------

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail