beautypg.com

Toolobj.showpicontrol() – Adobe Extending Flash Professional CS5 User Manual

Page 526

background image

504

EXTENDING FLASH PROFESSIONAL

ToolObj object

Last updated 5/2/2011

Description
Method; sets the tooltip that appears when the mouse is held over the tool icon. This method is used only when you
create extensible tools.

Example
The following example specifies that the tooltip for the tool should be

PolyStar Tool

. This code is taken from the

sample PolyStar.jsfl file (see “

Sample PolyStar tool

” on page 13):

theTool = fl.tools.activeTool;

theTool.setToolTip("PolyStar Tool");

toolObj.showPIControl()

Availability
Flash MX 2004.

Usage

toolObj.showPIControl(control, bShow)

Parameters

control

A string that specifies the name of the control to show or hide. This method is used only when you create

extensible tools. Valid values depend on the Property inspector invoked by this tool (see

toolObj.setPI()

).

A shape Property inspector has the following controls:

A text Property inspector has the following controls:

The movie Property inspector has the following controls:

stroke

fill

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

size

publish

background

framerate

player

profile

This manual is related to the following products: