Hi,
I have to draw 5 rectangle inside a class extending UIComponent. I have
done this :
// Draw first base rectangle
g.beginFill(baseRectColor1);
g.drawRect(0,baseY,bRW1,baseRectHeight);
g.endFill();
// Draw second base rectangle
g.beginFill(baseRectColor2);
g.drawRect(bRW1,baseY,bRW2,baseRectHeight);
g.endFill();
// Draw third base rectangle
g.beginFill(baseRectColor3);
g.drawRect(bRW2 + bRW1,baseY,bRW3,baseRectHeight);
g.endFill();
is this approach ok or should I create new sprite object for each
rectangle and add it to the class. ?
____________________________________________________________________________________
Do you Yahoo!?
Everyone is raving about the all-new Yahoo! Mail beta.
http://new.mail.yahoo.com