Auto input text to field

how would i go about getting a app to automaticly have a desired text in a text field as soon as i open the prog? sorry i would have remeberd how to do this but i’ve been learning C latly so my AS is shot to hell :rolleyes:

as in…

set contents of text field “textfieldName” of window “windowName” to “thedesiredtext”

is that what you’re looking for?

How would you do the same for a check box?

Here’s a little code for both actions…

on awake from nib theObject
set contents of text field “textfieldname” of window “windowName” to “thedesiredtext”
set state of button “checkbox” of window “windowName” to selected
end awake from nib