Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Set PlayBackMode of a Flash Member
Set BroadCast Property of a Flash Sprite
Impressario Thumbnail Slider
Simple Encryption / Decryption
Play/Pause/Rewind Video Sprite
Convert Decimal to Comma (EU)
Dither Black and White Image - Imaging Lingo
Catpure Source Read And Save ASF File
Play different Movies For Different Game Levels
Simple file open/save dialog behavior
 

 

 

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

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail