You are probably omitting the "import" statement -- you are probably
assuming that since you explicitly qualified the class name, the
"import" is not necessary.  In Java, if you explicitly qualify a class
name in your code, then you don't need to have an "import" statement
at the top of the file.  But Flex is different: You still need the
"import".  When you do ctrl+space, the import gets inserted for you,
so that's probably why that case works.

- Mike Morearty, Flex Builder team


--- In [email protected], yigit <[EMAIL PROTECTED]> wrote:
>
> hi all;
> in my cairngrom application, i have many classes and some of them has 
> the same name but of course diffrent packages.
> 
> i autogenerate code, so to not to let ambiguity, i alway use classes 
> with their packages.
> e.g.
> instead of writing var foo:Foo;
> i write   var foo:tr.com.sth.vo.Foo;
> 
> the compiler give and interesting error, saying that con not recognize 
> tr (my initial package name);
> but when i go to the end of
> tr.com.sth.vo.Foo and press ctrl+space
> after waiting seconds, and rebuilt; the error goes! (without any change 
> in the source).
> i'm using beta2 on eclipse.
> 
> i think the compiler gets confused, but what can be the reason for
this, 
> are there tips to overcome??
> 
> thanks...
>


Reply via email to