The Little Guy Posted February 16, 2008 Share Posted February 16, 2008 I need to convert seconds to percentage. If I have a video that is 219 seconds long, and the current position of the video is 45 seconds, how would I convert that to a percentage to show what percent of the movie has been played (0 - 100). This is for action script b.t.w. Quote Link to comment Share on other sites More sharing options...
Daniel0 Posted February 16, 2008 Share Posted February 16, 2008 45/219 Quote Link to comment Share on other sites More sharing options...
effigy Posted February 16, 2008 Share Posted February 16, 2008 int ( ( 45 / 219 ) * 100 ) Quote Link to comment Share on other sites More sharing options...
The Little Guy Posted February 17, 2008 Author Share Posted February 17, 2008 Cool Thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.