|
Usage-- Lingo syntax
objectReference.objectProperty
textExpression.objectProperty
object.commandOrFunction()
// JavaScript syntax
objectReference.objectProperty;
textExpression.objectProperty;
object.commandOrFunction();
DescriptionOperator;
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.
ExampleThis
statement displays the current member contained by the sprite in
channel 10:
-- Lingo syntax
put(sprite(10).member)
// JavaScript syntax
put(sprite(10).member);
To use the alternate syntax
and call a function, you can use this form:
-- Lingo syntax
myColorObject = color(124, 22, 233)
put(myColorObject.ilk())
-- #color
// JavaScript syntax
var myColorObject = color(124, 22, 233);
put(myColorObject.ilk());
// #color
|
|
|