# Preload a 2nd SWF while the 1st plays?

**URL:** <https://forum.kirupa.com/t/preload-a-2nd-swf-while-the-1st-plays/225946>\
**Category:** flash\
**Created:** [May 16, 2007, 11:16pm UTC](https://forum.kirupa.com/t/preload-a-2nd-swf-while-the-1st-plays/225946 "2007-05-16T23:16:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jc1](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/jc1/32/3618_2.png) [@jc1](https://forum.kirupa.com/u/jc1)\
**Post date:** [May 16, 2007, 11:16pm UTC](https://forum.kirupa.com/t/preload-a-2nd-swf-while-the-1st-plays/225946/1 "2007-05-16T23:16:31Z")

</div>

Hi All! My first post here.  
New to Flash and using Flash 8/AS 2.

My first Flash project involves 2 animations each in it’s own HTML page and it works fine and my client is happy - except, as noted below. The first SWF is short, the 2nd much longer.

Therefore, the ‘getURL’ in the first SWF results in a 1-2 second pause, instead of an instant and smooth transition, between the 2 animations, the first time someone accesses them.

Can anyone recommend an ActioScript use or a source for a JavaScript the will preload the 2nd SWF in the background while the web visitor watches the 1st SWF?

Thanks All :puzzled:
