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

  • 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 182
161
EXTENDING FLASH PROFESSIONAL
Document object
Last updated 5/2/2011
var myDoc = fl.getDocumentDOM();
fl.trace(myDoc.sourcePath);
myDoc.sourcePath = "./Class files;" + myDoc.sourcePath;
fl.trace(myDoc.sourcePath);
See also
document.externalLibraryPath, document.libraryPath, fl.sourcePath
document.space()
Availability
Flash MX 2004.
Usage
document.space(direction [, bUseDocumentBounds])
Parameters
direction A string that specifies the direction in which to space the objects in the selection. Acceptable values are
"horizontal" or "vertical".
bUseDocumentBounds A Boolean value that, when set to true, spaces the objects to the document bounds. Otherwise,
the method uses the bounds of the selected objects. The default is
false. This parameter is optional.
Returns
Nothing.
Description
Method; spaces the objects in the selection evenly.
Example
The following example spaces the objects horizontally, relative to the Stage:
fl.getDocumentDOM().space("horizontal",true);
The following example spaces the objects horizontally, relative to each other:
fl.getDocumentDOM().space("horizontal");
The following example spaces the objects horizontally, relative to each other, with bUseDcoumentBounds expressly set
to
false:
fl.getDocumentDOM().space("horizontal",false);
See also
document.getAlignToDocument(), document.setAlignToDocument()
Zobrazit stránku 182
1 2 ... 178 179 180 181 182 183 184 185 186 187 188 ... 564 565

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

Žádné komentáře