# Load unload swf

**URL:** https://forum.kirupa.com/t/load-unload-swf/291928
**Category:** Uncategorized
**Created:** [July 7, 2009, 7:08pm UTC](https://forum.kirupa.com/t/load-unload-swf/291928 "2009-07-07T19:08:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![vandriver](https://avatars.discourse-cdn.com/v4/letter/v/258eb7/32.png) [@vandriver](https://forum.kirupa.com/u/vandriver)
#### Post date: [July 7, 2009, 7:08pm UTC](https://forum.kirupa.com/t/load-unload-swf/291928/1 "2009-07-07T19:08:54Z")

</div>

I have a series of animation 8 in total.

I want to no how to play one animation, have a delay for 5 sec, and unload that swf, and then play the next.swf with the same delay, this is repeated for the other animations.

I just cant work this out as i am new to actionsript 3.0. Can any body show me how this is done.

I started with this code

stop();

var ld:Loader = new Loader()  
ld.load(new URLRequest(“EnvironmentalTraining.swf”)  
addChild(ld)

This allows me to load 1.swf,and that it.

This task was easy in actionscript2.0.

All example i have found online, use buttons to load/unload swf.  
I need an example without buttons.

I just want to load a swf, have a delay then play the other swf, in a loop

Any help would be appreciated.

:piercings:
