# Why doesn't it work...?

**URL:** <https://forum.kirupa.com/t/why-doesnt-it-work/1143>\
**Category:** Uncategorized\
**Created:** [August 9, 2002, 10:50am UTC](https://forum.kirupa.com/t/why-doesnt-it-work/1143 "2002-08-09T10:50:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chewie](https://avatars.discourse-cdn.com/v4/letter/c/f07891/32.png) [@Chewie](https://forum.kirupa.com/u/Chewie)\
**Post date:** [August 9, 2002, 10:50am UTC](https://forum.kirupa.com/t/why-doesnt-it-work/1143/1 "2002-08-09T10:50:56Z")

</div>

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…???

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 9, 2002, 3:03pm UTC](https://forum.kirupa.com/t/why-doesnt-it-work/1143/2 "2002-08-09T15:03:27Z")

</div>

Heyya,

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

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

Cycom 🙂
