I’ve written a Timecode class that will take the ns.time property and return a timecode string in the “00:00″ format. See below for how it is used.
[as]var nc:NetConnection = new NetConnection();
nc.connect(null);
var ns:NetStream = new NetStream(nc);
thevideo.attachVideo(ns);
ns.play(“yourFLV.flv”);
var tc:Timecode = new Timecode(ns);
this.onEnterFrame = function() {
trace(tc.getTimecode());
}[/as]
There is also a “setDelimiter()” method available if you want change the colon to some other character.
tc.setDelimiter(“|”);
No comments:
Post a Comment