# Just correct the one line in this as please

**URL:** <https://forum.kirupa.com/t/just-correct-the-one-line-in-this-as-please/111634>\
**Category:** Uncategorized\
**Created:** [May 29, 2004, 4:32am UTC](https://forum.kirupa.com/t/just-correct-the-one-line-in-this-as-please/111634 "2004-05-29T04:32:44Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Weazol](https://avatars.discourse-cdn.com/v4/letter/w/f17d59/32.png) [@Weazol](https://forum.kirupa.com/u/Weazol)\
**Post date:** [May 29, 2004, 4:32am UTC](https://forum.kirupa.com/t/just-correct-the-one-line-in-this-as-please/111634/1 "2004-05-29T04:32:44Z")

</div>

```auto
 on (release) {
 if (_root.tv.currentFrame == 1) {
  _root.tv.gotoAndPlay(13);
 }
 _root.tv.nextFrame();
}

```

ok i know that .currentframe is wrong… how would i go about checking what the current frame is

---

<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:** [May 29, 2004, 4:35am UTC](https://forum.kirupa.com/t/just-correct-the-one-line-in-this-as-please/111634/2 "2004-05-29T04:35:02Z")

</div>

\_currentframe instead of currentFrame

Adam

---

<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:** [May 29, 2004, 5:34am UTC](https://forum.kirupa.com/t/just-correct-the-one-line-in-this-as-please/111634/3 "2004-05-29T05:34:09Z")

</div>

ok that works but the == didnt work… it made it skip channel 1… then when i just made it =  
it acts the same when hitting 11…

---

<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:** [May 29, 2004, 5:40am UTC](https://forum.kirupa.com/t/just-correct-the-one-line-in-this-as-please/111634/4 "2004-05-29T05:40:11Z")

</div>

on (release) {  
if (\_root.tv.\_currentframe == 1) {  
\_root.tv.gotoAndPlay(13);  
}  
}

that’s correct…if you’re having problems still it might be something else.

Adam

---

<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:** [May 29, 2004, 5:49am UTC](https://forum.kirupa.com/t/just-correct-the-one-line-in-this-as-please/111634/5 "2004-05-29T05:49:06Z")

</div>

If i’m understanding correctly you want it so that it goes to the next frame IF the \_currentframe IS NOT on 1.

If so, then just add in an else

```auto
on (release) {
 if (_root.tv._currentframe == 1) {
  _root.tv.gotoAndPlay(13);
 } else {
 _root.tv.nextFrame();
}
}

```

---

<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:** [May 29, 2004, 5:50am UTC](https://forum.kirupa.com/t/just-correct-the-one-line-in-this-as-please/111634/6 "2004-05-29T05:50:04Z")

</div>

ah ha! lostinbeta, you may have solved the puzzle! 😉

---

<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:** [May 29, 2004, 6:13am UTC](https://forum.kirupa.com/t/just-correct-the-one-line-in-this-as-please/111634/7 "2004-05-29T06:13:05Z")

</div>

ahah thats it. thank you very much
