# Loading pictures from external url

**URL:** https://forum.kirupa.com/t/loading-pictures-from-external-url/28657
**Category:** Uncategorized
**Created:** [August 16, 2003, 6:29am UTC](https://forum.kirupa.com/t/loading-pictures-from-external-url/28657 "2003-08-16T06:29:39Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![cardjorg](https://avatars.discourse-cdn.com/v4/letter/c/a183cd/32.png) [@cardjorg](https://forum.kirupa.com/u/cardjorg)
#### Post date: [August 16, 2003, 6:29am UTC](https://forum.kirupa.com/t/loading-pictures-from-external-url/28657/1 "2003-08-16T06:29:39Z")

</div>

Hi guys ,  
do any of you know if its posible to load a picture from a webpage to a swf like to click on a button and then the picture from a webpage to load in to the swf

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: [August 16, 2003, 7:55am UTC](https://forum.kirupa.com/t/loading-pictures-from-external-url/28657/2 "2003-08-16T07:55:55Z")

</div>

No problem, the only condition is that the image is a JPG file. Then use this:

[AS]  
on(release){  
\_root.holder.loadMovie(“[http://www.whatever.com/image.jpg](http://www.whatever.com/image.jpg)”);  
}  
[/AS]  
… where holder is a movieclip at root to load the image in.

---

<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 16, 2003, 7:58am UTC](https://forum.kirupa.com/t/loading-pictures-from-external-url/28657/3 "2003-08-16T07:58:18Z")

</div>

thanks a lot!!!

---

<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 16, 2003, 8:00am UTC](https://forum.kirupa.com/t/loading-pictures-from-external-url/28657/4 "2003-08-16T08:00:45Z")

</div>

You’re welcome 🙂

---

<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 16, 2003, 8:24am UTC](https://forum.kirupa.com/t/loading-pictures-from-external-url/28657/5 "2003-08-16T08:24:32Z")

</div>

> _Originally posted by Voetsjoeba_  
> **No problem, the only condition is that the image is a JPG file.**

A non-progressive JPEG, to be exact. 😉

---

<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 16, 2003, 8:27am UTC](https://forum.kirupa.com/t/loading-pictures-from-external-url/28657/6 "2003-08-16T08:27:21Z")

</div>

and is it posible to do the same thing but instead of a picture a webpapage like [www.chase3000.com](http://www.chase3000.com) ?

---

<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 16, 2003, 8:38am UTC](https://forum.kirupa.com/t/loading-pictures-from-external-url/28657/7 "2003-08-16T08:38:08Z")

</div>

Right kax _sigh_ ;)😛

Every picture on the internet is stored on a server and has a URL. The URL (Uniform Resource Locator) is what you need to get the image in Flash. In my example, [http://www.whatever.com/image.jpg](http://www.whatever.com/image.jpg) is the URL to the image. Now to know the URL of the image you want, go to the site it’s on, right click the image and choose Properties. The Properties window will pop up. In this window you can read the URL. Fill it in in the AS and you’re done 🙂
