# Kirupa.com tutorial "load random movie"

**URL:** <https://forum.kirupa.com/t/kirupa-com-tutorial-load-random-movie/231046>\
**Category:** flash\
**Created:** [July 1, 2007, 4:36pm UTC](https://forum.kirupa.com/t/kirupa-com-tutorial-load-random-movie/231046 "2007-07-01T16:36:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seeing](https://avatars.discourse-cdn.com/v4/letter/s/e79b87/32.png) [@seeing](https://forum.kirupa.com/u/seeing)\
**Post date:** [July 1, 2007, 4:36pm UTC](https://forum.kirupa.com/t/kirupa-com-tutorial-load-random-movie/231046/1 "2007-07-01T16:36:24Z")

</div>

hi, great tutorial by the way, thanks [kirupa.com](http://kirupa.com)

this is the code for that tutorial…

[SIZE=2]filename = [“circular.swf”, “vibration.swf”, “random\_movement.swf”]; path = “[http://www.kirupa.com/developer/actionscript/animation/](http://www.kirupa.com/developer/actionscript/animation/)”; i = filename.length; k = Math.floor(Math.random()\*i); loadMovie(path+filename[k], movieTarget);[/SIZE]

just one thing…the same effect WITHOUT reloading the page  
that is to say that the movie randomly changes over time

hows that done then?

also, is the time frame between the new random movie tot replacing  
the old movie er, setable (if that is even a word)

thanks for any help

sophia
