1 Reply Latest reply on Dec 8, 2012 2:48 PM by kglad

    Error - 1120

    dimincheva88

      hello i am making collecting  falling objects game in Flash CS5

      I am creating my objects on screen using classes

      i have this code :

       

      import flash.events.Event;

       

       

      var bowl:Bowl ;

      var createDropsID:uint;

      var gameSpeed:uint;

       

       

       

       

       

       

      // mouse - Bowl

      function uintGame():void

      {

      bowl=new Bowl();

      bowl.x=200;

      bowl.y=350;

      addChild(bowl);

      stage.addEventListener(MouseEvent.MOUSE_MOVE, moveBowl);

      Mouse.hide();

      gameSpeed=500;

      createDropsID=setInterval(createDrops, gameSpeed);

      }

       

       

       

       

      function moveBowl(e:MouseEvent):void

      {

      bowl.x=this.mouseX; // following the mouse

      e.updateAfterEvent(); // smooth movement

      trace("done")

      }

       

       

      //drops

       

       

      function createDrops():void

      {

                var drop:ClassDrop = new ClassDrop();

                drop.y = -500;

                drop.x = Math.random()*stage.stageWidth;

                drop.addEventListener(event.ENTER_FRAME,dropDrops);

                trace (drop);

       

      }

       

       

      function dropDrops(e:Event):void

      {

                var mc:ClassDrop = ClassDrop(e.target);

                mc.y+=10;

      }

      //end mouse - Bowl

       

       

      uintGame();

       

       

      and when i run my code i receive error

      Scene 1, Layer 'Actions', Frame 10, Line 371120: Access of undefined property event.

        any ideas ? thank you