loadMovie onLoad not working

I’ve got a button that loads an image into a container called myloader.

I’m using this actionscript:



on (release){
	
_root.myloader.loadMovie("2.jpg");

_root.myloader.onLoad = function(success) {
trace ("loaded");
}
}


The image loads but nothing traces in the output - whats going wrong?