Hi
As a previous post I got resolved this morning, I have been asked to make amends to an old AS2 project and just don't know AS2 like I used to!
I am using a NetStream to play a video in a container called my_video. I have the following on a button:-
This works to the point that it gets the file name from _root.vid and plays it in my_video. It also puts the starting time and duration in vidDuration_txt.text.Code:on (release) { var my_video:Video;// my_video is a Video object on the Stage var my_nc:NetConnection = new NetConnection(); my_nc.connect(null); var my_ns:NetStream = new NetStream(my_nc); my_video.attachVideo(my_ns); my_ns.play(_root.vid); _root.my_video._alpha = 100; my_ns.onMetaData = function(evt:Object):Void { vidDuration_txt.text = this.time + "sec/" + evt.duration + "sec"; };
However, I need vidDuration to read xsec/ysec where Y is the total duration (which works) and X is the playhead position... which currently just stays at 0 rather than increasing as the video plays. I need the X figure to increase as the video plays.
Does anyone know what I can do to accomplish this?
Thanks in advance.




Reply With Quote
