beautypg.com

Compiledclipinstance.forcesimple, Compiledclipinstance.shortcut, Compiledclipinstance.silent – Adobe Extending Flash Professional CS5 User Manual

Page 66

background image

44

EXTENDING FLASH PROFESSIONAL

CompiledClipInstance object

Last updated 5/2/2011

compiledClipInstance.forceSimple

Availability
Flash MX 2004.

Usage

compiledClipInstance.forceSimple

Description
Property; a Boolean value that enables and disables the children of the object to be accessible. This is equivalent to the
inverse logic of the Make Child Objects Accessible setting in the Accessibility panel. If

forceSimple

is

true

, it is the

same as the Make Child Objects Accessible option being unchecked. If

forceSimple

is

false

, it is the same as the

Make Child Object Accessible option being checked.

Example
The following example illustrates getting and setting the

forceSimple

property:

// Query if the children of the object are accessible.

var areChildrenAccessible = fl.getDocumentDOM().selection[0].forceSimple;

// Allow the children of the object to be accessible.

fl.getDocumentDOM().selection[0].forceSimple = false;

compiledClipInstance.shortcut

Availability
Flash MX 2004.

Usage

compiledClipInstance.shortcut

Description
Property; a string that is equivalent to the Shortcut field in the Accessibility panel. The shortcut is read by the screen
reader. This property is not available for dynamic text fields.

Example
The following example illustrates getting and setting the

shortcut

property:

// Get the shortcut key of the object.

var theShortcut = fl.getDocumentDOM().selection[0].shortcut;

// Set the shortcut key of the object.

fl.getDocumentDOM().selection[0].shortcut = "Ctrl+I";

compiledClipInstance.silent

Availability
Flash MX 2004.

This manual is related to the following products: