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
Windows For Shockwave
Billenium Transitions Xtra v1.1
Set Display Properties
OpenDocument
ResolutionX Xtras
FreePPP Control
Microangelo
Flash Paper in Director Article
MPEG Xtra Controller Button
Go to Different Movie
 

 

 

Behavior Move MIAW

Added on 11/29/2000

 

Compatibilities:
behavior D7 D8 Mac PC

This item has not yet been rated

Author: Thomas (website)

Moves a MIAW with a sprite as a drag bar,

on mouseDown me
vWin = the activeWindow
mPt = the mouseLoc
origRect = vWin.rect
repeat while the mouseDown
newPt = the mouseLoc
if not inside(newPt, rect(getAt(mPt,1)-3, getAt(mPt,2)-3, getAt(mPt,1)+3, getAt(mPt,2)+3)) then
deltaPt = newPt - mPt
newRect = offset(origRect,getAt(deltaPt,1), getAt(deltaPt,2))
vWin.rect = newRect
origRect = vWin.rect
updateStage
tell the stage to updateStage
end if
end repeat
end

 


Contact

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

Send e-mail