Setting focus on an input field when it enters the frame

I can set the focus to a input field via a button using:

on (release) {

but how can envoke this without a button press? My animation plays and the text fields appear in the final frame and this is where I want it to setFocus. I tried [COLOR=blue]Selection.setFocus(“Name”);[/COLOR] on the main timeline but that dont seem to work.


Yes it does seem to work, I relized that Flash MX 2004 must be to blame, it works fine in MX but not in 2004. Any ideas on how to get it to work in 2004?