array buttons x , y in canvas html5
I have 3 buttons (B1-B2-B3)
I want to change each place x,y so that it takes the place of the other
How do ?
var array = [897.9, 1242, 411.3];
for (var i = array.length; i >= 1; i--) {
var _random = Math.floor(Math.random() * array.length);
this.Button(this["B" + i]).x = array[_random];
this.array.splice(_random, 1);
this.trace(Button(this["B" + i]).name + " = " + array[_random]);
}

