# SWF loads images while Flash open, but not in standalone player or browser?

**URL:** <https://forum.kirupa.com/t/swf-loads-images-while-flash-open-but-not-in-standalone-player-or-browser/257087>\
**Category:** Uncategorized\
**Created:** [April 10, 2008, 2:56am UTC](https://forum.kirupa.com/t/swf-loads-images-while-flash-open-but-not-in-standalone-player-or-browser/257087 "2008-04-10T02:56:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![REEF](https://avatars.discourse-cdn.com/v4/letter/r/ce73a5/32.png) [@REEF](https://forum.kirupa.com/u/REEF)\
**Post date:** [April 10, 2008, 2:56am UTC](https://forum.kirupa.com/t/swf-loads-images-while-flash-open-but-not-in-standalone-player-or-browser/257087/1 "2008-04-10T02:56:43Z")

</div>

```auto
myurl = "";
loadVARS = new LoadVars();
loadVARS.onLoad = function(success) {
	if (success) {
		myurl = loadVARS.img;
        img_container.loadMovie(myurl);
	} else {
		trace("FAILED");
	}
};
loadVARS.load("C:\\Documents and Settings\\reefolus\\Desktop\\Image Load\\IMAGEURL.txt");

```

Whats going on here? I open IMAGEURL.txt, which contains a variable named “img” with a value in it. I call that value and set it to myurl. Then, I load myurl’s image into img\_container.

This works when I test the swf while flash open, but not while I test in the standalone swf thats exported on my computer, or on a browser. Something about internet settings came up as well, til I published to “allow network only”.

Anyways, how to fix???
