Adobe Extending Flash Professional CS5 User Manual Page 541

  • Download
  • Add to my manuals
  • Print
  • Page
    / 565
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 540
519
EXTENDING FLASH PROFESSIONAL
VideoItem object
Last updated 5/2/2011
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);
}
}
Page view 540
1 2 ... 536 537 538 539 540 541 542 543 544 545 546 ... 564 565

Comments to this Manuals

No comments