Hi ther,
i have created array of rectangles using
var myUIComponent:UIComponent = new UIComponent();
//var roundRect:Sprite = new Sprite();
myUIComponent.graphics.beginFill(0xFF8800);
myUIComponent.graphics.drawRoundRect(X,
Y,
150,
75,
50,
50);
myUIComponent.graphics.endFill();
in mxml my code is like
for (i = 1; i <= 2; i++)
{
X = 10;
for(j=1;j<=5;j++)
{
var rectsprit:UIComponent = rect.drawRect(X,Y);
//this.rawChildren.addChild(rectsprit);
panel.addChild(rectsprit);
//this.addChild(rectsprit);
X = (160j) + 10;
}
Y = (85i) + 10;
}
Now i need to draw line between these shapes. i mean when i click to point and then drag and draw a line to other rectangle.
Pls help me out
Thanks in advance