I recently had this problem and I noticed that I was importing the class I was creating.

In my main class:
************************************
import com.T8.forms.formatting.*;


In my NumberFormatter class:
************************************
import com.T8.forms.formatting.NumberFormatter;

class com.T8.forms.formatting.NumberFormatter {
}

It wasn't obvious in the main class that this was going on.

I also had empty MyClass.as files in the package directory. IE they were blank. not sure if that had anything to with it or not.

HTH someone,

Best Regards,
Judah Frangipane

Tom Lee wrote:

Hi guys,



I just compiled one of my major projects with Flash 8 for the first time.
Wouldn't you know it: I now get a brand new error I've never seen before:



"The class <package1.classname> cannot be imported because its leaf name is
already being resolved to imported class <package2.classname> "



Oddly, I can't find this exact error in the help docs.  However, it seems to
correspond roughly to Error 1190:



"The class <A.B> cannot be imported because its leaf name is already
resolved to a previously imported class <C.B>"



For example, compiling import jv.util generates Error 1190 if the statement
import mx.util also appears in the AS file.



So, my question: what's wrong with importing package1.classname in the same
frame as package2.classname?  Why is this now taboo?





Thanks,



-tom

------------------------------------------------------------------------

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to