# GradientFill bug?

**URL:** <https://forum.kirupa.com/t/gradientfill-bug/327636>\
**Category:** flash\
**Created:** [March 15, 2012, 7:00pm UTC](https://forum.kirupa.com/t/gradientfill-bug/327636 "2012-03-15T19:00:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![holysocks](https://avatars.discourse-cdn.com/v4/letter/h/a4c791/32.png) [@holysocks](https://forum.kirupa.com/u/holysocks)\
**Post date:** [March 15, 2012, 7:00pm UTC](https://forum.kirupa.com/t/gradientfill-bug/327636/1 "2012-03-15T19:00:56Z")

</div>

```auto
var blob:Sprite=new Sprite();
addChild(blob);
var gradsize:int=20;

for(var i:int=0;i<100;i++){
    var matrix:Matrix = new Matrix(); 
    matrix.createGradientBox(gradsize,gradsize,0,(i % 10)*gradsize,int(i/10)*gradsize);
    blob.graphics.beginGradientFill(GradientType.RADIAL,[0,0],[1,0],[0,255],matrix);
    blob.graphics.drawRect(0,0,stage.stageWidth,stage.stageHeight);
}

```

Try the code. I am drawing 100 rectangles with gradient fills at different locations. However, it only shows the last 23 gradients on my computer. Anyone know why? and how to fix?
