MediaItems
The media items collection.
Go to Property Listing | Method Listing
Methods:
[], anyItem, count, everyItem, firstItem, item, itemByID, itemByName, itemByRange, lastItem, middleItem, nextItem, previousItem, toSource
Property Listing
Property |
Type |
Access |
Description |
---|---|---|---|
readonly |
The number of objects in the collection. |
Method Listing
MediaItem [] (index:Number)
Returns the MediaItem with the specified index.
Parameter |
Type |
Description |
---|---|---|
index |
The index. |
MediaItem anyItem ()
Returns any MediaItem in the collection.
Number count ()
Displays the number of elements in the MediaItem.
MediaItem everyItem ()
Returns every MediaItem in the collection.
MediaItem firstItem ()
Returns the first MediaItem in the collection.
MediaItem item (index:Varies LongInteger String)
Returns the MediaItem with the specified index or name.
Parameter |
Type |
Description |
---|---|---|
index |
LongInteger |
The index or name. Can accept: Long Integer or String. |
MediaItem itemByID (id:Number)
Returns the MediaItem with the specified ID.
Parameter |
Type |
Description |
---|---|---|
id |
The ID. |
MediaItem itemByName (name:String)
Returns the MediaItem with the specified name.
Parameter |
Type |
Description |
---|---|---|
name |
The name. |
MediaItem itemByRange (from:Varies LongInteger MediaItem String, to:Varies LongInteger MediaItem String)
Returns the MediaItems within the specified range.
Parameter |
Type |
Description |
---|---|---|
from |
LongInteger |
The MediaItem, index, or name at the beginning of the range. Can accept: MediaItem, Long Integer or String. |
to |
LongInteger |
The MediaItem, index, or name at the end of the range. Can accept: MediaItem, Long Integer or String. |
MediaItem lastItem ()
Returns the last MediaItem in the collection.
MediaItem middleItem ()
Returns the middle MediaItem in the collection.
MediaItem nextItem (obj:MediaItem)
Returns the MediaItem whose index follows the specified MediaItem in the collection.
Parameter |
Type |
Description |
---|---|---|
obj |
The MediaItem whose index comes before the desired MediaItem. |
MediaItem previousItem (obj:MediaItem)
Returns the MediaItem with the index previous to the specified index.
Parameter |
Type |
Description |
---|---|---|
obj |
The index of the MediaItem that follows the desired MediaItem. |
String toSource ()
Generates a string which, if executed, will return the MediaItem.
Object of
Oval.mediaItems
Rectangle.mediaItems
GraphicLine.mediaItems
Polygon.mediaItems
SplineItem.mediaItems