# Loading and unloading several movies in the same time line

**URL:** <https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259>\
**Category:** Uncategorized\
**Created:** [May 1, 2002, 9:47pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259 "2002-05-01T21:47:24Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [May 1, 2002, 9:47pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/1 "2002-05-01T21:47:24Z")

</div>

i’m having this HUGE problem that has me paralyzed. I know hot to load and unload movies with the telltarget action…But that works only with one or two movies…i need to do it with 13…i already tried the variables wich i will include:

for the buttons:  
on(press){  
nNumber = 1  
}

for the button that reveals the menu:  
on(press){  
if(!nFade){  
nFade = true  
} else {  
nFade = false  
}  
}

for the menu that contains all the buttons:  
onClipEvent(load){  
\_alpha = 0  
}  
onClipEvent(enterFrame){  
if(\_root.nFade == true && \_alpha \<= 100){  
\_alpha += 15  
}else if(\_root.nFade == false && \_alpha \>= 0){  
\_alpha -=15  
}  
}

for the movies:  
onClipEvent(enterFrame){  
if(\_root.nNumber == 1){  
\_visible = true  
}else{  
\_visible = false  
}  
}

any idea?..i’m desperate…i’ve been on this for a week now…and i HAVE to finish it by sunday…any help will be greatly appreciated…  
8o

---

<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:** [May 1, 2002, 9:56pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/2 "2002-05-01T21:56:02Z")

</div>

I don’t understand what you’re trying to do…  
pom 0]

---

<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:** [May 1, 2002, 10:07pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/3 "2002-05-01T22:07:06Z")

</div>

hey ilyas…it’s the same thing you tried to explain me a couple of days ago…

i need to load and unload 13 movies in the same scene…

i have a button (a) that triggers a movie that contains a menu(b)…that menu has 10 buttons that should load 10 movies…the problem is that i cant make them disappear…

right now, with that code NOTHING works…  
8o

---

<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:** [May 1, 2002, 10:31pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/4 "2002-05-01T22:31:23Z")

</div>

anyone?

---

<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:** [May 1, 2002, 10:49pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/5 "2002-05-01T22:49:14Z")

</div>

Tomorrow. |I :x

pom 0]

---

<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:** [May 2, 2002, 1:11am UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/6 "2002-05-02T01:11:53Z")

</div>

on(press){  
\_root.nNumber = 1  
}

That should solve it. But I sent you another e-mail.

---

<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:** [May 2, 2002, 6:30pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/7 "2002-05-02T18:30:01Z")

</div>

I got some results…it’s going ok…please if anyone can, check the .fla here:  
[mangrove.fla](http://www.mangrovepr.com/mangroveredesigned.fla)

and the .swf here:  
[mangrove](http://www.mangrovepr.com/test)

the buttons that work are: “high low tide” and “sonidos del mangle”

the problem is: i need that when you press any button, the movie that is active, currently on screen, disappear.

is that possible?..

---

<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:** [May 2, 2002, 6:34pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/8 "2002-05-02T18:34:02Z")

</div>

i thought I answered that in my e-mail? Actually I’m sure I did. Thats what my e-mail was targeted at. Wuts the code?

---

<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:** [May 2, 2002, 6:44pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/9 "2002-05-02T18:44:27Z")

</div>

hey jubba thanx…

didn’t u get my last email?

the problem im having is that i have to press the button twice to make the movie appear…then i have to press it again to make it disappear…

capisci? 🙂

---

<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:** [May 2, 2002, 6:50pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/10 "2002-05-02T18:50:29Z")

</div>

oh yeah, I’ll get you an answer tonight. Can it wait until say, 8pm EST?

I just got your e-mail. i’ll have it for ya soon.

---

<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:** [May 2, 2002, 6:53pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/11 "2002-05-02T18:53:54Z")

</div>

of course!!!

no prob with that…

thanx again man!!!

---

<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:** [May 2, 2002, 10:41pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/12 "2002-05-02T22:41:22Z")

</div>

I’ll post and send an e-mail

Put this on the movie clips:

onClipEvent(load){  
\_alpha = 0  
}  
onClipEvent(enterFrame){  
if(\_root.movie == 1 && \_alpha \<= 100){  
\_alpha += 20  
}else if(\_alpha \>= 0){  
\_alpha -= 20  
}  
}

the only number you have to change is the “\_root.movie == 1” and change it to account for different movie clips, the next one would be 2, then 3, 4, 5, etc, etc…

on the buttons do this:

on(press){  
movie = 1  
}

And change the numbers to coorespond to each movie that you want to appear or disappear. This worked for me. Try it. Let me know.

---

<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:** [May 3, 2002, 6:34pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/13 "2002-05-03T18:34:01Z")

</div>

jubba it doesn’t work…i don’t know why…i’m doing exactly what you’re saying…

any idea?

☹

---

<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:** [May 3, 2002, 6:45pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/14 "2002-05-03T18:45:58Z")

</div>

make sure you are changing the numbers on both the buttons and the movieclips to coorespond to what you are trying to do. If you want to post the updated FLA I can take a look at it on my roommates computer.

---

<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:** [May 3, 2002, 6:49pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/15 "2002-05-03T18:49:02Z")

</div>

no, the problem is that the buttons doesn’t link to the movie…

???

☹

---

<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:** [May 3, 2002, 7:00pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/16 "2002-05-03T19:00:43Z")

</div>

i’m updating the .fla

[mangrove.fla](http://www.mangrovepr.com/mangroveredesigned.fla)

go there in about…i don’t know it’s uploading at 108 Kbps and is now at about 50%…

😕

---

<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:** [May 3, 2002, 7:22pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/17 "2002-05-03T19:22:49Z")

</div>

it worked!!!

i just added \_root to the button…

on(press)  
\_root.movie = 1

---

<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:** [May 3, 2002, 7:36pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/18 "2002-05-03T19:36:57Z")

</div>

ok good.

---

<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:** [May 3, 2002, 7:59pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/19 "2002-05-03T19:59:09Z")

</div>

number 994 jubba! tis getting closer:)

---

<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:** [May 4, 2002, 4:13pm UTC](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259/20 "2002-05-04T16:13:14Z")

</div>

hey jubba i’m having a small problem…

there’s a kind of “glitch” (i don’t know if that’s a correc term)…but the problem is that the movies loaded are in a kind of loop…it has to do with the alpha action…i think

any idea?..if needed, check it out here:  
[mangrove](http://www.mangrovepr.com/test)

thanx a lot…

8o

[Next page](https://forum.kirupa.com/t/loading-and-unloading-several-movies-in-the-same-time-line/2259.md?page=2)
