0 Replies Latest reply on Oct 15, 2006 8:32 AM by Mr Binitie

    adding a Sprite crashes my application

    Mr Binitie Level 1
      I have this as a method withing an AS3 class. Whenever I call the method nothing appears on Stage. Is there any reason why this is happening?

      function drawSprite(w:Number, h:Number):Sprite {
      var s:Sprite = new Sprite();
      s.graphics.beginFill(0x000000, 0);
      s.graphics.drawRect(0, 0, w, h);
      return s;