# How to play flash within a flash?

**URL:** <https://forum.kirupa.com/t/how-to-play-flash-within-a-flash/991>\
**Category:** flash\
**Created:** [August 5, 2002, 8:56pm UTC](https://forum.kirupa.com/t/how-to-play-flash-within-a-flash/991 "2002-08-05T20:56:25Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonathanhe](https://avatars.discourse-cdn.com/v4/letter/j/cab0a1/32.png) [@jonathanhe](https://forum.kirupa.com/u/jonathanhe)\
**Post date:** [August 5, 2002, 8:56pm UTC](https://forum.kirupa.com/t/how-to-play-flash-within-a-flash/991/1 "2002-08-05T20:56:25Z")

</div>

How can I play a flash file inside another flash?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 5, 2002, 9:03pm UTC](https://forum.kirupa.com/t/how-to-play-flash-within-a-flash/991/2 "2002-08-05T21:03:34Z")

</div>

Well you can import the .swf file directly into your .fla that you are currently working on or you can import the file into another .swf during runtime using loadMovie(); but which one do you prefer?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 5, 2002, 9:10pm UTC](https://forum.kirupa.com/t/how-to-play-flash-within-a-flash/991/3 "2002-08-05T21:10:32Z")

</div>

Thanks a lot!

Actually, I am building a website using Flash. And I don’t want  
to put every page in a single flash file because I am don’t wanna  
get a big file in the end. So I save each page into a flash file  
and would like to play it in the mainframe.

Will LoadMovie() do a good job on this?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 5, 2002, 9:18pm UTC](https://forum.kirupa.com/t/how-to-play-flash-within-a-flash/991/4 "2002-08-05T21:18:07Z")

</div>

**loadMovie();** will do exactly what you want, refer to this kirupa tutorial for help on using this built-in function:

[http://www.kirupa.com/developer/mx/loading.asp](http://www.kirupa.com/developer/mx/loading.asp)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 5, 2002, 9:51pm UTC](https://forum.kirupa.com/t/how-to-play-flash-within-a-flash/991/5 "2002-08-05T21:51:18Z")

</div>

Thank you so much for pointing me to the tutorial, Dan!

A simple but confusing question:

Does it make sense to put each page in different flash file  
in order to increase download speed? Or is there any other  
way of achieving this dynamic loading techques while putting  
everything in one big .swf file?

Thanks again!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 5, 2002, 10:17pm UTC](https://forum.kirupa.com/t/how-to-play-flash-within-a-flash/991/6 "2002-08-05T22:17:57Z")

</div>

If all the movies are in one .fla file then you can have one preloader, if you have the movies imported into the .swf during runtime then each movie can have its own preloader (like [2advanced.com](http://2advanced.com)) but that is only needed with huge contented sites or ones with large animations and graphics. So it all depends on the file size and key audience!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [August 6, 2002, 12:42pm UTC](https://forum.kirupa.com/t/how-to-play-flash-within-a-flash/991/7 "2002-08-06T12:42:03Z")

</div>

Thanks a lot, Dan! You really help me so much!
