Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the number of objects in a collection.
Syntax
JScript |
---|
|
Property values
Type: Integer
the number of objects in the collection.
Examples
This example uses the length property to get the number of objects in a collection.
<?IMPORT namespace="t" implementation="#default#time2">
<STYLE>
.time{ behavior: url(#default#time2);}
</STYLE>
<SCRIPT>
function getLength(){
alert('Number of objects: ' + m1.playList.length);
}
</SCRIPT>
<BODY>
<t:media id="m1" begin="0;" src="/test/someCollection.asx"/>
<BUTTON onclick="getLength();">Get number of objects</BUTTON>
</BODY>
</HTML>