Loading images into target on the main stage from a clip

Hi,

I have an infinite menu displaying thumbnails of some larger images I would like to display on my main stage in a target destination but, for some reason, I cant get the images to load up.

I have followed the following steps:

  1. created a hotspots over each thumb in the infinite menu
  2. labeled each instance of the hotspot (eg. but1)
  3. attached the following code in the timeline:

but1.onPress = function() {
_root.createEmptyMovieClip(“container”, 1);
loadMovie(“http://www.myurl.com/images/image1.jpg”, “container”);
container._x = 240;
container._y = 27;
};

If anyone can offer some advice I would greatly appreciate it.

Thank you kindly.

Michael