# Please help with code for delayed swf load

**URL:** https://forum.kirupa.com/t/please-help-with-code-for-delayed-swf-load/41632
**Category:** flash
**Created:** [January 31, 2004, 8:38am UTC](https://forum.kirupa.com/t/please-help-with-code-for-delayed-swf-load/41632 "2004-01-31T08:38:49Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![bayek](https://avatars.discourse-cdn.com/v4/letter/b/e99b99/32.png) [@bayek](https://forum.kirupa.com/u/bayek)
#### Post date: [January 31, 2004, 8:38am UTC](https://forum.kirupa.com/t/please-help-with-code-for-delayed-swf-load/41632/1 "2004-01-31T08:38:49Z")

</div>

Hi, here is the situation, I have the button that loads two swfs, one is the backround and the other is the news bar. However, I would like the news bar to load no sooner than the backround swf loads. I dont why but I thought this code would work - it doesn’t. Any hints please?🙂

on (release) {  
loadMovie(“films/news/news.swf”,\_root.content);  
}  
but1.onRelease = function() {  
if (this.\_root.content != “films/news/news.swf”) {  
this.\_root.content= “films/news/news.swf”;  
this.\_news.loadMovie(“films/news/newsscroll.swf”,\_root.news);  
}  
};

It would be even better if the newsscroller .swf loaded 2 secs after the news.swf is already on the stage, is that possible at all these days to do with Flash;)?

cheers and big thanks!
