# Button Issue - plz and thnx

**URL:** <https://forum.kirupa.com/t/button-issue-plz-and-thnx/177385>\
**Category:** flash\
**Created:** [February 1, 2006, 2:46pm UTC](https://forum.kirupa.com/t/button-issue-plz-and-thnx/177385 "2006-02-01T14:46:51Z")\
**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, 2:46pm UTC](https://forum.kirupa.com/t/button-issue-plz-and-thnx/177385/1 "2006-02-01T14:46:51Z")

</div>

Ok so I have a button that goes back to a frame on the [COLOR=red]Main Movie [/COLOR][COLOR=black]that plays this script at this particular frame:[/COLOR]

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

```

The reason I have this button going back to this particular frame is because it’s sort of a “back to home” button for the site I’m doing (so that it loads a random external movie clip when you go back to the “homepage”)…

My question is this: Is there any way I can put this script into the button so I don’t have to go back to this frame in order to call this script to load the random movieclips?
