# How to trace(this.my\_clip.currentFrame) in realtime?

**URL:** <https://forum.kirupa.com/t/how-to-trace-this-my-clip-currentframe-in-realtime/223985>\
**Category:** flash\
**Created:** [April 27, 2007, 10:35am UTC](https://forum.kirupa.com/t/how-to-trace-this-my-clip-currentframe-in-realtime/223985 "2007-04-27T10:35:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pete66](https://avatars.discourse-cdn.com/v4/letter/p/8c91f0/32.png) [@pete66](https://forum.kirupa.com/u/pete66)\
**Post date:** [April 27, 2007, 10:35am UTC](https://forum.kirupa.com/t/how-to-trace-this-my-clip-currentframe-in-realtime/223985/1 "2007-04-27T10:35:59Z")

</div>

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
