# Read \_totalframes from loadMovie

**URL:** <https://forum.kirupa.com/t/read--totalframes-from-loadmovie/238422>\
**Category:** Uncategorized\
**Created:** [September 11, 2007, 7:25am UTC](https://forum.kirupa.com/t/read--totalframes-from-loadmovie/238422 "2007-09-11T07:25:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![oehh\_flashy](https://avatars.discourse-cdn.com/v4/letter/o/bcef8e/32.png) [@oehh\_flashy](https://forum.kirupa.com/u/oehh_flashy)\
**Post date:** [September 11, 2007, 7:25am UTC](https://forum.kirupa.com/t/read--totalframes-from-loadmovie/238422/1 "2007-09-11T07:25:07Z")

</div>

Hello,

Ik have a player and a movie both .swf files.  
the movie is loaded in the player with loadMovie.

I want to read the \_totalframes from the movie and show this in the player with a timeline.

I have it working in the movie but there i have percent shown.  
Code from the movie

```auto

var nTotalFrames:Number = this._totalframes;
//frames.text = nTotalFrames;
onEnterFrame = function() { 
 var loader = Math.round((this._currentframe / this._totalframes)*100); 
 pecent_txt.text = loader+"%"; 
 }

```

how can i put this in the player?
