1 Reply Latest reply on Dec 10, 2009 11:22 AM by snafu7x7

    Ambiguous reference to Main


      I built a custom control based off Canvas, when I try to drop it into my Main.mxml code I get this cryptic error:


      Ambiguous reference to Main. [Generated code (use -keep to save): Path: Main-generated.as, Line: 1110, Column: 10]                               


      I’ve googled the error and everything on it seems to suggest that it is caused when you have two functions with the same name in the same namespace and Flex doesn’t know which one you mean, but I’ve renamed all my variables/functions in the custom class to really cryptic names to eliminate this possibility. I've also seen this error reported for classes that have properties with different access modifiers on their getter vs. setter but all my gets/sets are public. This is really driving me crazy, any help appreciated