(All of this is being done in FlashBuilder 4.6)

Ok, I'm stumbling along on my learning curve here, and have come to a point where I need to understand better how classes and packages are structured.

I started off writing a little AS code to draw a rectangle in each corner of the stage:

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

public class BoundaryRectangles extends Sprite
{
public function BoundaryRectangles()
{
var rectangles:Array = new Array();

for (var i:int = 0; i < 4; i++) {
var xPos:int = 20;
var yPos:int = 20;

rectangles[i] = new Shape();
rectangles[i].graphics.beginFill(0xFF0000);

switch(i){
case 0:
xPos=0;
yPos=0;
break;
case 1:
xPos=stage.stageWidth;
yPos=0;
break;
case 2:
xPos=5
yPos=stage.stageHeight-5;
break;
case 3:
xPos = stage.stageWidth;
yPos = stage.stageHeight-5;
break;
default:
xPos = 50;
yPos = 50;
}

rectangles[i].graphics.drawRect(xPos, yPos, 5, 5);
rectangles[i].graphics.endFill();
addChild(rectangles[i]);
}

}
}
}

So, that seems to be working fine. I can run it and I get my four little rectangles in the corners of the stage, so its a start.

Then I had the idea that I want to invoke this class from another. Toward that end, I created a little stub of a "caller" class like this:

package
{
import BoundaryRectangles;

public class Example2
{
var my_test:BoundaryRectangles = new BoundaryRectangles();

}
}

My assumption was that the constructor for BoundaryRectangles would get called there, and I would see the visual result.

However, when I run that, I get nothing. What I do get is a compile-time warning : "1084: var 'my_test' will be scoped to the default namespace: Example2: internal. It will not be visible outside of this package."

Which I do not understand.

I can't imagine I am too far off the mark here.

What am I doing wrong?