JavaScript » Layer » moveBy

Syntax:
layer.moveBy(horizPixels, vertPixels)

This method is used to move the layer a specified number of pixels in relation to its current co-ordinates.