Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 359

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 358
337
EXTENDING FLASH PROFESSIONAL
library object
Last updated 5/2/2011
Usage
library.setItemProperty(property, value)
Parameters
property A string that is the name of the property to set. For a list of properties, see the Property summary table for
the Item object and property summaries for its subclasses. To see which objects are subclasses of the Item object, see
Summary of the DOM structure” on page 11.
value The value to assign to the specified property.
Returns
Nothing.
Description
Method; sets the property for all selected library items (ignoring folders).
Example
The following example assigns the value button to the symbolType property for the selected library item or items. In
this case, the item must be a
SymbolItem object; symbolType is a valid property for SymbolItem objects.
fl.getDocumentDOM().library.setItemProperty("symbolType", "button");
library.updateItem()
Availability
Flash MX 2004.
Usage
library.updateItem([namePath])
Parameters
namePath A string that specifies the name of the item. If the item is in a folder, specify its name and path using slash
notation. This is the same as right-clicking on an item and selecting Update from the menu in the user interface. If no
name is provided, the current selection is updated. This parameter is optional.
Returns
A Boolean value: true if Flash updated the item successfully; false otherwise.
Description
Method; updates the specified item.
Example
The following example displays a dialog box that shows whether the currently selected item is updated (true) or not
(
false):
alert(fl.getDocumentDOM().library.updateItem());
Zobrazit stránku 358
1 2 ... 354 355 356 357 358 359 360 361 362 363 364 ... 564 565

Komentáře k této Příručce

Žádné komentáře