editable

Usage

-- Lingo syntax
spriteObjRef.editable

// JavaScript syntax
spriteObjRef.editable;

Description

Sprite property; determines whether a specified sprite can be edited on the Stage (TRUE) or not (FALSE). Read/write.

When the cast member property is set, the setting is applied to all sprites that contain the field.

When this property is set, only the specified sprite is affected.

You can also make a field sprite editable by using the Editable option in the Field Cast Member Properties dialog box.

You can make a field sprite editable by using the Editable option in the Score.

For the value set by a script to last beyond the current sprite, the sprite must be a scripted sprite.

Example

This handler first makes the sprite channel a puppet and then makes the field sprite editable:

-- Lingo syntax
on myNotes
   _movie.puppetSprite(5, TRUE)
   sprite(5).editable = TRUE
end

// JavaScript syntax
function myNotes() {
   _movie.puppetSprite(5, true);
   sprite(5).editable = true;
}

This statement checks whether a field sprite is editable and displays a message if it is:

-- Lingo syntax
if (sprite(13).editable = TRUE) then
   member("Notice").text = "Please enter your answer below."
end if

// JavaScript syntax
if (sprite(13).editable == true) {
   member("Notice").text = "Please enter your answer below.";
}

See also

Sprite