# Combine Scripts?

**URL:** <https://forum.kirupa.com/t/combine-scripts/177392>\
**Category:** Uncategorized\
**Created:** [February 1, 2006, 3:58pm UTC](https://forum.kirupa.com/t/combine-scripts/177392 "2006-02-01T15:58:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![BoonDock](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/boondock/32/1188_2.png) [@BoonDock](https://forum.kirupa.com/u/BoonDock)\
**Post date:** [February 1, 2006, 3:58pm UTC](https://forum.kirupa.com/t/combine-scripts/177392/1 "2006-02-01T15:58:08Z")

</div>

Ok so I have this script I want to use to do the transition effects between external movieclips:

```auto
 _root.currMovie = "your_first_section_name";
 container.loadMovie(_root.currMovie+".swf"); 

```

But, I want to load a random movie clip when this script is run and the script I’m using for this is here:

```auto
 
myArray = ["home_quote1.swf", "home_quote2.swf", "home_quote3.swf"];
randomClip = myArray[random(myArray.length)];
//usage
sub_nav.loadMovie(randomClip);

```

Is there any way to combine the two of these so it works correctly? PLEASE AND THANKS!

Boon.
