I am trying to make a “previous” button as it follows; There are 5 movie clips in the scene and one button, everything placed in one frame. I gave those movie clips _alpha=0; on the stage. I wrote the following code on the button
on (press) {
if (_root.two_mc._alpha=100)
{
_root.one_mc._alpha=100;
_root.two_mc._alpha=0;
_root.three_mc._alpha=0;
_root.four_mc._alpha=0;
_root.five_mc._alpha=0;
}
if (_root.three_mc._alpha=100)
{
_root.one_mc._alpha=0;
_root.two_mc._alpha=100;
_root.three_mc._alpha=0;
_root.four_mc._alpha=0;
_root.five_mc._alpha=0;
}
if (_root.four_mc._alpha=100)
{
_root.one_mc._alpha=0;
_root.two_mc._alpha=0;
_root.three_mc._alpha=100;
_root.four_mc._alpha=0;
_root.five_mc._alpha=0;
}
if (_root.five_mc._alpha=100)
{
_root.one_mc._alpha=0;
_root.two_mc._alpha=0;
_root.three_mc._alpha=0;
_root.four_mc._alpha=100;
_root.five_mc._alpha=0;
}
}
but it doesn’t work! What do I have to do to make it right?