Mpeg Advance Xtra MPEG ADVANCE XTRA HELP: MEMBER PROPERTIES  
 

All properties of the Mpeg Advance Xtra cast member can be easily set in the Properties Dialog box, which is displayed when the cast member is created and also when you double-click the cast member icon in the cast window. These properties can also be set using Lingo, or JavaScript syntax in Director MX 2004 and Director 11.

 

Filename - the complete pathname of the linked media file.

Lingo example:

put member(1).filename

-- "C:\myfiles\myfile.mpg"

JavaScript syntax example:

trace member(1).filename

//"C:\myfiles\myfile.mpg

 

 

Duration - the duration of the linked Media file in milliseconds.

Lingo example:

put member(1).duration

-- 45200

 

 

Videowidth - the original encoded width of the linked Media file, in pixels. This is a read-only property.

Lingo example:

put member(1).videowidth

-- 320

 

 

Videoheight - the original encoded height of the linked Media file, in pixels. This is a read-only property.

Lingo example:

put member(1).videoheight

-- 240

 

 

Volume - The default audio volume to be used during playback of new Xtra sprites. Values range from 0 to 255, expressed linearly. The sprite volume property may be used when you want to modify the volume of a sprite that is already on the stage.

Lingo example:

put member(1).volume

-- -10

 

 

Balance - The default audio balance to be used during playback of new Xtra sprites. Values range from -100 to 100. The sprite balance property may be used when you want to modify the balance of audio of a sprite that is already on the stage. This property is only available on Windows.

Lingo example:

put member(1).balance

-- 0

 

 

Rate - The default playback rate to be used during playback. Values range from 0 to 2, expressed in percentage of the original playback rate. The sprite function rate may be used when you want to modify the rate of playback of a sprite that is already on the stage.

Lingo example:

member(1).rate = 0.5

 

 

Cpuboost - On Windows, Mpeg Advance Xtra can slow down Director to allow more CPU time for the DirectShow driver. This can be useful if you are experiencing poor or stuttering playback on older machines. Legal values are in the range of 0 to 95 percent, although values over 80 may result in problems with the performance of your Director animation and/or scripting event detection.

Lingo example:

member(1).cpuboost = 50

 

 

Toolbar - Indicates whether a toolbar is attached to the video window. Possible values are 0 (FALSE) or 1 (TRUE).

Lingo example:

member(1).toolbar = true

 

 

Loop - Indicates whether the linked Media file will loop automatically. Possible values are 0 (FALSE) or 1 (TRUE).

Lingo example:

member(1).loop = false

 

 

PlaySegment - Indicates whether only a segment of the Media file is to be played. Possible values are 0 (FALSE) and 1 (TRUE).

Lingo example:

member(1).playsegment = true

 

 

Starttime - Specifies the start time of the Media file to be played, in milliseconds. Only active if "the playsegment of the member" is TRUE.

Lingo example:

member(1).starttime = 10700

 

 

EndTime - Specifies the end time of the Media file to be played, in milliseconds. Only active if "the playsegment of the member" is TRUE.

Lingo example:

member(1).endtime = 45000

 

 

PausedAtStart - Indicates whether the Media file should be opened in "paused" state. Possible values are 0 (FALSE) and 1 (TRUE).

Lingo example:

member(1).pausedatstart= 0

 

 

DTS - Indicates whether the Media file will be played in direct-to-stage mode. Disabling DTS allows compositing of the sprite with other elements of the stage, including the possibility to distort the sprite using quads and skew, and enables Director inks to be used. The drawback is a severe performance penalty on older systems. The default value is for sprites to play with DTS enabled. Possible values are 0 (FALSE) and 1 (TRUE). Non dts playback is also not available on older Windows systems. Consult the canImageOffScreen() member function for more information on this topic.

Example:

member(1).dts= 0

 

 

CuePointTimes - Contains a list of the cue point times associated with this member.

Lingo example:

put member(1).cuepointtimes

-- [4500,12300,34650,67321]

 

 

CuePointNames - Contains a list of the cue point names associated with this member.

Lingo example:

put member(1).cuepointnames

-- ["Cue 1","NewCuePoint","Start Point","Second part"]