Also, if you do that in a SWF that doesn't actually *use* the TextInput symbol, the class won't be compiled in. Try adding a reference to TextInput - not just an import, you actually have to have a reference. "import mx.controls.TextInput; TextInput;" should do it.
-Josh 2009/1/16 Howard Fore <howard.f...@hofo.com> > Is this in a SWF that's loaded into another SWF? If so see > http://richardleggett.co.uk/blog/index.php/2008/09/08/getdefinitionbyname_vs_getdefinition > > On Thu, Jan 15, 2009 at 10:28 AM, enriirne <enrii...@yahoo.it> wrote: > >> trace(getDefinitionByName('mx.controls::TextInput')); >> >> ReferenceError: Error #1065: Variable TextInput is not defined. >> >> Enri >> > > > -- > Howard Fore, howard.f...@hofo.com > "The universe tends toward maximum irony. Don't push it." - Jeff Atwood > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." Like the cut of my jib? Check out my Flex blog! :: Josh 'G-Funk' McDonald :: 0437 221 380 :: j...@gfunk007.com :: http://flex.joshmcdonald.info/ :: http://twitter.com/sophistifunk