# Checking to see what frame

**URL:** <https://forum.kirupa.com/t/checking-to-see-what-frame/16236>\
**Category:** Uncategorized\
**Created:** [March 22, 2003, 4:54pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236 "2003-03-22T16:54:12Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![SureShot](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sureshot/32/83_2.png) [@SureShot](https://forum.kirupa.com/u/SureShot)\
**Post date:** [March 22, 2003, 4:54pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/1 "2003-03-22T16:54:12Z")

</div>

Hey guys, question here.

I have 2 movie clips with buttons on them.

I have placed them both on the main scene side by side. when you click the one on the left, it and the right one move to the right. When you click on the right one - it just moves. It’s set up so it looks like the one on the left is pushing the one on the right when it’s selected.

Now when either or both of the movie clips have activated and moved the right I want to be able to send them back to their original spot. This is where it get’s tricky.

how do I tell the movie clip on the clip on the right to check and see if the moive clip on the left has moved and gone to frame 10 or not.

it’s kind of confusing so I will upload a fla for you to look at.

---

<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:** [March 22, 2003, 5:03pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/2 "2003-03-22T17:03:36Z")

</div>

[AS]if(button2.\_currentframe == 10) {  
trace(“true”)  
} else {  
trace(“false”)  
}[/AS]

I’m a bastard… :beam:

---

<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:** [March 22, 2003, 5:50pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/3 "2003-03-22T17:50:20Z")

</div>

Thank you for your help Fluid - but do I have to tell the movie clip what do if it is true or if it is false?

I am not good with AS so please be patient 🙂

---

<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:** [March 22, 2003, 6:23pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/4 "2003-03-22T18:23:37Z")

</div>

it depends if you want to…

tell me what do you want it 2 do, and i’ll help you as far as i could

---

<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:** [March 22, 2003, 6:37pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/5 "2003-03-22T18:37:32Z")

</div>

okay thanks 🙂

i want to have to bars side by side that move to the right when you click them, and back to their original spot when you click them again.

When you click the left one - both the right and left move, as if the left side is pushing the right side. When you click the right side - only the right side movies because there is nothing in front of it.

The same goes for when they are both on the right side of the screen. When you click the left one - it comes back by it’s self because there is nothing in front of it. When you click the right one - it has to make both go back if the left one is still there.

My problem is I need to check and see if when clicking on the left one if the right one has already moved or not. If it has, only the left side moves, if it hasnt, both have to move. It’s the same for coming back to it’s original spot. When the right one has moved after being clicked once, the it needs to know if the left side is right beside it, or still back at the begining.

I hope you understand what I mean, I have explained it the best I can… 🙂

Thanks again for your help.

---

<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:** [March 22, 2003, 8:19pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/6 "2003-03-22T20:19:03Z")

</div>

this is what i’ve done so far…

---

<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:** [March 22, 2003, 8:25pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/7 "2003-03-22T20:25:04Z")

</div>

Ok man that works very well - thank you 🙂 there is just a couple things that dont work right.

When you click on left one I want it to push the right one over but remain over there and not come back

Also when both bars have moved over the right - when you click on the rigth most bar - I want them both to go back to the start and stay there, not have it come back to the right again.

I havent looked at the code yet and I might be able to figure it out myself but if you have some time - the help is very much appreciated. Thanks very much Fluid\_One

---

<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:** [March 22, 2003, 8:57pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/8 "2003-03-22T20:57:19Z")

</div>

thats fluid\_0ne (small f and “zero” in stead of O)  
i’ll try to find a solution…

---

<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:** [March 22, 2003, 9:13pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/9 "2003-03-22T21:13:24Z")

</div>

Sorry dude hahaha - I didnt mean to offend ya 🙂

---

<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:** [March 23, 2003, 8:23am UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/10 "2003-03-23T08:23:52Z")

</div>

Someone, please help ☹

---

<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:** [March 23, 2003, 8:26am UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/11 "2003-03-23T08:26:26Z")

</div>

sorry Tuknuk…

I do not know how to help, else I would…

the best I can do, is bump this up, so maybe someone on that end of the globe will see it…

Rev ![](http://www.aulman.com/rev.gif)

---

<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:** [March 23, 2003, 5:10pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/12 "2003-03-23T17:10:54Z")

</div>

Thanks rev… and no - I havnt seen your penguin dude. 🙂

_rubs stomach and makes mmmmmmmmm sound_

---

<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:** [March 23, 2003, 5:33pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/13 "2003-03-23T17:33:27Z")

</div>

Please tell me you didn’t eat Mr. Flibble…

He has a halo virus by the way…

Rev ![](http://www.aulman.com/rev.gif)

---

<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:** [March 23, 2003, 5:40pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/14 "2003-03-23T17:40:04Z")

</div>

_starts spitting and rubbing his tongue_

Yeuck!! Get it out, get it out!!

---

<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:** [March 23, 2003, 5:42pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/15 "2003-03-23T17:42:37Z")

</div>

If your eyes start to glow, please see a physician…

Rev ![](http://www.aulman.com/rev.gif)

---

<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:** [March 23, 2003, 7:06pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/16 "2003-03-23T19:06:39Z")

</div>

done!!  
have phun 😉

btw:  
it took me so long 'cuz it’s my 18th b-day today…

---

<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:** [March 23, 2003, 7:58pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/17 "2003-03-23T19:58:18Z")

</div>

I havent checked it yet but -

HAPPY BIRTHDAY TO YOU, HAPPY BIRTHDAY TO YOU, HAPPY BIRTHDAY DEAR fluid\_0ne HAPPY BIRTHDAY TO YOU!!! =)

My present to you - spelling your name right 😉

---

<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:** [March 24, 2003, 1:56pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/18 "2003-03-24T13:56:48Z")

</div>

G - THX SureShot!!  
and my present was that fla 😉

---

<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:** [March 24, 2003, 2:01pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/19 "2003-03-24T14:01:04Z")

</div>

> _Originally posted by fluid\_0ne_

```auto
if(button2.currentframe == 10) {
trace("true")
} else {
trace("false")
}

```

it’s **\_currentframe** not currentframe… you should fix it.  
just in case someone else needs the script 😉 =)

---

<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:** [March 24, 2003, 2:26pm UTC](https://forum.kirupa.com/t/checking-to-see-what-frame/16236/20 "2003-03-24T14:26:08Z")

</div>

check out my fla 1st, then tell me what to fix…

[Next page](https://forum.kirupa.com/t/checking-to-see-what-frame/16236.md?page=2)
