Sliding all attached movieclips

I’ve searched, but can’t seem to figure this out.

I have an array that has many elements in 4 groups.

I am attaching a movieclip to the stage based on the amount of groups in the array (4 in this case).

Each movieclip has it’s own image and text etc. I have been able to get that far, I need help however, figuring out how to control all the attached movieclips as 1 group.

for example: I have 4 movieclips, I want to move all 4 of them at the same time. I tried a few things but have yet to figure it out.

any help would be greatly appreciated.

here’s my code:



//big array with all the required info
bands = [["band name", "album cover", "http://www.siteaddress.com"],
        ["band name", "album cover", "http://www.siteaddress.com"],
        ["band name", "album cover", "http://www.siteaddress.com"],
        ["band name", "album cover", "http://www.siteaddress.com"]];

//Starting x & y values
var xPos = -85;
var yPos = -5;


//For loop to attach a container movieclip and pass the array information
for (i=0; i<bands.length; i++) {
    
    //attach the container clip
    var album_covers = attachMovie("album_container", "album"+i, i, {_x:xPos, _y:yPos});
    
    //set a mask
    album_covers.setMask(masker);
    
    //increase the x postion each time
    xPos += this["album"+i]._width+5;
    
    //add the information
    this["album"+i].band.text = bands*[0];
    this["album"+i].attachMovie(bands*[1], "albums"+i, 0);
    this["album"+i].link = bands*[2];
    this["album"+i].onRollOver = function(){
        //this below is an animation plugin (mc_tween)
        this.scaleTo(120, .2, "easeOutQuint");
    }
    this["album"+i].onRollOut = function(){
        //this below is an animation plugin (mc_tween)
        this.scaleTo(100, .2, "easeInQuad");
    }

    //trace(bands*[2]);
    //trace(i);
    //trace(album_covers);
    //trace(["album"+i]);
    //numberBands = album_covers;
    
    album_scroll_arrow_LEFT.onRelease = function(){
        //gets the number amount of elements/movieclips ex. 4
        //trace(bands.length);
        //trace(["album"+i]);
        //this below is an animation plugin (mc_tween)
        album_covers.xSlideTo(400, 1, "easeOutQuad");
    }
    
}


so the album_scroll_arrow_LEFT button is trying to scroll the whole group as 1 element, but I haven’t figured out how to get it to work.

Thanks for any help.