Current and number of total frames in Dynamic Text

At the moment I’m making a presentation for school in Flash MX 2004. I want some kind of progression bar in the presentation. This is how I have it in my mind:


2 is the current frame and 15 is the total number of frames. I know I have to do this with the use of ActionScript in combination with dynamic text labels. How can I read out the current frame number and the total number of frames?

The names of the dynamic text labels are:

“cFrame” and “tFrames”