# How to load en external.swf into certain frame of the empty\_mc?

**URL:** <https://forum.kirupa.com/t/how-to-load-en-external-swf-into-certain-frame-of-the-empty-mc/195623>\
**Category:** flash\
**Created:** [August 1, 2006, 11:43pm UTC](https://forum.kirupa.com/t/how-to-load-en-external-swf-into-certain-frame-of-the-empty-mc/195623 "2006-08-01T23:43:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![foxandsoul](https://avatars.discourse-cdn.com/v4/letter/f/0ea827/32.png) [@foxandsoul](https://forum.kirupa.com/u/foxandsoul)\
**Post date:** [August 1, 2006, 11:43pm UTC](https://forum.kirupa.com/t/how-to-load-en-external-swf-into-certain-frame-of-the-empty-mc/195623/1 "2006-08-01T23:43:38Z")

</div>

[FONT=Times New Roman][SIZE=3]I need my external.swf start loading with the delay while pressing the same button. [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]I use the following script for my button ( the buttons are in the movie clip - buttons):[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[SIZE=3][FONT=Times New Roman]on (release) {[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman] this.createEmptyMovieClip(“empty”,99)[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman] }[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]on (release) {[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman] if (\_root.intro.\_currentframe\>=39) {[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman] \_root.empty.loadMovie(“external.swf”);[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman] }[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]}[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]on (release) {[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman] if (\_root.intro.\_currentframe\<=37) {[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman] \_root.empty.gotoAndPlay(1);[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman] }[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]}[/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3][/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]and this one on the on the 42 frame of empty movie clip timeline:[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[SIZE=3][FONT=Times New Roman]onEnterFrame(42);{[/FONT][/SIZE]  
[SIZE=3][FONT=Times New Roman]\_root.empty.loadMovie(“external.swf”)[/FONT][/SIZE]  
[FONT=Times New Roman][SIZE=3]}[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3] [/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]But I need to use the same 42 frame for the other buttons to load other external.swf files. Is there is a possibility to make a code which I can apply to my button and which will load my external.swf in the 42 frame of the empty movie clip and wait for 42 frame to play it?[/SIZE][/FONT]  
[FONT=Times New Roman][SIZE=3]Thank you in advance.[/SIZE][/FONT]
