Question
Need some help with roll over buttons
I've imported a map from Illustrator and I want regions of it
to light up when rolled over. I spread the sections of the map to
various layers, converted each one to a button and now I've added
this code to each one:
on (rollOver, rollOut) {
sangabriel.onRollOver = function() {
this._alpha = 75;
};
sangabriel.onRollOut = function() {
this._alpha = 100;
};
}
on (release) {
getURL("");
}
Since the stage is white, the map sections "light up" on rollover. The url's haven't been added yet.
Anyway, it works except for one thing. When the mouse enters a map section the first time I get no reaction. However on entering a section (11 in all) a second time, it behaves properly and "lights up." After that they all work perfectly. But why do I have to roll over these twice before they work each time I test the graphic?
Do I need to set some varables? Enable something?
on (rollOver, rollOut) {
sangabriel.onRollOver = function() {
this._alpha = 75;
};
sangabriel.onRollOut = function() {
this._alpha = 100;
};
}
on (release) {
getURL("");
}
Since the stage is white, the map sections "light up" on rollover. The url's haven't been added yet.
Anyway, it works except for one thing. When the mouse enters a map section the first time I get no reaction. However on entering a section (11 in all) a second time, it behaves properly and "lights up." After that they all work perfectly. But why do I have to roll over these twice before they work each time I test the graphic?
Do I need to set some varables? Enable something?