OK I can't figure out why my script does this?
I am creating some buttons with an array like so....(please keep in mind that I have a lot more "grid buttons" but to somewhat simplify this I have condensed it down to just a few.)
var gridButton = new Array();
// A
gridButton[0] = "a_01_grid";
// B
gridButton[1] = "b_01_grid";
// C
gridButton[2] = "C_01_grid";
// Callout Button Specs
var w = 44.65; // Constant - Width of Buttons
var h = 10.21; // Constant - Height of Buttons
var x = 120; // Starting X Coordinate ( Set this to the desired starting postion - width )
var y = 750; // Starting Y Coordinate
var cols = 5; // Constant - Number of Columns desired
var k = 0; // Counter for the Number of Buttons
var gap = 50; // Space in between rows
for (var i=0;i<(gridButton.length/cols);i++) // This loop executes once for each row of buttons
{
for (var j=0; j