Adobe Extending Flash Professional CS5 Manuale Utente Pagina 525

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 524
503
EXTENDING FLASH PROFESSIONAL
ToolObj object
Last updated 5/2/2011
Example
The following example specifies that the shape Property inspector should be used when the tool is activated. This code
is taken from the sample PolyStar.jsfl file (see
Sample PolyStar tool” on page 13):
theTool = fl.tools.activeTool;
theTool.setPI("shape");
toolObj.setToolName()
Availability
Flash MX 2004.
Usage
toolObj.setToolName(name)
Parameters
name A string that specifies the name of the tool.
Returns
Nothing.
Description
Method; assigns a name to the tool for the configuration of the Tools panel. This method is used only when you create
extensible tools. The name is used only by the XML layout file that Flash reads to construct the Tools panel. The name
does not appear in the Flash user interface.
Example
The following example assigns the name polystar to the tool named theTool. This code is taken from the sample
PolyStar.jsfl file (see
Sample PolyStar tool” on page 13):
theTool = fl.tools.activeTool;
theTool.setToolName("polystar");
toolObj.setToolTip()
Availability
Flash MX 2004.
Usage
toolObj.setToolTip(toolTip)
Parameters
toolTip A string that specifies the tooltip to use for the tool.
Returns
Nothing.
Vedere la pagina 524
1 2 ... 520 521 522 523 524 525 526 527 528 529 530 ... 564 565

Commenti su questo manuale

Nessun commento