Qualcuno sa dirmi xkè si blocca su arraycollection e mi stampa solo il rettangolo rosso?


package {
import flash.display.Shape;
import flash.display.Sprite;

import mx.collections.ArrayCollection;;


public class TestLib extends Sprite
{
public function TestLib()
{
var rect:Shape = new Shape () ;
rect.graphics.beginFill( 0xFF0000 ) ;
rect.graphics.drawRect( 0 ,0 ,100 , 100 ) ;
addChild( rect ) ;

var arr:ArrayCollection = new ArrayCollection() ;

var rects:Shape = new Shape () ;
rects.graphics.beginFill( 0xFFFF00 ) ;
rects.graphics.drawRect( 101 ,0 ,100 , 100 ) ;
addChild( rects ) ;
}
}