1 Reply Latest reply on May 18, 2007 3:23 PM by brainbrian

    New User with Error Message.

    brainbrian Level 1
      I just installed a trial of flex to begin learning flex with AS3. I have the AS3 cookbook and I just started going through the chapters. I on the Mac OSX 10.4 OS. I've installed Flex builder 2.0.155577 with flex builder 2 standalone the eclipse platorm and eclipse RCP. I'm already getting an error when publishing the most basic application.

      package {
      import flash.display.Sprite;

      // Metadata Properties
      [SWF(width="800", height="600", backgroundColor="#000000", frameRate="31")]

      public class ExampleApplication extends Sprite
      {
      public function ExampleApplication()
      {
      graphics.lineStyle(1,0,1);
      for(var i:int=0,i<100;i++){
      graphics.lineTo(Math.random() * 400, Math.random() * 400);
      }
      }
      }
      }

      Am I missing anything. The errors are listed when I get to creative the lines at the following code...

      graphics.lineStyle(1,0,1);
      for(var i:int=0,i<100;i++){
      graphics.lineTo(Math.random() * 400, Math.random() * 400);
      }

      I'm new to this. Any help would be greatly appreciated.