Adobe Extending Flash Professional CS4 Uživatelský manuál Strana 263

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 560
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 262
241
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
fl.trace("Number of recently opened files: " + fl.mruRecentFileListType.length);
for (i = 0; i < fl.mruRecentFileListType.length; i++) fl.trace("type: " +
fl.mruRecentFileListType[i]);
fl.objectDrawingMode
Availability
Flash 8.
Usage
fl.objectDrawingMode
Description
Property; a Boolean value that specifies whether the object drawing mode is enabled (true) or the merge drawing
mode is enabled (
false).
Example
The following example toggles the state of the object drawing mode:
var toggleMode = fl.objectDrawingMode;
if (toggleMode) {
fl.objectDrawingMode = false;
} else {
fl.objectDrawingMode = true;
}
fl.openDocument()
Availability
Flash MX 2004.
Usage
fl.openDocument(fileURI)
Parameters
fileURI A string, expressed as a file:/// URI, that specifies the name of the file to be opened.
Returns
The Document object for the newly opened document, if the method is successful. If the file is not found or is not a
valid FLA file, an error is reported and the script is cancelled.
Description
Method; opens a Flash document (FLA file) for editing in a new Flash Document window and gives it focus. For a user,
the effect is the same as selecting File
> Open and then selecting a file. If the specified file is already open, the window
that contains the document comes to the front. The window that contains the specified file becomes the currently
selected document.
Zobrazit stránku 262
1 2 ... 258 259 260 261 262 263 264 265 266 267 268 ... 559 560

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

Žádné komentáře