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

  • 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 109
88
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
alert(fl.getDocumentDOM().deletePublishProfile());
See also
document.addNewPublishProfile()
document.deleteScene()
Availability
Flash MX 2004.
Usage
document.deleteScene()
Parameters
None.
Returns
A Boolean value: true if the scene is successfully deleted; false otherwise.
Description
Method; deletes the current scene (Timeline object) and, if the deleted scene was not the last one, sets the next scene
as the current Timeline object. If the deleted scene was the last one, it sets the first object as the current Timeline object.
If only one Timeline object (scene) exists, it returns the value
false.
Example
Assuming there are three scenes (Scene0, Scene1, and Scene2) in the current document, the following example
makes
Scene2 the current scene and then deletes it:
fl.getDocumentDOM().editScene(2);
var success = fl.getDocumentDOM().deleteScene();
document.deleteSelection()
Availability
Flash MX 2004.
Usage
document.deleteSelection()
Parameters
None.
Returns
Nothing.
Zobrazit stránku 109
1 2 ... 105 106 107 108 109 110 111 112 113 114 115 ... 564 565

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

Žádné komentáře