This is probably a stupid question with a simple solution but I have been searching with no luck.
I created a shape and added it to the display list calling it arrowBtnL. But how do I take the same shape and clone it to another place on the stage calling it arrowBntR? I did a makeshift and just made the exact same shape again but it seems to unnecessarily take up lots of code lines and is uneconomical. Am I wrong here?
Does you know of a correct way of doing this?
arrowBtnL = new Sprite();
arrowBtnL.graphics.lineStyle(15, 0xff222222);
arrowBtnL.graphics.drawCircle(32, 33, 55);
arrowBtnL.graphics.lineStyle(0, 0xffffff, 0);
arrowBtnL.graphics.beginFill(0xff222222);
arrowBtnL.graphics.moveTo(triangleHeight/2, 0);
arrowBtnL.graphics.lineTo(triangleHeight, triangleHeight);
arrowBtnL.graphics.lineTo(0, triangleHeight);
arrowBtnL.graphics.lineTo(triangleHeight/2, 0);
mainSprite.addChild(arrowBtnL);
arrowBtnL.rotation = -25;
arrowBtnL.x = 320;
arrowBtnL.y = 425;
arrowBtnL.alpha = .4;
thanks for any help!