PaulHolmes
MIS
Hello,
I was wondering whether there was a way to load a button depending on what image was loaded.
I have a function that randomly selects an image. I would like to load a button dependent on what image was showing.
pic_arr = [
"Images/01006a",
"Images/01224a",
"Images/01446a"
];
buton_arr = [
"button1",
"button2",
"button3"
];
holder_mc.onEnterFrame = function() {
ranNum = Math.floor(Math.random()*pic_arr.length);
//CHECK TO SEE IF LAST IMAGE LOADED THE SAME
while (ranNumold == ranNum)
{
ranNum = Math.floor(Math.random()*pic_arr.length);
}
holder_mc.loadMovie(pic_arr[ranNum]+".jpg");
***I WOULD LIKE TO LOAD BUTTON***
ranNumold = ranNum;
};
Any suggestions would be most appreciated.
Thank you.
I was wondering whether there was a way to load a button depending on what image was loaded.
I have a function that randomly selects an image. I would like to load a button dependent on what image was showing.
pic_arr = [
"Images/01006a",
"Images/01224a",
"Images/01446a"
];
buton_arr = [
"button1",
"button2",
"button3"
];
holder_mc.onEnterFrame = function() {
ranNum = Math.floor(Math.random()*pic_arr.length);
//CHECK TO SEE IF LAST IMAGE LOADED THE SAME
while (ranNumold == ranNum)
{
ranNum = Math.floor(Math.random()*pic_arr.length);
}
holder_mc.loadMovie(pic_arr[ranNum]+".jpg");
***I WOULD LIKE TO LOAD BUTTON***
ranNumold = ranNum;
};
Any suggestions would be most appreciated.
Thank you.