# AS query- how to incorporate random load

**URL:** <https://forum.kirupa.com/t/as-query-how-to-incorporate-random-load/83744>\
**Category:** flash\
**Created:** [March 21, 2005, 9:49pm UTC](https://forum.kirupa.com/t/as-query-how-to-incorporate-random-load/83744 "2005-03-21T21:49:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmart](https://avatars.discourse-cdn.com/v4/letter/c/977dab/32.png) [@cmart](https://forum.kirupa.com/u/cmart)\
**Post date:** [March 21, 2005, 9:49pm UTC](https://forum.kirupa.com/t/as-query-how-to-incorporate-random-load/83744/1 "2005-03-21T21:49:20Z")

</div>

HI all…this is the fourth version of this question (previous posts were not answered) so hopefully, it’s clear this time.

I have this script assigned to a button.

homebutton.onRelease = function() {  
if (\_root.section != “home.swf”) {  
\_root.section = “home.swf”;  
\_root.transition.gotoAndPlay(“closing”);  
}

I’d like the “home.swf” to be a random clip chosen out of three .swf’s. Is there a way to expand this script to include a random choice script?

Thanks.
