//define number of layer. var layer = 1; //number of items in a layer var items = 1; //create the bg that holds the layers this.createEmptyMovieClip("bgHolder", this.getNextHighestDepth()); //this function will update the layers current position function updateMovies() { //easingStrenth d = 10; this.x = _root._xmouse; this.y = _root._ymouse; //get the linear relation fo x. var coef = (Stage.width-this._width)/Stage.width; //update x with easing. this._x -= (this._x-coef*this.x)/d; //get the linear relation fo y. coef = (Stage.height-this._height)/Stage.height; //update y with easing. this._y -= (this._y-coef*this.y)/d; } //init function for the layers function init() { for (i=0; i