# How to show last movie loaded?

**URL:** <https://forum.kirupa.com/t/how-to-show-last-movie-loaded/173074>\
**Category:** flash\
**Created:** [December 20, 2005, 10:37pm UTC](https://forum.kirupa.com/t/how-to-show-last-movie-loaded/173074 "2005-12-20T22:37:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![deltajam](https://avatars.discourse-cdn.com/v4/letter/d/7993a0/32.png) [@deltajam](https://forum.kirupa.com/u/deltajam)\
**Post date:** [December 20, 2005, 10:37pm UTC](https://forum.kirupa.com/t/how-to-show-last-movie-loaded/173074/1 "2005-12-20T22:37:54Z")

</div>

I have the following script which loads my movies. What I would like to do is track which movie was previous loaded and pass that on to the movie that is preloading for use later on.

```auto

var newLoad = function (movie:String) {
 this.createEmptyMovieClip(movie,this.getNextHighestDepth());
 this[movie]._x = -188;
 this[movie]._y = -169;
 if (oldMovie == movie) {
 } else {
  this[movie].loadMovie(movie+".swf");
 }
 _global.oldMovie = movie;
};

```

Any suggestions or ideas?
