3 Replies Latest reply on Jul 19, 2007 12:12 PM by SymTsb

    packages cannot be nested

    OheneCoker
      I have been trying to run this code but I always get a "packages cannot be nested" error. What can I do to make it work? please help me. Here is the code:

      package firstPackage{
      public class firstClass {
      public var textVariable:String = " blah";
      public var numericVariable:Number = 34;
      public var dateVariable:Date;
      }

      public function myMethod(numVal:Number=3, stringVal:String= "test"):void {
      trace("testing 1 2 3");
      }
      public function firstClass() {
      textVariable = "Testing this";
      dateVariable = new Date(2007,7 ,13);
      }
      }