Adobe Extending Flash Professional CS4 Manuel d'utilisateur Page 535

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 560
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 534
513
EXTENDING FLASH CS4 PROFESSIONAL
VideoItem object
Example
The following example displays the name and source file path of any items in the library that are of type video:
for (idx in fl.getDocumentDOM().library.items) {
if (fl.getDocumentDOM().library.items[idx].itemType == "video") {
var myItem = fl.getDocumentDOM().library.items[idx];
fl.trace(myItem.name + " source is " + myItem.sourceFilePath);
}
}
See also
videoItem.sourceFileExists
videoItem.videoType
Availability
Flash 8.
Usage
videoItem.videoType
Description
Read-only property; a string that specifies the type of video the item represents. Possible values are "embedded
video", "linked video", and "video".
Example
The following example displays the name and type of any items in the library that are of type video:
for (idx in fl.getDocumentDOM().library.items) {
if (fl.getDocumentDOM().library.items[idx].itemType == "video") {
var myItem = fl.getDocumentDOM().library.items[idx];
fl.trace(myItem.name + " is " + myItem.videoType);
}
}
Vue de la page 534
1 2 ... 530 531 532 533 534 535 536 537 538 539 540 ... 559 560

Commentaires sur ces manuels

Pas de commentaire