# \[FMX\] Really easy question, Don't know the answer!

**URL:** <https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357>\
**Category:** Uncategorized\
**Created:** [January 30, 2003, 3:18am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357 "2003-01-30T03:18:45Z")\
**Posts on this page:** 20\
**Page:** 2

<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:** [January 30, 2003, 5:54am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/21 "2003-01-30T05:54:02Z")

</div>

The buttons i am using are inside of a movie clip.

---

<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:** [January 30, 2003, 6:00am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/22 "2003-01-30T06:00:08Z")

</div>

Is your “clip” movie clip inside the same movie clip? If so then try getting rid of \_root and replacing it with \_parent or just getting rid of it altogether.

\_root targets the main timeline

\_parent targets the timeline before the one the current movie clip is in

---

<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:** [January 30, 2003, 6:05am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/23 "2003-01-30T06:05:26Z")

</div>

Here is what happens, the first time i hit the button, it does ok, and goes to frame 5, but then the second time i hit it, and want it to open a swf, it goes all the way back to frame 1( desired effect is for the frame to stay at 5 and for the button to open swf’s)

I tried the \_parent thing, nothing. But thanks for trying…

---

<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:** [January 30, 2003, 6:11am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/24 "2003-01-30T06:11:44Z")

</div>

Target your variable as \_parent.nFlag or \_root.nFlag instead of just nFlag.

---

<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:** [January 30, 2003, 6:20am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/25 "2003-01-30T06:20:29Z")

</div>

Do you see my previous AS? look at the first \_root.play, what is negating that action? Is that what keeps telling the frame to go up 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:** [January 30, 2003, 6:25am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/26 "2003-01-30T06:25:46Z")

</div>

It worked!!! it works perfectly! :bounce: :beam: Thanks for all the help! Calling the variable (nFlag) from \_root. is what made everything connect and work. I never would have seen that. Good Stuff! Keep it up!

---

<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:** [January 30, 2003, 6:26am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/27 "2003-01-30T06:26:09Z")

</div>

Yeah, that is it because everytime you release it says to play the \_root timeline.

Assuming you have the nFlag variable on Frame 1 of the same timeline your button is in (and also the “clip” is in the same timeline too)… try this…

```php
on (release) {
	if (_parent.nFlag == true) {
		_parent.play();
		_parent.nFlag = false;
	} else {
		_parent.clip.loadMovie("inout.swf");
	}
}

```

---

<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:** [January 30, 2003, 6:27am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/28 "2003-01-30T06:27:20Z")

</div>

Oh ok… you fixed it.

Congrats 🙂

---

<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:** [January 30, 2003, 7:12am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/29 "2003-01-30T07:12:08Z")

</div>

I am using a menu system, how can i make it so that one menu does not stick around while another is open? Can you explain it?

---

<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:** [January 30, 2003, 7:14am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/30 "2003-01-30T07:14:51Z")

</div>

Depends on how your menu system works.

---

<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:** [January 30, 2003, 7:18am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/31 "2003-01-30T07:18:45Z")

</div>

It is 3 animated buttons in an MC with the first clip empty. It runs on a button which is on the main timeline, that button, when rolled over, has a \_root.play to activate the animated menu. when two or more are put together, they overlap, or don’t go together too well, how can i fix this?

---

<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:** [January 30, 2003, 7:24am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/32 "2003-01-30T07:24:01Z")

</div>

Have an on(rollOut) on the button and target it to play an out animation.

---

<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:** [January 30, 2003, 7:26am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/33 "2003-01-30T07:26:05Z")

</div>

what do you mean by out animation?

---

<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:** [January 30, 2003, 7:33am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/34 "2003-01-30T07:33:04Z")

</div>

Sorry, I am very tired, it is 2:30am here.

You say you have it play() on(rollOver) right? And this activates your menu.

Well if when you rollOver another menu it overlaps, then perhaps adding an on(rollOut) to your button can activate an out animation.

So like you have it play() the in animation until it hits a stop action. Then after that stop action comes the out animation to and you target that on rollOut.

So

rollOver - play in  
rollOut - play out

Now that I am thinking about it, I am not sure this makes sense.

I really have to get to bed now ☹

---

<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:** [January 30, 2003, 7:35am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/35 "2003-01-30T07:35:00Z")

</div>

get some rest man, that makes no sense, try again tommorrow :crazy:

---

<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:** [January 30, 2003, 7:37am UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/36 "2003-01-30T07:37:20Z")

</div>

Goodnight :hangover:

---

<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:** [January 30, 2003, 3:46pm UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/37 "2003-01-30T15:46:44Z")

</div>

Alright, back to my question…:bounce:

---

<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:** [January 30, 2003, 6:14pm UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/38 "2003-01-30T18:14:09Z")

</div>

anyone have 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:** [January 30, 2003, 6:37pm UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/39 "2003-01-30T18:37:15Z")

</div>

Ok, time to see if I am understanding correctly.

Please check the .fla file 🙂

---

<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:** [January 30, 2003, 7:39pm UTC](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357/40 "2003-01-30T19:39:45Z")

</div>

on (rollOver) {  
\_root.closedmenu.menuA.play();  
}  
//button on main timeline

The MC menu it activates ends at frame 13

[Previous page](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357.md?page=1)

[Next page](https://forum.kirupa.com/t/fmx-really-easy-question-dont-know-the-answer/12357.md?page=3)
