mecha
August 23rd, 2003, 09:10 AM
Hey all,
I have built a little script for gradual alpha fading in and fading out on RollOver and RollOut.
on (rollOver) {
_root.onEnterFrame = function() {
_root.mvWhathandset._alpha += (100-this.mvWhathandset._alpha)/20;
};
}
on (rollOut) {
_root.onEnterFrame = function() {
_root.mvWhathandset._alpha += (0-this.mvWhathandset._alpha)/10;
};
}
If you rollover and rollout a single instance it works perfectly. When I place two instances side by side (alterning the instance name for each script obviously) and move the mouse over each of them the script falls to pieces, with one instance stopping the other and generally screwing things up!
Can someone help with this as Ihave tried to solve this problem for hours. I have even experimented with HitTest, but couldnt figure out how to HitTest more than one object.....aaarrrgh!
Help please...
thanks in advance,
mecha
I have built a little script for gradual alpha fading in and fading out on RollOver and RollOut.
on (rollOver) {
_root.onEnterFrame = function() {
_root.mvWhathandset._alpha += (100-this.mvWhathandset._alpha)/20;
};
}
on (rollOut) {
_root.onEnterFrame = function() {
_root.mvWhathandset._alpha += (0-this.mvWhathandset._alpha)/10;
};
}
If you rollover and rollout a single instance it works perfectly. When I place two instances side by side (alterning the instance name for each script obviously) and move the mouse over each of them the script falls to pieces, with one instance stopping the other and generally screwing things up!
Can someone help with this as Ihave tried to solve this problem for hours. I have even experimented with HitTest, but couldnt figure out how to HitTest more than one object.....aaarrrgh!
Help please...
thanks in advance,
mecha