Event: Drop(target)

Related Events: press, release, catch, fixcatch, fixdrop
Related Actions: letcatch
See also: FKiSS, Events, Actions

drop(target)

First defined in: FKiSS1
The drop event is triggered when the user loses control of the target after attempting to move it. This can be triggered by the user releasing the mouse button or a change in the target's fix value.
Only one drop event should exist for any target.

target

In FKiSS1 to FKiSS3, target may be an object number or cel.
In FKiSS4, target may be an object number, cel, or group.

Example:

;@ drop("shirt.cel")       ; When the "shirt.cel" is dropped...
;@   map("shirt.cel")      ; Show the shirt
;@   unmap("shrtopen.cel") ; and hide the open shirt.
;@ drop(#5)                ; When object #5 is dropped...
;@   sound("ding.wav")     ; Play a sound.
;@ drop(!MyGroup)          ; When !MyGroup is dropped...
;@   gosub(50)             ; Execute procedure 50.