You can make it self contained and send values as arguments to make it flexible for other situations where you need this with other clips:
PHP Code:
function moveFlexible( sIDName:String, nDistanceX:int, nDistanceY:int, nNumberToMove:int, mcTarget:MovieClip ) : void {
// default to _root if no target mc specified
mcTarget = mcTarget == undefined ? _root : mcTarget;
// loop through the clips and apply co-ordinate changes
for( var i:int = 1; i <= nNumberToMove; i++ ) {
mcTarget[ sIDName + i ]._x += nDistanceX;
mcTarget[ sIDName + i ]._y += nDistanceY;
}
}
moveFlexible( "block", 10, 0, 5, _root );
RipX