Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
jeclark3 #1
array of objects
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
jeclark3 Guest
-
Array out of Objects
Back in the old days of Flash, I was able to walk through all of the objects on the stage, and filter them by the type of object. I could then... -
How to search into an array of objects?
Hi, Is there a way to find an item into a array of object without parse each object? Ex: var : myArray : Array = new Array( {label : "cup",... -
Array of objects copy
I have an array of objects, lets call it 'myArrayofObjects' I need to copy the information from this array onto another array because it seems that... -
Custom objects in an array
I have tried to store instances of a custom class in an array. When I retrieve the object actionScript seems to have forgotten what type of object... -
What is this objects name in the array?!
I have this code sniplet.. function dragalong() { this.startDrag(); } function dropper() { this.stopDrag(); }



Reply With Quote

