newAudioclip

Typemessage
DictionaryLCS
LibraryLiveCode Script
Syntax
newAudioclip
Associationsaudioclip
Summary

Sent to a new audio clip right after it's created.

Introduced8.1
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
on newAudioclip -- play a new audio clip as soon as it is created
   play the target
end newAudioclip
RelatedKeyword: templateAudioclip
Property: script
Command: copy, clone, paste
Object: audioclip
Glossary: object, trap, message, tool, message path
Control Structure: pass
Description

Handle the newAudioclip message if you want to create additional objects, switch tools, or do other tasks when a new audioclip is created.

Normally, the newAudioclip message is handled at a higher level of the message path, since the newly created audioclip does not yet have a script unless the templateAudioclip contains one.

The actual creation is not triggered by the newAudioclip message, so trapping the message and not allowing it to pass does not prevent the audioclip from being created.

Tagsobjects