# Need help with getting totalframes in my movieclip

**URL:** <https://forum.kirupa.com/t/need-help-with-getting-totalframes-in-my-movieclip/311904>\
**Category:** Uncategorized\
**Created:** [July 20, 2010, 4:29am UTC](https://forum.kirupa.com/t/need-help-with-getting-totalframes-in-my-movieclip/311904 "2010-07-20T04:29:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![threat45](https://avatars.discourse-cdn.com/v4/letter/t/34f0e0/32.png) [@threat45](https://forum.kirupa.com/u/threat45)\
**Post date:** [July 20, 2010, 4:29am UTC](https://forum.kirupa.com/t/need-help-with-getting-totalframes-in-my-movieclip/311904/1 "2010-07-20T04:29:54Z")

</div>

Greetings community,

I’m trying to convert the total amount of frames of my movieclip into minutes:seconds:frames, but my return value is not correct.

the total frames of my mc are 3348

my function is:

```php
totaltime.text = (Math.floor(mc._totalframes / 60)) + " : " + (Math.floor(mc._totalframes % 60)) + " : " + (Math.floor(mc._totalframes * 24)) % 24;

```

it returns 55:48:00 but my mc is 2 minutes 19 seconds 12 frames, trying to work out the math if osmeone can point me in the right direction, much appreciated!

A
