Bueno pues el problema es:
este MC se carga dentro de otro MC y el strip tiene accion sobre todo el eje X y yo solo quiero que tenga accion sobre los thumbnails [y no sobre en fondo negro (en este caso)], no a todo el ancho de mi sitio !! Crying or Very sad
Como puedo limitar este rango de accion en X ???
Cita:
Les dejo el .fla para que me entiendan mejor... _rapidshare.com/files/34929637/STRIPE.rar.htmlonClipEvent (load)
{
photoUrl = new Array("media_0", "media_1", "media_2", "media_3", "media_4", "media_5", "media_6");
photoWidth = new Array(441, 441, 441, 445, 445, 441, 441);
photoHeight = new Array(295, 295, 295, 295, 295, 295, 295);
ssteps = 1979;
_parent.hilitebox._visible = false;
}
onClipEvent (enterFrame)
{
if (this._ymouse < 0 || this._ymouse > 75)//ESTE ES EL RANGO DE Y
{
return;
} // end if
diff = _root._xmouse - 232;
speed = Math.round(diff / 5.300000E+001);
if (speed > 7)
{
speed = 9;
}
else if (speed < -7)
{
speed = -7;
} // end else if
this._x = this._x - speed;
if (speed > 0)
{
if (this._x < -305)
{
this._x = -305;
} // end if
}
else if (this._x > 50)
{
this._x = 50;
} // end else if
mouse_x = this._xmouse;
mouse_y = this._ymouse;
_parent.hilitebox._visible = false;
if (mouse_y > 0 && mouse_y < this._height)
{
for (i = 1; i <= 7; i++)
{
var slide = eval("slide_" + i);
if (mouse_x >= slide._x - slide._width / 2 && mouse_x < slide._x + slide._width / 2)
{
_parent.hilitebox._x = slide._x + this._x;
_parent.hilitebox._y = slide._y + this._y;
_parent.hilitebox._width = slide._width + 0;
_parent.hilitebox._height = slide._height + 0;
_parent.hilitebox._visible = true;
return;
} // end if
} // end of for
} // end if
}
{
photoUrl = new Array("media_0", "media_1", "media_2", "media_3", "media_4", "media_5", "media_6");
photoWidth = new Array(441, 441, 441, 445, 445, 441, 441);
photoHeight = new Array(295, 295, 295, 295, 295, 295, 295);
ssteps = 1979;
_parent.hilitebox._visible = false;
}
onClipEvent (enterFrame)
{
if (this._ymouse < 0 || this._ymouse > 75)//ESTE ES EL RANGO DE Y
{
return;
} // end if
diff = _root._xmouse - 232;
speed = Math.round(diff / 5.300000E+001);
if (speed > 7)
{
speed = 9;
}
else if (speed < -7)
{
speed = -7;
} // end else if
this._x = this._x - speed;
if (speed > 0)
{
if (this._x < -305)
{
this._x = -305;
} // end if
}
else if (this._x > 50)
{
this._x = 50;
} // end else if
mouse_x = this._xmouse;
mouse_y = this._ymouse;
_parent.hilitebox._visible = false;
if (mouse_y > 0 && mouse_y < this._height)
{
for (i = 1; i <= 7; i++)
{
var slide = eval("slide_" + i);
if (mouse_x >= slide._x - slide._width / 2 && mouse_x < slide._x + slide._width / 2)
{
_parent.hilitebox._x = slide._x + this._x;
_parent.hilitebox._y = slide._y + this._y;
_parent.hilitebox._width = slide._width + 0;
_parent.hilitebox._height = slide._height + 0;
_parent.hilitebox._visible = true;
return;
} // end if
} // end of for
} // end if
}
Muchas gracias por su ayuda !!!!!!!!!!!!!