# How to Create a listener for the current frame

**URL:** <https://forum.kirupa.com/t/how-to-create-a-listener-for-the-current-frame/159135>\
**Category:** Uncategorized\
**Created:** [August 15, 2005, 6:10am UTC](https://forum.kirupa.com/t/how-to-create-a-listener-for-the-current-frame/159135 "2005-08-15T06:10:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dribblit](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@dribblit](https://forum.kirupa.com/u/dribblit)\
**Post date:** [August 15, 2005, 6:10am UTC](https://forum.kirupa.com/t/how-to-create-a-listener-for-the-current-frame/159135/1 "2005-08-15T06:10:06Z")

</div>

i want to keep track of what frame the current flash movie is on. I’ve come across “\_currentFrame” so i guess that’s a step in the right direction. What i need though is a listener which will always give me the current frame.

What i am doing is having director MX 2004 call a frame via a label in flash and then i want to load on image based on what frame number it calls. (workin out interactivity between flash and director is too much stress for a noob 😊 )

so i reason something like…

[size=1]if ( \_currentframe == 4 )[/size]  
[size=1]{[/size]  
[size=1] // display picture in pictArray[3] from xml[/size]  
[size=1]}[/size]

thanx.

Flash MX 2004
