View Full Version : [AS3] 1172: Definition fl.controls:TextInput could not be found.
springframework
05-06-2007, 07:24 AM
so i was working on this project making it in classes and i tried to do this:
import fl.controls.TextInput;
and i kept getting the error
1172: Definition fl.controls:TextInput could not be found.
once i placed a TextInput component on the stage through flash cs3 and then deleted it the project started to compile without errors.
rokket
05-07-2007, 07:04 AM
1172: Definition fl.controls:TextInput could not be found.
fl.controls.TextInput, you have a little typo it seems?
dot syntax should be used right?
dr_zeus
05-07-2007, 06:24 PM
Components in Flash CS3 must appear within the library, even if you want to use them programmatically.
i've been racking my brain trying to figure out why one of my custom classes was throwing the 1172 error when trying to import fl.video.FLVPlayback.... until i found this thread.
why is it that the component has to be in the library, even for external custom classes? how does it work for those using flex, where there's no library/ide enivornment?
once i placed a TextInput component on the stage through flash cs3 and then deleted it the project started to compile without errors.
great!
I do it,but I did not test the success of.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.