I am using MX 2004 and here is what I am trying to do.

I have a scrollPane that has thumbnails that load via a MC. I would like to have the thumbnails (onPress) load a jpg onto the satge. Each time a thumbnail is pressed, a new image will be place (higher that the last image onto the stage. Each image on stage needs to be able to be dragable.

Here is the code I have put together so far without any luck. Can anyone help me out with the code to get it to work?

addPicture_btn.onPress = function() {

this.createEmptyMovieClip("outer_mc", 1); // create one empty MC
var newDepth = outer_mc.getNextHighestDepth(); // puts new MC on next higher level
this.outer_mc.createEmptyMovieClip("inner_mc", 1); // creates new MC inside of outer MC
outer_mc.inner_mc.loadMovie("001.jpg", newDepth); // loads jpg into inner MC
outer_mc._x = 10;
outer_mc._y = 20;
outer_mc.onPress = function(){
outer_mc.onRelease = function(){