# \[FMX\] Load Movie

**URL:** https://forum.kirupa.com/t/fmx-load-movie/27129
**Category:** flash
**Created:** [July 30, 2003, 12:59pm UTC](https://forum.kirupa.com/t/fmx-load-movie/27129 "2003-07-30T12:59:43Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![mawo](https://avatars.discourse-cdn.com/v4/letter/m/dbc845/32.png) [@mawo](https://forum.kirupa.com/u/mawo)
#### Post date: [July 30, 2003, 12:59pm UTC](https://forum.kirupa.com/t/fmx-load-movie/27129/1 "2003-07-30T12:59:43Z")

</div>

hello everyone.

i created a flash movie with several swf files that  
would be loaded in other levels. i was wondering if  
it would be possible to “alpha” level0 when a swf file in level1  
is loaded and to “un-alpha” it when level1 is unloaded?  
i hope u understand what i mean.

thank you for your replies.

mawo

* * *

official flash noob

---

<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: [July 30, 2003, 2:16pm UTC](https://forum.kirupa.com/t/fmx-load-movie/27129/2 "2003-07-30T14:16:26Z")

</div>

A level is like a MovieClip, it has all the properties and handlers, you can do pretty much anything you want with them. 😛  
[AS]\_level0.onEnterFrame = function() {  
this.\_visible = !\_level1;  
};[/AS]  
That should do…

Although it would be much better if you set its \_visible property to true/false when you load/unload the level instead of the onEnterFrame handler. 🙂

---

<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: [July 30, 2003, 4:10pm UTC](https://forum.kirupa.com/t/fmx-load-movie/27129/3 "2003-07-30T16:10:20Z")

</div>

well i really dont know  
where i have to pu this peace of code.  
my button that loads the swf file contains the  
following code:

on (release) {  
loadMovieNum(“abot.swf”, 1);

}

so where do i have to put your code to “alpha” (for example 50%)  
level0?

and for the button that unloads level1 i have the following code:

on (release) {  
unloadMovieNum(1);

}

how do i undo the “alpha effect” of level0 in here?

thank you for your replies.

mawo

* * *

official flash noob

---

<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: [July 30, 2003, 4:13pm UTC](https://forum.kirupa.com/t/fmx-load-movie/27129/4 "2003-07-30T16:13:40Z")

</div>

[AS]on (release) {  
loadMovieNum(“abot.swf”, 1);  
\_level0.\_alpha = 50;  
}  
//  
on (release) {  
unloadMovieNum(1);  
\_level0.\_alpha = 100;  
}[/AS]  
I thought you wanted to make it completely invisible, that’s why I used the \_visible property. 😛

---

<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: [July 30, 2003, 4:17pm UTC](https://forum.kirupa.com/t/fmx-load-movie/27129/5 "2003-07-30T16:17:12Z")

</div>

oh man fast as lightning!

thank you very much!  
i hope some day i will be able to help.

mawo

* * *

official flash noob

---

<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: [July 30, 2003, 4:19pm UTC](https://forum.kirupa.com/t/fmx-load-movie/27129/6 "2003-07-30T16:19:00Z")

</div>

You’re welcome. 😉

… And yeah, I hope so too. 😛
