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

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


	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?