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.