# Getting Bytes from loaded MCs

**URL:** https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782
**Category:** Uncategorized
**Created:** [July 26, 2004, 6:14am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782 "2004-07-26T06:14:23Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![ratbaggy](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ratbaggy](https://forum.kirupa.com/u/ratbaggy)
#### Post date: [July 26, 2004, 6:14am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/1 "2004-07-26T06:14:23Z")

</div>

am wondering if it is possible to have the framework of a preloader in the \_root level.

if a movieclip is loaded (let’s say an external MC) can the preloader (on \_root) display progress/percentage of the MC currently being loaded? or does the preloader have to exist IN the loaded movie?

hope this makes sense. It is driving me crazy, but then there is always someone better than me…at actionscript.

cheers.

---

<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: [July 26, 2004, 8:56am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/2 "2004-07-26T08:56:51Z")

</div>

If I understand you correctly, I believe the answer is yes, preloaders can target externally loaded MCs. For example, the AS might look like:  
external\_movie.getBytesLoaded();  
external\_movei.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: [July 26, 2004, 9:26am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/3 "2004-07-26T09:26:47Z")

</div>

confirmed.

I’ve tried and failed to get a percentage/animated loader working with externals thus far.

any code from anywhere?

---

<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: [July 26, 2004, 9:27am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/4 "2004-07-26T09:27:32Z")

</div>

or anyone 😃

---

<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: [July 26, 2004, 9:46am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/5 "2004-07-26T09:46:46Z")

</div>

[http://home.comcast.net/~hongvoong/slideshow/slide.html](http://home.comcast.net/~hongvoong/slideshow/slide.html)  
if thats what your looking for, check out attachment.  
the code is really inefficient and dated since it was created when i first picked up flash. dont use my code specifically, just modify it so you can make it work for yourself.

---

<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: [July 26, 2004, 9:51am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/6 "2004-07-26T09:51:33Z")

</div>

cheers…looking now

---

<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: [July 26, 2004, 9:55am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/7 "2004-07-26T09:55:43Z")

</div>

spot on bobdoe

thanks muchly to you and your family 🙂

---

<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: [July 26, 2004, 11:19am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/8 "2004-07-26T11:19:21Z")

</div>

no prob ratbaggy. I feel really sorry for you since you have to read my code, its really ugly and somewhat hard to follow. I just looked at it myself and took a while to figure it out.

---

<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 3, 2004, 7:00am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/9 "2004-08-03T07:00:26Z")

</div>

i have it setup and works great but it seems like ven though i have loaded an external mc if i go back to the frame it re-preloades again like for the first time.

Any fix for this?

Thanks,  
Aaron

---

<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 3, 2004, 9:14am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/10 "2004-08-03T09:14:52Z")

</div>

I’m not sure I’m following what you mean aaron

---

<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 3, 2004, 9:56am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/11 "2004-08-03T09:56:46Z")

</div>

argh…can’t open it…can someone attach in flash mx version…he…he…

---

<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 3, 2004, 10:00am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/12 "2004-08-03T10:00:57Z")

</div>



---

<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 3, 2004, 10:06am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/13 "2004-08-03T10:06:10Z")

</div>

tq mr ratbaggy…

---

<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 3, 2004, 10:09am UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/14 "2004-08-03T10:09:47Z")

</div>

np

---

<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 3, 2004, 1:44pm UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/15 "2004-08-03T13:44:37Z")

</div>

if you go to [http://www.mojocompany.com/houstonian/vtour\_main.html](http://www.mojocompany.com/houstonian/vtour_main.html) it looks like it is loading the frame that calls the mc and reloads it even though it has already loaded it once.

it could just be me but is it doing that for you?

for the most part there are several frames that call different swf but i have left most of them the same for testing but it seems to be making you load each one even if you have already loaded it.

is it right or did i do somthing wrong?

Thanks for the help! 🙂  
Aaron

---

<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 3, 2004, 1:53pm UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/16 "2004-08-03T13:53:53Z")

</div>

well, the problem with the code is that it never really takes into account if the file was already loaded. Sometimes flash likes to show preloaders for a split second because I think the cpu does not recognized cached files as fast as you click. I think if you really want it to stop loading the same files, you would have to make up some dummy variables to test it.

---

<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 3, 2004, 2:25pm UTC](https://forum.kirupa.com/t/getting-bytes-from-loaded-mcs/58782/17 "2004-08-03T14:25:36Z")

</div>

Thanks for the info! 🙂

but i am not sure what you mean. i am really green when it comes to action script and learning alot for you all here. so any help would be greatly appreciated! 😉

Thanks again!  
Aaron

FYI This is a great community! Everyone is really nice and helps out everyone else! Dont find that too often so props out to you all!
