Why doesn't it work...?

When I put this code in the actionscript of a button:

on (release) {
mc.gotoAndPlay(92);
if (mc._currentframe=179)
mc2.gotoAndPlay(“Scene 2”, 93);
}

he should play and if he is at frame 179 he should go to scene 2 frame 93. But it doesn’t work. Does somebody know what I did wrong…???

Heyya,

try:
if (mc._currentframe==179) …

instead of;
if (mc._currentframe=179) …

Cycom :slight_smile: