hello there, I am trying to create a piano roll of 25 keys using an array which uses just 1 movieclip for the white keys which is duplicated across the screen 25 times and renamed in the array to a1, b1, c1, d1, e1, f1. I have never properly tried to do this with a single item being used multiple times before.
Could anyone please help? Each key is approx 45 pixels in width.
Heres all what i have so far
ActionScript Code:
stop();
var keys:Array = [keys_mc];
var xPosition:Number = 50;
var yPosition:Number = 15;
for(i=0;i<button.length;i++)
{
}
keys_mc.addEventListener(MouseEvent.CLICK, clickHandler);
function clickHandler(event:MouseEvent):void
{
gotoAndStop("keyDown");
}
Any help is appreciated.
Thanks