# Preload SWF + external images

**URL:** https://forum.kirupa.com/t/preload-swf-external-images/144775
**Category:** Uncategorized
**Created:** [April 17, 2005, 3:03am UTC](https://forum.kirupa.com/t/preload-swf-external-images/144775 "2005-04-17T03:03:12Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ghjr](https://avatars.discourse-cdn.com/v4/letter/g/dec6dc/32.png) [@ghjr](https://forum.kirupa.com/u/ghjr)
#### Post date: [April 17, 2005, 3:03am UTC](https://forum.kirupa.com/t/preload-swf-external-images/144775/1 "2005-04-17T03:03:12Z")

</div>

Ok, I’m in need of some advice here. Let’s say I have the following situation… a SWF that will serve as the main movie for the site. Inside this SWF, I have a script that loads a JPG into a holder MC that’s on stage. So basically it’s like this:

- main.fla  
– holder\_mc (this isn’t an empty MC, it has some PNG’s inside)  
— external JPG loaded in by loadMovie

I’m ok with building a preloader for the holder\_mc and the rest of the FLA (without the size info of the external JPG), but how would I incorporate the size of the external JPG into my initial preloader before I actually start playing everything.

Would I have to set the holder\_mc visibility to false, call the loadMovie, initiate the preload, and then set visibility back to true. There’s gotta be a better way? 😉

Cheers!
