Edit in GitHubLog an issue

MediaItems

The media items collection.

Instance

Read Only

Number length

The number of objects in the collection.

Methods

Number count()

Displays the number of elements in the MediaItem.


MediaItem item( Mixed index )

Returns the MediaItem with the specified index or name.

Parameters

TypeNameDescription
Mixed
index
The index or name. Can accept: Long Integer or String.

MediaItem itemByName( String name )

Returns the MediaItem with the specified name.

Parameters

TypeNameDescription
String
name
The name.

MediaItem itemByID( Number id )

Returns the MediaItem with the specified ID.

Parameters

TypeNameDescription
Number
id
The ID.

MediaItem itemByRange( Mixed from, Mixed to )

Returns the MediaItems within the specified range.

Parameters

TypeNameDescription
Mixed
from
The MediaItem, index, or name at the beginning of the range. Can accept: MediaItem, Long Integer or String.
Mixed
to
The MediaItem, index, or name at the end of the range. Can accept: MediaItem, Long Integer or String.

MediaItem firstItem()

Returns the first MediaItem in the collection.


MediaItem lastItem()

Returns the last MediaItem in the collection.


MediaItem middleItem()

Returns the middle MediaItem in the collection.


MediaItem previousItem( MediaItem obj )

Returns the MediaItem with the index previous to the specified index.

Parameters

TypeNameDescription
MediaItem
obj
The index of the MediaItem that follows the desired MediaItem.

MediaItem nextItem( MediaItem obj )

Returns the MediaItem whose index follows the specified MediaItem in the collection.

Parameters

TypeNameDescription
MediaItem
obj
The MediaItem whose index comes before the desired MediaItem.

MediaItem anyItem()

Returns any MediaItem in the collection.


MediaItem everyItem()

Returns every MediaItem in the collection.


String toSource()

Generates a string which, if executed, will return the MediaItem.


MediaItem []( Number index )

Returns the MediaItem with the specified index.

Parameters

TypeNameDescription
Number
index
The index.
Was this helpful?
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2023 Adobe. All rights reserved.