-
logistical problem
// edit, got it sorted....... put the rollover function after the loop
Howdy,
I'm trying to make a dynamically generated menu, somewhat like this......
//loop
for (i=0; i<number_of_buttons; i++) {
//create button
createEmptyMovieClip("button"+i,i);
//draw button
button lineTo(x,y)
etc, etc, etc,
Problem is when I try to add a mouseover effect.......
//mouseover
button.onRollOver = function(){
I can't get the button to change fill colour, I guess because it already been generated, or otherwise because the onRollover doesn't like being in a loop.
I'm sure there's some logical way of dealing with this that is escaping my somewhat fried brain at the moment, full code posted on request.