Loading link image

Hi all

I create this script for to load an image dynamically.
Therefore I want click to this image as a link
The image is loaded but I can’t click it!
Where am I wrong?
thanks

createEmptyMovieClip(“photo”, 1);
photo.loadMovie(“img1.jpg”);
photo.onPress = function() {
//code
};