Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
PDF Asset Xtra
INM's Impressario
Setup Anim
Macromedia Director 8.5 Shockwave Studio for 3D: Training from the Source
DirectTransition
Change Bitdepth
System Info into a field member
Force Characters
DumpSymbol
Base64 Xtra
MediaMacros Xtras Mall
 

 

 

Behavior Use any sprite as a dragger

Added on 7/2/2003

 

Compatibilities:

This item has not yet been rated

Author: troyhipolito (website)

This time we will see how to make a behavior to use any sprite as a dragger, so while you maintain pressed this sprite the window will be relocated according to the position of the mouse. The window could be the stage or a MIAW. for a full tutorial see: http://www.shocksites.com/openSource/041203.asp

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

 


Upload Provided by ABCUpload ASP

Contact

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

Fax - (206) 339-5833

Send e-mail