Event: Release(target)

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

release(target)

First defined in: FKiSS1
The release event is triggered when the user releases the mouse button after having clicked on the target.
Only one release 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:

;@ release("hair1.cel") ; When the mouse button has been released after clicking "hair1.cel"...
;@   map("hair2.cel")   ; Show "hair2.cel"
;@   unmap("hair1.cel") ; and hide "hair1.cel".
;@ release(#5)          ; When the mouse button has been released after clicking object #5...
;@   sound("ding.wav")  ; Play a sound.
;@ release(!MyGroup)    ; When the mouse button has been released after clicking group !MyGroup...
;@   gosub(50)          ; Execute procedure 50.