Symbolinstance.silent, Symbolinstance.symboltype – Adobe Extending Flash Professional CS5 User Manual
Page 448
426
EXTENDING FLASH PROFESSIONAL
SymbolInstance object
Last updated 5/2/2011
fl.getDocumentDOM().selection[0].shortcut = "Ctrl+i";
symbolInstance.silent
Availability
Flash MX 2004.
Usage
symbolInstance.silent
Description
Property; a Boolean value that enables or disables the accessibility of the object. This property is equivalent to the
inverse logic of the Make Object Accessible setting in the Accessibility panel. For example, if
silent
is
true
, it is the
same as the Make Object Accessible option being unchecked. If
silent
is
false
, it is the same as the Make Object
Accessible option being checked.
This property is not available for graphic objects.
Example
The following example checks to see if the object is accessible; a return value of
false
means the object is accessible:
var isSilent = fl.getDocumentDOM().selection[0].silent;
The following example sets the object to be accessible:
fl.getDocumentDOM().selection[0].silent = false;
symbolInstance.symbolType
Availability
Flash MX 2004.
Usage
symbolInstance.symbolType
Description
Property; a string that specifies the type of symbol. This property is equivalent to the value for Behavior in the Create
New Symbol and Convert To Symbol dialog boxes. Acceptable values are
"button"
,
"movie clip"
, and
"graphic"
.
Example
The following example sets the first symbol in the first frame of the first layer in the timeline of the current document
to behave as a graphic symbol:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].elements[0].symbolType = "graphic";