# How do I load the previous swf?

**URL:** https://forum.kirupa.com/t/how-do-i-load-the-previous-swf/306963
**Category:** flash
**Created:** [March 25, 2010, 12:13pm UTC](https://forum.kirupa.com/t/how-do-i-load-the-previous-swf/306963 "2010-03-25T12:13:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Ejrob](https://avatars.discourse-cdn.com/v4/letter/e/c57346/32.png) [@Ejrob](https://forum.kirupa.com/u/Ejrob)
#### Post date: [March 25, 2010, 12:13pm UTC](https://forum.kirupa.com/t/how-do-i-load-the-previous-swf/306963/1 "2010-03-25T12:13:49Z")

</div>

Flash CS3 Pro. AS 2.0. Mac OS X.

I am making an instruction film containing many different SWF:s that loads one at a time. The new swf unloads the previous swf. But with a “Go back button” you should be able to load the previous swf, but that one can be different depending on which one you came from.

So how do I write a script that means something like this:

If level 2 (film2.swf) was the previous swf , load that one again, else try the next one on the list.
