fontFamily for TextField

I am using AS3 to dynamically create TextFields.

It is working fine, except I can’t figure out how to apply a font. It is always the same.

i tried:

txtField.fontFamily = ‘Arial’;

but got the error "Property fontFamily cannot be applied to flash.text.TextField.

So how do i do this?
thanks