el codigo es este:
CODIGO DEL PRIMER FRAME
numberOfOptions = 5;
CODIGO DEL MOVICLIP DE LA LINEA PRINCIPAL
onClipEvent (load) {
initialScale = int(Math.random()*50)+75;
this._xscale = initialScale;
this._yscale = initialScale;
scaleInterval = 3;
}
onClipEvent (enterFrame) {
modifier = this._xscale/100;
this._x+=(_root.distance/50)*modifier;
if (this._x > 375) {
this._x = -75;
} else if (this._x <-75) {
this._x = 375;
}
if (scaledUp == 1 && this._xscale<=scaleTarget) {
this._xscale += scaleInterval;
this._yscale += scaleInterval;
} else if (scaledUp == 0 && this._xscale>=scaleTarget) {
this._xscale -= scaleInterval;
this._yscale -= scaleInterval;
}
}
CODIGO DEL BOTON
on (release) {
if (scaledUp ne 1) {
scaleTarget = this._xscale*3;
scaledUp = 1;
} else if (scaledUp == 1) {
scaleTarget = initialScale;
scaledUp = 0;
}
for (var i = 0; i<_root.numberOfOptions; i++) {
if (_root["option"+i] ne this) {
_root["option"+i].scaledUp = 0;
_root["option"+i].scaleTarget = _root["option"+i].initialScale;
}
}
}
este efecto se ve tan solo a 300x200 mas o menos y yo quisiera que ocupe todo el ancho de una pelicula de 970x655 o cualquier otro tamaño que a mi se me antoje pero por mas que yo toque el action script este no se modifica y la pelicula en una hoja grande se ve mal ya que el efecto no barca todo el alto o el ancho del escenario
desde ya muchas gracias
renzo665
