开发者

FLEX Video player - play count

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜