Read _totalframes from loadMovie

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


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?