I currently have a number of buttons, which have image icons and when clicked,
will display th
associated image in a large viewing fram

I would like to be able to automate loading the button icon, and the
associated image to display, s
as to allow for either randomized images being presented on each visit, or
easy updates to refres
the image set

If I do the for loop functions on the individual buttons, I get my expected
results, ie, the button
load the images, and react as required. However, by attempting to create an
array of butto
objects, I don't seem to get a functional actionscript

What I had in mind, and does not seem to work, is

imageFileNames = (assume an array of file names exists and has been loaded by
loadVars or similar.)

buttonArray = new Array()

buttonArray[0] = button_1_btn; // put button object 1 into array elemen
..
buttonArray[MAX] = button_MAX_btn; // up to the maximum buttons

for( i = 0; i < MAX; i++

buttonArray[0].buttonImageName = imageFileNames[i]
buttonArray[0].loadImage()



// The button has been created which has a dynamic text box which holds the
file name
// The button has a function which does the loadMovie to get the image from a
'thumbnail
// directory, and then when pressed gets the full res image from a 'image'
path. (I perhap
// could have used the same file and scaled for the button, but this seemed
easier to loa
// and more quickly