4 Replies Latest reply: Jul 24, 2008 10:15 AM by MikeSDCA RSS

    Classes must not be nested??

    sneakyimp Community Member
      I created a new Flash file (Actionscript 3) and typed this code on the first frame on the movie:
      class TestClass1 extends Object {
      public function identify() {
      trace('i am class one');
      }
      }
      var obj:Object;
      obj = new TestClass1();
      obj.identify();


      I get this error:
      1131: Classes must not be nested.

      What is going on?