2 Replies Latest reply on Oct 6, 2007 4:18 AM by

    Can you draw a shape and add it to an application?


      I am totally new to Flex and Flash, action script and all (started Wednesday). I am not sure what I'm doing wrong here, if anyone could help me Id really appreciate it.

      var max:Shape=new Shape();
      max.graphics.lineStyle(1, 0x000000);
      max.graphics.drawRect(0, 0, 100, 10);

      Now stats is a canvas which is a child of my application object. The application object is the root of it all.

      I also tried using the "Rectangle" class but that did not work either.

      Thanks to anyone who can point me in the right direction :)