media

Usage

-- Lingo syntax
memberObjRef.media

// JavaScript syntax
memberObjRef.media;

Description

Member property; identifies the specified cast member as a set of numbers. Read/write.

Because setting this property can use large amounts of memory, it is best used during authoring only.

You can use the media property to copy the content of one cast member into another cast member by setting the second member's media value to the media value for the first member.

For a film loop cast member, the media property specifies a selection of frames and channels in the Score.

To swap media in a projector, it is more efficient to set the member sprite property.

Example

This statement copies the content of the cast member Sunrise into the cast member Dawn by setting the media member property value for Dawn to the media member property value for Sunrise:

-- Lingo syntax
member("Dawn").media = member("Sunrise").media

// JavaScript syntax
member("Dawn").media = member("Sunrise").media;

See also

Member