开发者

FLEX Video player - play count

开发者 https://www.devze.com 2023-01-13 09:03 出处:网络
I have a video player in flex which constantly plays a movie. Is there a way 开发者_运维知识库to see how many times it has played?

I have a video player in flex which constantly plays a movie. Is there a way 开发者_运维知识库to see how many times it has played?

So each time the movie is played, text filled populates with +1.

Thanks, Yan


You can set up a variable and an event handler for the complete event of the VideoPlayer and have the variable increment each time the complete event fires. ...

var playCount:int = 0;

protected function onPlayerComplete(event:TimeEvent):void
{
    playCount++;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消