# Buttons in externally loaded MC's triggering actions in the main MC?

**URL:** <https://forum.kirupa.com/t/buttons-in-externally-loaded-mcs-triggering-actions-in-the-main-mc/61769>\
**Category:** Uncategorized\
**Created:** [August 21, 2004, 4:20pm UTC](https://forum.kirupa.com/t/buttons-in-externally-loaded-mcs-triggering-actions-in-the-main-mc/61769 "2004-08-21T16:20:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrEmonkey](https://avatars.discourse-cdn.com/v4/letter/m/59ef9b/32.png) [@mrEmonkey](https://forum.kirupa.com/u/mrEmonkey)\
**Post date:** [August 21, 2004, 4:20pm UTC](https://forum.kirupa.com/t/buttons-in-externally-loaded-mcs-triggering-actions-in-the-main-mc/61769/1 "2004-08-21T16:20:52Z")

</div>

Hi guys,

using this tut again:

[http://www.kirupa.com/developer/mx/preloader\_transition.htm](http://www.kirupa.com/developer/mx/preloader_transition.htm)

I have the main MC loading in an external MC which contains a button.

When the button in the external MC is pressed, I want it to load in another external movie via the main MC, so it plays the transition MC again?

This is the AS that controls the buttons in the main MC. Do I just need to specify something extra in this?

```auto

b1.onRelease = function() {
 if (_root.section != "profile.swf") {
  _root.section = "profile.swf";
  _root.transition.gotoAndPlay("closing");
 }

```

Hope that makes sense!

Thanks

---

<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 22, 2004, 5:53pm UTC](https://forum.kirupa.com/t/buttons-in-externally-loaded-mcs-triggering-actions-in-the-main-mc/61769/2 "2004-08-22T17:53:38Z")

</div>

can anyone help with 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:** [August 23, 2004, 6:30pm UTC](https://forum.kirupa.com/t/buttons-in-externally-loaded-mcs-triggering-actions-in-the-main-mc/61769/3 "2004-08-23T18:30:45Z")

</div>

anyone at all?

I’m still trying to get this thing working.

I thought it’d be fairly staight forward…

I just need to get a button in the externally loaded MC to trigger the preloader and play another external MC in the main MC. Replacing the MC with the button.

Any help at all is appreciated.

Thanks

---

<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 23, 2004, 9:46pm UTC](https://forum.kirupa.com/t/buttons-in-externally-loaded-mcs-triggering-actions-in-the-main-mc/61769/4 "2004-08-23T21:46:18Z")

</div>

well…

I still haven’t got this button AS sussed but I have managed a work around.

Baiscally, I’ve copied the contents MC, Transition MC and the AS from the main movie, and pasted them into the external MC.

So now when the button is pressed on the external MC, it loads the new movie into itself, using its own transition. It just looks as though it’s using the main MC’s transition!!!

Simple really, not ideal, but it works.
