Hello… could anyone help me here…
I would like to double the size of the graphics in this nice easing navigation.
what do i have to tell the action script to succeed in repositioning the contents?
Stage.scaleMode = "noScale";
this.createEmptyMovieClip("centerPoint", depth++);
centerPoint._x = sectionContainer.section1._x;
centerPoint._y = sectionContainer.section1._y;
var paddingX = sectionContainer._x;
var paddingY = sectionContainer._y;
function easeTo(sectionNumber) {
var sX = sectionContainer[sectionNumber]._x;
var sY = sectionContainer[sectionNumber]._y;
var endX = centerPoint._x-sX+paddingX;
var endY = centerPoint._y-sY+paddingY;
sectionContainer.onEnterFrame = function() {
this._x += (endX-this._x)/2;
this._y += (endY-this._y)/2;
};
}
for (var i = 1; i<=4; i++) {
this["button"+i].goSection = "section"+i;
this["button"+i].onRelease = function() {
easeTo(this.goSection);
};
}