Adobe Extending Flash Professional CS5 Manuel d'utilisateur Page 331

  • 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 330
309
Last updated 5/2/2011
Chapter 23: Instance object
Inheritance Element object > Instance object
Availability
Flash MX 2004.
Description
Instance is a subclass of the Element object.
Property summary
In addition to all of the Element object properties, Instance has the following properties:
instance.instanceType
Availability
Flash MX 2004; possible value of "video" added in Flash 8.
Usage
instance.instanceType
Description
Read-only property; a string that represents the type of instance. Possible values are "symbol", "bitmap", "embedded
video", "linked video", "video", and "compiled clip".
In Flash MX 2004, the value of instance.instanceType for an item added to the library using
library.addNewItem("video") is "embedded_video". In Flash 8 and later, the value is "video". See
library.addNewItem().
Example
The following example shows that the instance type of a movie clip is symbol:
// Select a movie clip and then run this script.
var type = fl.getDocumentDOM().selection[0].instanceType;
fl.trace("This instance type is " + type);
Property Description
instance.instanceType Read-only; a string that represents the type of instance.
instance.libraryItem Library item used to instantiate this instance.
Vue de la page 330
1 2 ... 326 327 328 329 330 331 332 333 334 335 336 ... 564 565

Commentaires sur ces manuels

Pas de commentaire