How do i find when frame has been reached dynamically?

[LEFT][COLOR=#333333][FONT=arial]hello!

i have created a movieClip in the authoring enviornment. i dynamically get it to play and then it pauses at frame 20. how do i dynamically tell when frame 20 has been reached and get the next code executed?

let me know if you need more data!

o

[/FONT][/COLOR][/LEFT]