# Load file into movieclip as soon as homepage is entered?

**URL:** <https://forum.kirupa.com/t/load-file-into-movieclip-as-soon-as-homepage-is-entered/118323>\
**Category:** Uncategorized\
**Created:** [August 4, 2004, 2:56pm UTC](https://forum.kirupa.com/t/load-file-into-movieclip-as-soon-as-homepage-is-entered/118323 "2004-08-04T14:56:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soma](https://avatars.discourse-cdn.com/v4/letter/s/aca169/32.png) [@Soma](https://forum.kirupa.com/u/Soma)\
**Post date:** [August 4, 2004, 2:56pm UTC](https://forum.kirupa.com/t/load-file-into-movieclip-as-soon-as-homepage-is-entered/118323/1 "2004-08-04T14:56:37Z")

</div>

Hi, Im using this piece of code for my menubuttons:

on (release) {  
\_root.[color=red]name-of-empty-movieclip[/color].loadMovie("[color=red]name-of-external-flash.[/color]swf");  
}

I’m using it to load external flash-movies into an empty movieclip. It all works very well, but I now need an external flashfile to be loaded as soon as you enter the website and not when u push a button. how can I make this work ? help anyone, plz 🙂

regards, soma

---

<div class="post-metadata">

**Author:** ![bobdoe](https://avatars.discourse-cdn.com/v4/letter/b/51bf81/32.png) [@bobdoe](https://forum.kirupa.com/u/bobdoe)\
**Post date:** [August 4, 2004, 4:11pm UTC](https://forum.kirupa.com/t/load-file-into-movieclip-as-soon-as-homepage-is-entered/118323/2 "2004-08-04T16:11:29Z")

</div>

umm…take out the on(release) handler and put that code on a frame on the root timeline.
