_global.correa2 = false;
_global.correa3 = false;
_global.correa4 = false;
i = 1;
onMouseMove = function () {
if (_global["correa"+i] == true) {
this["boton"+i]._x += 8*(_xmouse*.90);
if (this["boton"+i]._x>=0) {
this["boton"+i]._x = 0;
}
}
if (_global["correa"+i] == false) {
this["boton"+i]._x += 2*(_xmouse*.10)*(-1);
if (this["boton"+i]._x<=-185.9) {
this["boton"+i]._x = -185.9;
}
}
i++;
if (i>=5) {
i = 1;
}
/* Esto no sale en el ejemplo
this.disco._x = _xmouse;
this.disco._y = _ymouse;
this.disco._rotation = random(360);
this.light._rotation = _xmouse*360/_ymouse*36.;
this.light.setInstanceTint(0xfff700, 100);*/
};
stop();
A esto sumenle 4 botones
//Boton 1
on (rollOut) {
_global.correa1 = false;
}
on (rollOver) {
_global.correa1 = true;
//Boton 2
on (rollOut) {
_global.correa2 = false;
}
on (rollOver) {
_global.correa2 = true;
//Boton 3
on (rollOut) {
_global.correa3 = false;
}
on (rollOver) {
_global.correa3 = true;
//Boton 4
on (rollOut) {
_global.correa4 = false;
}
on (rollOver) {
_global.correa4 = true;
www.vizaprom.com/flash/intro_CLAB.fla
www.vizaprom.com/flash/intro_CLAB.swf
