control

Typekeyword
DictionaryLCS
LibraryLiveCode Script
Syntax
control
Synonymspart
Summary

Designates all object types that can be placed on a card.

Introduced1.0
OSmac, windows, linux, ios, android
Platformsdesktop, server, mobile
Example
put the number of controls into index
select control 5
RelatedKeyword: card
Property: name, layer
Function: number, mouseControl
Glossary: keyword, object reference, object type, expression
Description

Use the control keyword in an object reference.

A control is any object that can be placed on a card: a button, field, scrollbar, image, graphic, player, EPS object, or group.

You can refer to a control by number or by name. The expression control 2 refers to the control whose layer is 2. The expression control "this" refers to the first control whose short name is "this".

Tagsobjects