Adobe Extending Flash Professional CS5 Manuel d'utilisateur Page 250

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 565
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 249
228
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
var contact = fl.contactSensitiveSelection;
fl.contactSensitiveSelection = false;
// Insert selection code here.
fl.contactSensitiveSelection = contact;
fl.createDocument()
Availability
Flash MX 2004.
Usage
fl.createDocument([docType])
Parameters
docType A string that specifies the type of document to create. Acceptable values are "timeline", "presentation",
and
"application". The default value is "timeline", which has the same effect as choosing File > New > Flash File
(ActionScript 3.0). This parameter is optional.
Returns
The Document object for the newly created document, if the method is successful. If an error occurs, the value is
undefined.
Description
Method; opens a new document and selects it. Values for size, resolution, and color are the same as the current defaults.
Example
The following example creates different types of documents:
// Create two Timeline-based Flash documents.
fl.createDocument();
fl.createDocument("timeline");
// Create a Slide Presentation document.
fl.createDocument("presentation");
// Create a Form Application document.
fl.createDocument("application");
fl.createNewDocList
Availability
Flash MX 2004.
Usage
fl.createNewDocList
Description
Read-only property; an array of strings that represent the various types of documents that can be created.
Vue de la page 249
1 2 ... 245 246 247 248 249 250 251 252 253 254 255 ... 564 565

Commentaires sur ces manuels

Pas de commentaire