2 Replies Latest reply on Apr 15, 2008 10:22 PM by dfduiud33

    defining a simple class

    dfduiud33
      Okay, I'm not sure what I'm doing wrong. Trying to define a simple class but I'm getting error messages. Code is included. Package is defined in a separate file in the same folder as the mxml code.

      Thanks,
      Otto
        • 1. defining a simple class
          VarioPegged Level 2
          quote:

          Package is defined in a separate file in the same folder as the mxml code.


          Do you mean separate directory (folder) in the same folder as MXML code? Right now I understand it to mean that you have the class file (samples.as) by itself in the same folder as the MXML file. If you simply have the file samples.as in the same folder as the MXML code then your package declaration in the class is wrong. It should be:

          package {
          ...
          ...
          }

          and the import statement in the MXML file should be:

          import Hollaa;

          And finally, the class file name should be changed to Hollaa.as

          TS
          • 2. Re: defining a simple class
            dfduiud33 Level 1
            thank you!