1 Reply Latest reply on May 23, 2007 2:38 AM by gers32

    Robert Crooks tutorial problem

    gers32
      The compiler complains about the DataController class not being in a package:
      "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."

      Then, if I put it in a package, the compiler complains about not being able to access the class from data.mxml, so I put <tutorial.DataController id="dataController"/>, and then, the compiler says that the "package" keyword is unexpected in DataController.as!

      Any help will be greatly appreciated. Thanks.
        • 1. Re: Robert Crooks tutorial problem
          gers32 Level 1
          I was able to get rid of the unexpected package keyword error, but the compiler still complains about not being able to find DataController, whether I append "tutorial." in front of its name or not...

          What is the right way to refer to an ActionScript class that's in a package, from an MXML file not in that package?