next up previous contents
Next: trackPosition Up: Properties Previous: track   Contents


trackLength

Description

Integer. Gets the length of the specified track. Read-only


Syntax

mci.trackLength


Example

m = new MCI;
m.deviceType = "cdaudio";
m.command = "open";
m.timeFormat = 2;
for (i = 1; i <= m.tracks; i++)
{
    m.track = i;
    var l = m.trackLength;
    trace("Track " + i + " " +
        MCI.msfMinute(l) +
        ":" + MCI.msfSecond(l));
}




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.