How to Create a listener for the current frame

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 :blush: )

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