# Really easy question

**URL:** <https://forum.kirupa.com/t/really-easy-question/14395>\
**Category:** flash\
**Created:** [February 25, 2003, 8:44pm UTC](https://forum.kirupa.com/t/really-easy-question/14395 "2003-02-25T20:44:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Freddythunder](https://avatars.discourse-cdn.com/v4/letter/f/8edcca/32.png) [@Freddythunder](https://forum.kirupa.com/u/Freddythunder)\
**Post date:** [February 25, 2003, 8:44pm UTC](https://forum.kirupa.com/t/really-easy-question/14395/1 "2003-02-25T20:44:14Z")

</div>

Hey-

I have made a flash movie that loads different swf into a movie clip. As always, I didn’t think ahead and didn’t put in preloaders. I have made my preloader in a different fla/swf. Is there and easy way to load this seperate fla into a diffent scene so I don’t have to cut and paste every frame and layer one at a time?  
If not, I’ll be doing a lot of cutting and pasting, I guess.

Thanks!!  
(-:

---

<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:** [February 25, 2003, 10:09pm UTC](https://forum.kirupa.com/t/really-easy-question/14395/2 "2003-02-25T22:09:56Z")

</div>

What’s preventing you from loading the preloader into the presumably blank mc then having the preloader call the external .swf into itself (i.e. the blank mc)?

Later,  
–Elios

---

<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:** [February 25, 2003, 10:12pm UTC](https://forum.kirupa.com/t/really-easy-question/14395/3 "2003-02-25T22:12:18Z")

</div>

Good idea!

I’ll try that!

---

<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:** [February 25, 2003, 10:25pm UTC](https://forum.kirupa.com/t/really-easy-question/14395/4 "2003-02-25T22:25:43Z")

</div>

Okay, I tried it. I couldn’t figure it out. Now, how do I connect the new swf to the preloader so it can read  
\_root.getBytesTotal();?

---

<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:** [February 25, 2003, 10:30pm UTC](https://forum.kirupa.com/t/really-easy-question/14395/5 "2003-02-25T22:30:09Z")

</div>

Alright, look at that statement:

```php

_root.getBytesTotal();

```

Now, logically, what does that mean? Get the total bytes FROM the root (so whatever you’re main .swf is). You don’t want that, now do you. You want the total bytes loaded from where ever you are loading the external .swf into (the movie clip), right? So, find the instance name (I usually use blank) and, if you don’t have one give it one, try…

```php

//root -> movie clip instance -> function
_root.blank.getBytesTotal();

```

Later,  
–Elios

p.s. you can also check out  
[http://www.kirupaforum.com/showthread.php?s=&threadid=15139](http://www.kirupaforum.com/showthread.php?s=&threadid=15139) for preloader code that works.

---

<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:** [February 25, 2003, 11:36pm UTC](https://forum.kirupa.com/t/really-easy-question/14395/6 "2003-02-25T23:36:34Z")

</div>

Now I’m even more lost than I was before. can’t I put a preloader on each individual swf that needs to be loaded so the preloader will appear where the movie is going to (in the MC).

My preloader code and everything works fine. I can tell for sure becuase I hit Ctrl+Enter twice and see the preloader working. When I hit the button to load the new movie, I don’t see it in the MC. Hmm.

I tried \_root.entermovie.getBytesLoaded(); and it did nothing different. Now that’s with the preloader in the incoming swf. Is the preloader code in the wrong spot?

Any help will help…:hangover:

---

<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:** [February 25, 2003, 11:37pm UTC](https://forum.kirupa.com/t/really-easy-question/14395/7 "2003-02-25T23:37:53Z")

</div>

Mind posting your fla?

Later,  
–Elios

---

<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:** [February 26, 2003, 1:17am UTC](https://forum.kirupa.com/t/really-easy-question/14395/8 "2003-02-26T01:17:41Z")

</div>

Okay - The first one ‘dl’ is the main movie that is supposed to load. It has its own preloader. The second one ‘lamp.swf’ which also has its own preloader.

The first button on the menu will load up ‘lamp.swf’ into MC ‘entermovie’. Good luck - thanks for the help!

(-:

[http://busineplex.com/fred/test/dl.fla](http://busineplex.com/fred/test/dl.fla)  
[http://busineplex.com/fred/test/lamp.fla](http://busineplex.com/fred/test/lamp.fla)

Here are the two above from the net (w/o HTML):

[http://busineplex.com/fred/test/dl.swf](http://busineplex.com/fred/test/dl.swf)
