# Could some one elaborate

**URL:** <https://forum.kirupa.com/t/could-some-one-elaborate/119441>\
**Category:** Uncategorized\
**Created:** [August 14, 2004, 10:39pm UTC](https://forum.kirupa.com/t/could-some-one-elaborate/119441 "2004-08-14T22:39:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![sqladmin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sqladmin/32/125_2.png) [@sqladmin](https://forum.kirupa.com/u/sqladmin)\
**Post date:** [August 14, 2004, 10:39pm UTC](https://forum.kirupa.com/t/could-some-one-elaborate/119441/1 "2004-08-14T22:39:45Z")

</div>

for the movieclips associated with my button action i’m trying to set a variable to trueas when ever my MC starts to play. Then in the on (release) function have a

if (variable == true)

…play this other movie clip instead… then go on to play the intended movie clip

else play the intended movie clip

i’m trying to set this up for my nav, so i don’t have more than one mc playing at a time. a user ‘sirtimbly’ showed me where to start, but i was wondering if some one could elaborate on what exactly i’m trying to do. cause i tried doing this and it didn’t seem to work out for me.

---

<div class="post-metadata">

**Author:** ![sqladmin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sqladmin/32/125_2.png) [@sqladmin](https://forum.kirupa.com/u/sqladmin)\
**Post date:** [August 16, 2004, 5:20pm UTC](https://forum.kirupa.com/t/could-some-one-elaborate/119441/2 "2004-08-16T17:20:11Z")

</div>

and how would this be done exactly?

---

<div class="post-metadata">

**Author:** ![JakeO](https://avatars.discourse-cdn.com/v4/letter/j/848f3c/32.png) [@JakeO](https://forum.kirupa.com/u/JakeO)\
**Post date:** [August 16, 2004, 11:21pm UTC](https://forum.kirupa.com/t/could-some-one-elaborate/119441/3 "2004-08-16T23:21:41Z")

</div>

post up the .fla

---

<div class="post-metadata">

**Author:** ![sqladmin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sqladmin/32/125_2.png) [@sqladmin](https://forum.kirupa.com/u/sqladmin)\
**Post date:** [August 17, 2004, 4:38pm UTC](https://forum.kirupa.com/t/could-some-one-elaborate/119441/4 "2004-08-17T16:38:58Z")

</div>

remember what i want to do is have the out animation of the current  
movie clip play when ever the user decides to click on another button  
while it is playing.

so if the user clicks on button 3 while button2’s movie is playing then  
flash knows to play mc2 out animation before it plays mc3. know what  
i mean?

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [August 17, 2004, 4:43pm UTC](https://forum.kirupa.com/t/could-some-one-elaborate/119441/5 "2004-08-17T16:43:24Z")

</div>

Senocular has an fla on his site that does exactly what you want. Check it out:

[click me!](http://www.senocular.com/downloads/index.php?subaction=showfull&id=1074710021&archive=&start_from=&ucat=2&kind=2)

:hr:

---

<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 17, 2004, 4:44pm UTC](https://forum.kirupa.com/t/could-some-one-elaborate/119441/6 "2004-08-17T16:44:43Z")

</div>

i don’t have flash on this pc but your on the right track.

set a variable to see what movieclip is playing and then tell flash what you want from there.

ex

```auto

mcPlaying = false;
myButton.onRelease = function{
if(mcPlaying == false){
//do something
}
mcPlaying = true;
}

```

---

<div class="post-metadata">

**Author:** ![sqladmin](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/sqladmin/32/125_2.png) [@sqladmin](https://forum.kirupa.com/u/sqladmin)\
**Post date:** [August 17, 2004, 7:01pm UTC](https://forum.kirupa.com/t/could-some-one-elaborate/119441/7 "2004-08-17T19:01:33Z")

</div>

thanks for the feed back!

i’m going to entegrate that into my site. takes some shifting around, but  
i think i can do it. hope to be done with it by the end of the day.

thanks again!

---

<div class="post-metadata">

**Author:** ![lunatic](https://avatars.discourse-cdn.com/v4/letter/l/73ab20/32.png) [@lunatic](https://forum.kirupa.com/u/lunatic)\
**Post date:** [August 17, 2004, 7:27pm UTC](https://forum.kirupa.com/t/could-some-one-elaborate/119441/8 "2004-08-17T19:27:42Z")

</div>

:thumb: good luck!
