VideoItem object

 < Day Day Up > 

Inheritance Item object > VideoItem object

Availability

Flash MX 2004.

Description

The VideoItem object is a subclass of the Item object.

Property summary for the VideoItem object

In addition to the Item object properties, you can use the following properties with the VideoItem object:

Property

Description

videoItem.sourceFilePath

Read-only; a string that specifies the path to the video item.

videoItem.videoType

Read-only; a string that specifies the type of video the item represents.


videoItem.sourceFilePath

Availability

Flash 8.

Usage

videoItem.sourceFilePath

Description

Read-only property; a string, expressed as a file:/// URI that specifies the path to the video item.

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

library.items

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 );   } }

See also

library.items

     < Day Day Up > 


    Developing Extensions for Macromedia Flash 8
    Developing Extensions for Macromedia Flash 8
    ISBN: 032139416X
    EAN: 2147483647
    Year: 2005
    Pages: 81

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net