Hi!

I have a Sprite which has a Sprite child which I am drawing some things on.
I want to have a gradient at one place so I have the members...

[Embed(source="8x31VertGradient.png")]
private var VerticalGradient8x31 : Class;
private var m_verticalGradient8x31 : BitmapAsset;

...and do this in the constructor:

m_verticalGradient8x31 = new VerticalGradient8x31();

When I want to use the bitmap I do this:

g.beginBitmapFill (m_verticalGradient8x31.bitmapData, null, true, false);
g.drawRect (1, 2 + m_allowedYSize, m_screenWidth - 2, 31);
g.endFill ();

It does however only work when I drawRect(0,0,somewidth, 31). When I 
offset "down", it's like the bitmap stays and it pads with white instead.

Could anyone please hit me in the head with the clue-stick here?

Best regards,
Marcus

Reply via email to