Link to home
Start Free TrialLog in
Avatar of Cheryl Lander
Cheryl LanderFlag for United States of America

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._currentframe ==1) {
   _root.buttonsupporters.gotoAndPlay(2);
} else {
   _root.buttonsupporters.gotoAndStop;
}
}

on (rollOver) {
   if (_root.buttonwork._currentframe ==1) {
   _root.buttonwork.gotoAndPlay(2);
} else {
   _root.buttonwork.gotoAndStop;
}
}

ASKER CERTIFIED SOLUTION
Avatar of Rob
Rob
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Cheryl Lander

ASKER

What happens?

it works perfectly.

Thanks.
LOL good to hear :)