748
Chapter 14: Properties
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
Summary of Contents for DIRECTOR MX 2004
Page 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Page 48: ...48 Chapter 2 Director Scripting Essentials...
Page 100: ...100 Chapter 4 Debugging Scripts in Director...
Page 118: ...118 Chapter 5 Director Core Objects...
Page 594: ...594 Chapter 12 Methods...
Page 684: ...684 Chapter 14 Properties See also DVD...
Page 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Page 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Page 1102: ...1102 Chapter 14 Properties...