# \[fmx\] HELP!...button scripting

**URL:** https://forum.kirupa.com/t/fmx-help-button-scripting/11971
**Category:** Uncategorized
**Created:** [January 24, 2003, 6:58pm UTC](https://forum.kirupa.com/t/fmx-help-button-scripting/11971 "2003-01-24T18:58:28Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![gwmnx](https://avatars.discourse-cdn.com/v4/letter/g/e495f1/32.png) [@gwmnx](https://forum.kirupa.com/u/gwmnx)
#### Post date: [January 24, 2003, 6:58pm UTC](https://forum.kirupa.com/t/fmx-help-button-scripting/11971/1 "2003-01-24T18:58:28Z")

</div>

😠

on (release) {  
location.loadMovie("(url which external movie is at)");

}

i was wondering if this would werk for a button to trigger a movie to open in the movie that is already playiing. :-\

---

<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 24, 2003, 7:04pm UTC](https://forum.kirupa.com/t/fmx-help-button-scripting/11971/2 "2003-01-24T19:04:00Z")

</div>

Welcome to the boards!

I´m trying to help you, so, can you plz explain that better:

> was wondering if this would werk for a button to trigger a movie to open in the movie that is already playiing.

Cheers :whistle:

---

<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 24, 2003, 7:12pm UTC](https://forum.kirupa.com/t/fmx-help-button-scripting/11971/3 "2003-01-24T19:12:53Z")

</div>

Hi!..  
ok  
well in this SWF i made…it contains like 5 buttons. i just want to buttons to load a movie inthe SWF itself. i made i MovieClip thingy (named location) for the external movie to go in…so i was wondering if that code would work… ack…did i make it confusing again?

---

<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 24, 2003, 7:19pm UTC](https://forum.kirupa.com/t/fmx-help-button-scripting/11971/4 "2003-01-24T19:19:38Z")

</div>

=)

**here´s my bit of knolege:**

if you place that code on a button:

```auto

on (release) {
content.loadMovie("news.swf");
}

```

you´ll have the external movie _news.swf_ loaded into the movieclip _content_ on your movie. You´ll have to have a movie clip instance named _content_ on your main movie to do that.

or you can do that:

```auto

on (release) {
loadMovieNum("news.swf", 1);
}

```

that will load the external movie _news.swf_ into your main movie on the level 1, wich is above the level of the main movie that is (always) 0.

got 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 24, 2003, 7:23pm UTC](https://forum.kirupa.com/t/fmx-help-button-scripting/11971/5 "2003-01-24T19:23:17Z")

</div>

it´s easier 😉

but the #1 has more uses, once you get good at AS (-:

---

<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 24, 2003, 7:23pm UTC](https://forum.kirupa.com/t/fmx-help-button-scripting/11971/6 "2003-01-24T19:23:25Z")

</div>

Yeah…but…ok…kool…now i wanna kno where…which layer or frames do u have to put this _content_ movie clip in. should i make a layer and pull it thru all of my main movie?

EDIT:  
BTW…i need #1 for my usees…heh…

---

<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 24, 2003, 7:28pm UTC](https://forum.kirupa.com/t/fmx-help-button-scripting/11971/7 "2003-01-24T19:28:58Z")

</div>

but you sound like you don´t know jack of what you´re trying to do, so, can you tell me why you need the #1 instead the #2?

Coz they really look like the same, the difference is just for other usabilities :-\

---

<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 24, 2003, 7:44pm UTC](https://forum.kirupa.com/t/fmx-help-button-scripting/11971/8 "2003-01-24T19:44:05Z")

</div>

> that will load the external movie news.swf into your main movie on the level 1, wich is above the level of the main movie that is (always) 0.

ok this…u mean that the external movie will go directly on top of my main movie…covering all of the rest of my main movie? so that the external movie will be showing instead of my main movie?..if u were say that u can show both the main movie and the external movie on the stage than im sorrie…but i think that # 1 would bring the external movie into the main movie…but not covering it.

remember im a newbie…so correct me if im wrong…:sigh:

---

<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 24, 2003, 8:05pm UTC](https://forum.kirupa.com/t/fmx-help-button-scripting/11971/9 "2003-01-24T20:05:39Z")

</div>

imagine a main movie with 200x200 px and a loade movie with 10x10px.

the loaded movie will not cover all the main movie, no matter if you go for #1 or #2.

I´m off to home now. See you latter. 🙂
