# Question regarding one of the live tutorials

**URL:** https://forum.kirupa.com/t/question-regarding-one-of-the-live-tutorials/235826
**Category:** Uncategorized
**Created:** [August 15, 2007, 12:58am UTC](https://forum.kirupa.com/t/question-regarding-one-of-the-live-tutorials/235826 "2007-08-15T00:58:57Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![newttyy](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@newttyy](https://forum.kirupa.com/u/newttyy)
#### Post date: [August 15, 2007, 12:58am UTC](https://forum.kirupa.com/t/question-regarding-one-of-the-live-tutorials/235826/1 "2007-08-15T00:58:57Z")

</div>

Hello there,

I had a question regarding one of the Flash tutorials from this site: “Loading Random Movies”.

The code was something like this:

```auto

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

```

I was wondering if you guys would care and show me how could you put a condition to check what was the last .swf opened, so that when you refresh the page, you will not get the same video as the last one?

Thank you in advance, and sorry if by any chance I didn’t post in the right place … or duplicated the question (I did some search but didn’t found anything… regarding this tutorial).
