osc
June 23rd, 2003, 04:09 PM
Hello,
I have about 60 buttons to load jpeg images. Instead of putting the long script to load the images on each individual button, I want to put it on a frame and then only set the variables in the buttons to tell the script which image to load from a XML file - this will allow me to make any changes to the loading transitions easily.
Initially I wanted to use:
buttonName.onRelease = function() {
//script here
}
However, it seems you can only habe one name to one button. In other words - I can not call all my buttons "thumbnail"
This basicaly means I can't cut down on the script in the way I want - unless there is a way that I am unaware of whereby I can set variables in a button and for a script on a frame (orMC) to act on the variable change on button release.
Any ideas??
Osc
I have about 60 buttons to load jpeg images. Instead of putting the long script to load the images on each individual button, I want to put it on a frame and then only set the variables in the buttons to tell the script which image to load from a XML file - this will allow me to make any changes to the loading transitions easily.
Initially I wanted to use:
buttonName.onRelease = function() {
//script here
}
However, it seems you can only habe one name to one button. In other words - I can not call all my buttons "thumbnail"
This basicaly means I can't cut down on the script in the way I want - unless there is a way that I am unaware of whereby I can set variables in a button and for a script on a frame (orMC) to act on the variable change on button release.
Any ideas??
Osc