2 Replies Latest reply on Jul 30, 2007 10:40 AM by ntsiii

    Weird ERROR!!!

    babo_ya Level 3
      "A file found in a source-path must have an externally visible definition. If a definition in the file is meant to be externally visible, please put the definition in a package."

      I started seeing this error and I have no idea what this means and how to resolve this. I've been trying to fix this bug for about 3 hours now.

      Please help. I can't debug. No line number nothing..

      Thanks,
        • 1. Re: Weird ERROR!!!
          ntsiii Level 3
          Please make your Topic Title and Summary descriptive of the issue. I usually don't read posts with subjects like this one.

          The “package” path must match the physical location of the component. If you have this:

          FlexProjFolder
          ..MainApp.mxml
          ..MyComponentsFolder
          ....Displayshelf.as
          ....Tiltingpane.as

          The the two component as files must have this package path:
          package MyComponentsFolder {
          class DisplayShelf …

          In MainApp.mxml, do:
          <mx:Application …xmlns:comp=”MyComponentsFolder.*”

          <mxScript….
          import MyComponentsFolder

          <comp:DisplayShelf…

          Tracy
          • 2. Re: Weird ERROR!!!
            ntsiii Level 3
            Oops, I didn't read the error message clearly enough. Ignore the above answer.

            This one means that you have an error in a Class file. Can you tell which file? if so, post it.

            Tracy