# Dynamically Loading Images

**URL:** <https://forum.kirupa.com/t/dynamically-loading-images/63397>\
**Category:** flash\
**Created:** [September 6, 2004, 1:02pm UTC](https://forum.kirupa.com/t/dynamically-loading-images/63397 "2004-09-06T13:02:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ninja\_Munky](https://avatars.discourse-cdn.com/v4/letter/n/bbe5ce/32.png) [@Ninja\_Munky](https://forum.kirupa.com/u/Ninja_Munky)\
**Post date:** [September 6, 2004, 1:02pm UTC](https://forum.kirupa.com/t/dynamically-loading-images/63397/1 "2004-09-06T13:02:03Z")

</div>

Hey, I’m having some trouble with dynamically loading images. I just want to load one, plain and simple. Just… doesn’t seem to be working for me. Could someone make me an example of this and just have the image load onto a plain background?? Help on this would be much appreciated.

---

<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:** [September 6, 2004, 1:32pm UTC](https://forum.kirupa.com/t/dynamically-loading-images/63397/2 "2004-09-06T13:32:44Z")

</div>

Do you mean an image loading from the server? An image from an array, xml array, activated by a button? There are just tons of tuts about this such as…

[http://www.kirupa.com/developer/mx2004/xml\_flash\_photogallery.htm](http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm)

easily modifiable stuff.

---

<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:** [September 6, 2004, 4:34pm UTC](https://forum.kirupa.com/t/dynamically-loading-images/63397/3 "2004-09-06T16:34:43Z")

</div>

Yeah, I just mean one that will sit in the same directory as the flash file and when I change the file, it changes what the flash file displays. I might be able to do it with one of those tutorials though. Thanks for the help, might need more though… heh.

---

<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:** [September 7, 2004, 2:54am UTC](https://forum.kirupa.com/t/dynamically-loading-images/63397/4 "2004-09-07T02:54:32Z")

</div>

I’m having the same problem. I want to be able to externally load a .jpg and I just can’t get it to work.

I can load .swf files in there fine. However, when I change the name of the file along with the extension, then run it, no error messages come up, but the .jpg image doesn’t appear!

Here’s the .fla to show what I’m talking about.

Just place an image called webcam.jpg in the same directory, it doesn’t matter what image it is, (at least i don’t think???)

Thanks in advance (really should make that my footer…)

Edit--------------------------------  
I used a different .jpg and it worked just fine. However, I need it to work using a .jpg image like the one below. It’s an image taken by a webcam and uploaded to a server, and its regularly overwritten. I redownloaded it and used it because thats the image I would be using, (it would change over time actually…)  
 ![](http://www.nickpettit.com/site/webcam/webcam.jpg)

---

<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:** [September 7, 2004, 3:02am UTC](https://forum.kirupa.com/t/dynamically-loading-images/63397/5 "2004-09-07T03:02:22Z")

</div>

Nevermind! I fixed it… strange, I just switched out the .jpg image and it worked perfectly…

---

<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:** [September 8, 2004, 4:02am UTC](https://forum.kirupa.com/t/dynamically-loading-images/63397/6 "2004-09-08T04:02:01Z")

</div>

the image can’t be a progressive jpeg. that is problaby the problem that you are having
