# Loading external images

**URL:** <https://forum.kirupa.com/t/loading-external-images/261448>\
**Category:** Uncategorized\
**Created:** [May 27, 2008, 7:11pm UTC](https://forum.kirupa.com/t/loading-external-images/261448 "2008-05-27T19:11:42Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![flashjones](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@flashjones](https://forum.kirupa.com/u/flashjones)\
**Post date:** [May 27, 2008, 7:11pm UTC](https://forum.kirupa.com/t/loading-external-images/261448/1 "2008-05-27T19:11:42Z")

</div>

I am trying to load external images and .swf’s for the first time and was wondering if anyone had any tips, or tutorials they could send my way. I am working with large imagery inside a flash banner animation and I know there has to be a quicker way to get them to load.

---

<div class="post-metadata">

**Author:** ![flashjones](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@flashjones](https://forum.kirupa.com/u/flashjones)\
**Post date:** [May 27, 2008, 9:11pm UTC](https://forum.kirupa.com/t/loading-external-images/261448/2 "2008-05-27T21:11:45Z")

</div>

But what is the actionscript I would use to make that possible?

---

<div class="post-metadata">

**Author:** ![Skarab](https://avatars.discourse-cdn.com/v4/letter/s/ba8739/32.png) [@Skarab](https://forum.kirupa.com/u/Skarab)\
**Post date:** [May 27, 2008, 9:56pm UTC](https://forum.kirupa.com/t/loading-external-images/261448/3 "2008-05-27T21:56:27Z")

</div>

Create an empty movie clip and position it where you want the external file to load. The little crosshair symbol of the empty mc represents the top left corner.

In your AS use loadMovie, specify the empty mc by its instance name, and specify the path to the file as described by WhiteRau.

You can also specify the level to load it into with loadMovieNum, but that may be more than you need to know.

---

<div class="post-metadata">

**Author:** ![sparkdemon](https://avatars.discourse-cdn.com/v4/letter/s/958977/32.png) [@sparkdemon](https://forum.kirupa.com/u/sparkdemon)\
**Post date:** [May 28, 2008, 7:21pm UTC](https://forum.kirupa.com/t/loading-external-images/261448/4 "2008-05-28T19:21:31Z")

</div>

use moviecliploader:

var mcLoader=new MovieClipLoader();  
var mcListener=new Object();

mcListener.onLoadInit=function()  
{

}

mcLoader.addListener(mcListener);  
mcLoader.loadClip(“imagepath”);

---

<div class="post-metadata">

**Author:** ![flashjones](https://avatars.discourse-cdn.com/v4/letter/f/dfb087/32.png) [@flashjones](https://forum.kirupa.com/u/flashjones)\
**Post date:** [May 31, 2008, 9:56pm UTC](https://forum.kirupa.com/t/loading-external-images/261448/5 "2008-05-31T21:56:40Z")

</div>

I am trying that by using the following in a blank keyframe. And it is not working, if my instance name is martini should I be starting it with martini.Loadmovie or something like that?

stop();  
var mcLoader=new MovieClipLoader();  
var mcListener=new Object();

mcListener.onLoadInit=function()  
{

}

mcLoader.addListener(mcListener);  
mcLoader.loadClip("./images/martini.jpg");

---

<div class="post-metadata">

**Author:** ![alchris](https://avatars.discourse-cdn.com/v4/letter/a/bbe5ce/32.png) [@alchris](https://forum.kirupa.com/u/alchris)\
**Post date:** [June 1, 2008, 12:43am UTC](https://forum.kirupa.com/t/loading-external-images/261448/6 "2008-06-01T00:43:58Z")

</div>

[http://www.senocular.com/flash/tutorials/preloading/](http://www.senocular.com/flash/tutorials/preloading/)

[http://www.kirupa.com/developer/mx2004/transitions.htm](http://www.kirupa.com/developer/mx2004/transitions.htm)

Here is a couple of great tutorials.

hope it helps.
