Jump to content
Search Community

Video Loader and countdown video duration please help

Asteroids test
Moderator Tag

Recommended Posts

You could just attach a "playProgress" event listener and look at the videoTime, like:

yourVideoLoader.addEventListener(VideoLoader.PLAY_PROGRESS, updateCountdown);
function updateCountdown(event:LoaderEvent):void {
    var secondsLeft:Number = yourVideoLoader.duration - yourVideoLoader.videoTime;
    //then update your TextField accordingly...
}
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...