_root[myPic].onPress?

My Code:


//Pic Number
var picNumber:Number = 1;
preload.onLoadComplete = function(targetMC:MovieClip) {
    hideLoad();
    var myPic = "pic"+picNumber+"_mc";
    /*var myImg = "pic"+picNumber+".png";*/
    targetMC.active = true;
    targetMC._alpha = 50;
    targetMC.onRelease = function() {
        if(this.active == true) {
            /*_root.attachMovie("myPic", myPic, _root.getNextHighestDepth());*/
            _root.createEmptyMovieClip(myPic, _root.getNextHighestDepth());
            loadMovie("pics/pic1.png", _root[myPic]);
            
            _root[myPic].onPress = function() {
                trace("Draggin!");
                startDrag(this);
            };
            
            _root[myPic].onRelease = function() {
                stopDrag();
            };
            targetMC.active = false;
            targetMC._alpha = 100;
        }
        else {
            _root[myPic].removeMovieClip();
            targetMC.active = true;
            targetMC._alpha = 50;
        }
    }
    picNumber++;
    play();
};

I’m loading an external swf fine etc etc - But how do I attach the


onPress = function() {
                trace("Draggin!");
                startDrag(this);
            };
            
            onRelease = function() {
                stopDrag();
            };

Into the “myPic” created movieclip so that it can drag :D?

Please help :D?