# Loadmovie actionscript

**URL:** <https://forum.kirupa.com/t/loadmovie-actionscript/2700>\
**Category:** Uncategorized\
**Created:** [May 6, 2002, 1:08pm UTC](https://forum.kirupa.com/t/loadmovie-actionscript/2700 "2002-05-06T13:08:15Z")\
**Posts on this page:** 5\
**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 6, 2002, 1:08pm UTC](https://forum.kirupa.com/t/loadmovie-actionscript/2700/1 "2002-05-06T13:08:15Z")

</div>

I’m trying to load several movies after the other.  
with loadMovie:

loadMovie (“test1.swf”, 2);  
unloadMovieNum (2);  
loadMovie (“test2.swf”, 3);  
unloadMovieNum (3);

As soon as movie 1 is ended I want that movie2 starts.

I want that the loading of movie (test2.swf) starts when test1.swf is ended.

Can you please help me.  
T.I.A. Ibrahim

---

<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 6, 2002, 4:47pm UTC](https://forum.kirupa.com/t/loadmovie-actionscript/2700/2 "2002-05-06T16:47:24Z")

</div>

I’m not to clever with action scripting, but I’ll give it a go!  
You could try putting the load movie script into the last keyframe of movie 1 asking for movie 2. Then put the same into movie 2, in the last keyframe, asking for movie 3 to load in and so on.  
That should do it but there is ovbiously a better way 🙂

---

<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 6, 2002, 10:09pm UTC](https://forum.kirupa.com/t/loadmovie-actionscript/2700/3 "2002-05-06T22:09:20Z")

</div>

Exactly. Or set a marker to 1 when a movie ends, and check that value in the master movie. Basically the same idea as Lob.

And by the way, you can’t loadMovie (“test1.swf”, 2);, you have to loadMovieNum (“test1.swf”, 2);

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 7, 2002, 7:50am UTC](https://forum.kirupa.com/t/loadmovie-actionscript/2700/4 "2002-05-07T07:50:41Z")

</div>

Thanks dudes,  
I’ll better describe the problem.  
I’m trying to make the tool generic as I can.  
I want to select some swf files with a PHP-backoffice-system  
It generates a text-file with file names selected.  
I want that action script reads this file and plays the files after the other.  
I have the first part until reading the text-file with action script. But the last part; playing movies after the other is a problem.  
May be I can better solve it with PHP, by using the swflib.  
Thanks a lot again, and if you have some suggetions don’t  
hesitate to tell me.

T.i.a  
Ibrahim

---

<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 7, 2002, 10:56am UTC](https://forum.kirupa.com/t/loadmovie-actionscript/2700/5 "2002-05-07T10:56:30Z")

</div>

Yes, but the answer is the same. At the end of all your movies, just put

```auto
 next = 1

```

And then where you control everything, (i supposed you put all your movie names in an array called ‘names’), all you have to to is

```auto
 if (next) {
   i++ ; // counter
   loadMovieNum (names[i],i);
   next = 0 ;
}

```

You can’t copy and paste this just like this, but I hope this will give you the idea.

pom 0]
