Lingo Dictionary > Symbols > . (dot operator)

 

. (dot operator)

Syntax

objectReference.objectProperty
textExpression.objectProperty
object.commandOrFunction()

Description

Operator; used to test or set properties of objects, or to issue a command or execute a function of the object. The object may be a cast member, a sprite, a property list, a child object of a parent script, or a behavior.

Example

This statement displays the current member contained by the sprite in channel 10:

put sprite(10).member

Example

To use the alternate syntax and call a function, you can use the form:

myColorObject = color(#rgb, 124, 22, 233)
put myColorObject.ilk()
-- #color