How to trace(this.my_clip.currentFrame) in realtime?

Hi,

This will hopefully be very easy to answer.

Assuming that I simply have a .fla that contains one movieclip which runs for 500 frames (instance name “my_clip”), how can I check which frame “my_clip” is up to (it’s going to be used for a slider)?

Frame 1 Actions:

trace (this.my_clip.currentFrame);
stop();

This obviously just returns 1, but ideally I’d like it to return

1
2
3
4
5

498
499
500

etc. etc.

I guess I need some sort of eventHandler or the like in there, please help.

Thanks!
Pete