# Load external link and jpeg from txt

**URL:** https://forum.kirupa.com/t/load-external-link-and-jpeg-from-txt/291744
**Category:** flash
**Created:** [July 4, 2009, 1:03pm UTC](https://forum.kirupa.com/t/load-external-link-and-jpeg-from-txt/291744 "2009-07-04T13:03:59Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Matt\_da\_best](https://avatars.discourse-cdn.com/v4/letter/m/90db22/32.png) [@Matt\_da\_best](https://forum.kirupa.com/u/Matt_da_best)
#### Post date: [July 4, 2009, 1:03pm UTC](https://forum.kirupa.com/t/load-external-link-and-jpeg-from-txt/291744/1 "2009-07-04T13:03:59Z")

</div>

[FONT=Arial]I am developing a template for a website and I need help.[/FONT]

[FONT=Arial]I am trying to load an image into a movieclip and a link for a button from a text file. How would I do this?[/FONT]

[FONT=Arial]The text file looks like this:[/FONT]

```auto

&imageURL=http://www.domain.com/images/picture.jpg
&linkURL=http://www.domain.com/link.jpg

```

With a code like this or something?:

```auto
var photo:LoadVars = new LoadVars();
photo.load("photo_text.txt");
loadMovie("&image", carousel.photo.empty);

```

and

```auto
 
on (release) {
 getURL("&linkURL", "_blank");
}

```

but this didnt work. Please help :pac:
