Tracing a randomly loaded mc

I’ve looked at a bunch of tutorials, but they all have it set up so that the trace happens on an array. I haven’t made my randomly loaded mc based on an array. I’m afraid to start over. I need to do several things. 1. Of the 2 swf’s randomly loaded into movie clips, I need to know how many of each load up ( and add into the mix the two that are always loaded). 2. How many of each have been clicked on and dragged off to the right.

Here is the code in my movie clip in my swf
[AS]stop();
out_btn.onPress = function() {
_parent.startDrag();
r = 0
hog.eyeball_mc.gotoAndPlay(‘open’);
gotoAndPlay(‘rotateStart’);
}

out_btn.onRelease = function() {
_parent.stopDrag();
}

out_btn.onReleaseOutside = function() {
_parent.stopDrag();
}

[/AS]

Here is the code on the mainTimeline, except that there are a total of 8 empty movie clips that load the swf’s randomly.

[AS]stop();
//Create movie clip for 1 curly …there always needs to be
//at least one of each
_root.createEmptyMovieClip(“hedgehog1_mc”,2);
loadMovie(“1.swf”, “hedgehog1_mc”);
hedgehog1_mc._x = 70 ;
hedgehog1_mc._y = 210 ;

//create movie clip for one straight…there always needs to be
//at least one of each
_root.createEmptyMovieClip(“hedgehog2_mc”,3);
loadMovie(“0.swf”, “hedgehog2_mc”);
hedgehog2_mc._x = 110 ;
hedgehog2_mc._y = 215 ;

//create movie clip for the random 3rd, position
_root.createEmptyMovieClip(“hedgehog3_mc”,4);
hh = Math.round(Math.random()*1);
trace(“hh”)
loadMovie(hh+".swf", “hedgehog3_mc”);
hedgehog3_mc._x = 150 ;
hedgehog3_mc._y = 210 ;
[/AS]

Can someone point me in the direction I need to go? Should I be putting this part of the code in it’s own function and calling it from the each new movieclip? or should it go where I have suggested it in the code above?