Cheryl Lander
asked on
movie clip else statement
I have 2 movie clip scripts below which on rollover another movie clip is affected.
In this case "buttonsupporters".
how do I combine these two scripts into the one rollover function?
on (rollOver) {
if (_root.buttonsupporters._c urrentfram e ==1) {
_root.buttonsupporters.got oAndPlay(2 );
} else {
_root.buttonsupporters.got oAndStop;
}
}
on (rollOver) {
if (_root.buttonwork._current frame ==1) {
_root.buttonwork.gotoAndPl ay(2);
} else {
_root.buttonwork.gotoAndSt op;
}
}
In this case "buttonsupporters".
how do I combine these two scripts into the one rollover function?
on (rollOver) {
if (_root.buttonsupporters._c
_root.buttonsupporters.got
} else {
_root.buttonsupporters.got
}
}
on (rollOver) {
if (_root.buttonwork._current
_root.buttonwork.gotoAndPl
} else {
_root.buttonwork.gotoAndSt
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
LOL good to hear :)
ASKER
it works perfectly.
Thanks.