3 Replies Latest reply on Sep 21, 2007 1:21 PM by kglad

    graphics.drawRect changes sprite's width.

      In the code, below, I'm trying to color the entire area of a Sprite object. However, after the call to endFill(), the width of the sprite is changed from 300 to 2250. The trace output is:

      width is now 2250

      The line "_sprite.width = w" is a workaround to restore the width of the sprite. The parent container, BTW, is a sprite also, and it's the top level display object. (The app class extends Sprite, not Application.)

      The API docs don't seem to provide any clues. Does anyone have any idea why this is happening?