motionRelease

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
motionRelease <pMotion>
Summary

Sent when a motion is ended due to an incoming even such as a phone-call.

Introduced4.5.2
OSios, android
Platformsdesktop
Parameters
NameTypeDescription
pMotion

The type of motion detected by the device

Example
on motionRelease theMotion
  stopDice -- stops the animation when the motion is stopped
end motionRelease
RelatedProperty: defaultStack
Message: motionEnd, motionStart
Description

Handle the motionRelease message to perform an action when a motion is stopped due to an incoming event such as a phone-call.

The motionRelease message is sent to the current card of the defaultStack when a motion is ended due to an incoming event such as a phone-call.

Note: As of iPhoneOS 3.0 the only motion that is generated is "shake"

Tagsui