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
Содержание DIRECTOR MX 2004-DIRECTOR SCRIPTING
Страница 1: ...DIRECTOR MX 2004 Director Scripting Reference...
Страница 48: ...48 Chapter 2 Director Scripting Essentials...
Страница 100: ...100 Chapter 4 Debugging Scripts in Director...
Страница 118: ...118 Chapter 5 Director Core Objects...
Страница 594: ...594 Chapter 12 Methods...
Страница 684: ...684 Chapter 14 Properties See also DVD...
Страница 702: ...702 Chapter 14 Properties See also face vertices vertices flat...
Страница 856: ...856 Chapter 14 Properties JavaScript syntax sprite 15 member member 3 4...
Страница 889: ...netPresent 889 _player alert Sorry the Network Support Xtras could not be found See also Player...
Страница 1102: ...1102 Chapter 14 Properties...