# I can't load an image, not sure what else to try

**URL:** <https://forum.kirupa.com/t/i-cant-load-an-image-not-sure-what-else-to-try/286689>\
**Category:** flash\
**Created:** [April 19, 2009, 2:28pm UTC](https://forum.kirupa.com/t/i-cant-load-an-image-not-sure-what-else-to-try/286689 "2009-04-19T14:28:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tibberous](https://avatars.discourse-cdn.com/v4/letter/t/cdc98d/32.png) [@tibberous](https://forum.kirupa.com/u/tibberous)\
**Post date:** [April 19, 2009, 2:28pm UTC](https://forum.kirupa.com/t/i-cant-load-an-image-not-sure-what-else-to-try/286689/1 "2009-04-19T14:28:33Z")

</div>

All I am trying to do is load an image. Here is my code:

```auto

	var loader:Loader = new Loader();
		
	function loadPhoto(id){
		trace('called');

		function loadComplete(e) {
			trace('Complete');
      		}
			
		loader.addEventListener(Event.COMPLETE, loadComplete);
		loader.load(new URLRequest("code.png"));
	}

```

It prints ‘called’ but never ‘Complete’ and it doesn’t throw any errors or warnings. I cut out a half page of code to narrow down my problem, and switched to a local png file, but it isn’t doing anything – not sure what else to try…

Am I missing something simple?
