toolObj.enablePIControl()

Availability

Flash MX 2004.

Usage

toolObj.enablePIControl(control, bEnable)

Parameters

control A string that specifies the name of the control to enable or disable. Legal values depend on the Property inspector invoked by this tool (see toolObj.setPI()).

A shape Property inspector has the following controls:

stroke

fill

A text Property inspector has the following controls:

type

font

pointsize

color

bold

italic

direction

alignLeft

alignCenter

alignRight

alignJustify

spacing

position

autoKern

small

rotation

format

lineType

selectable

html

border

deviceFonts

varEdit

options

link

maxChars

target

A movie Property inspector has the following controls:

size

publish

background

framerate

player

profile

bEnable A Boolean value that determines whether to enable (true) or disable (false) the control.

Returns

Nothing.

Description

Method; enables or disables the specified control in a Property inspector. Used only when creating extensible tools.

Example

The following command in an extensible tool's JavaScript file sets Flash to not show the stroke options in the Property inspector for that tool:

theTool.enablePIControl("stroke",  false); 

Flash CS3


 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/flash/9.0/main/00004557.html