talacho escribió:
hola buenas tardes, tengo un pequeño problema.
Estoy diseñando un sitio de modelos el cual lleva un galeria en flash. Cada modelo tiene si galeria y dentro de ella un scroll que contiene los thumbs para visualizar las fotos. La duda entra en no se como llamar lar fotos desde el scroll
<
www.quemonitos.com/site/modelos.html > puesto que las fotos estan distribuidas en frames y los thumbs dentro del scroll, espero y me ayuden.
aqué el código:
// SET Y INITIAL POSITION
targX = 0;
// SET THE INITIAL POSIZION OF THE SCROLLER X
dragger._x = mask._height;
// DRAG FUNCTION
scroller.onPress = function() {
startDrag(this, false, this._x, mask._width - this._width, mask._width - this._width, this._x);
};
// END DRAG
scroller.onRelease = scroller.onReleaseOutside=function () {
stopDrag();
};
// MANAGE THE MOVEMENTS THAT CONTENT SHOULD DO
content.onEnterFrame = function() {
// CALCULATE THE MOVEMENT THE CONTENT WILL DO
movement = (this._width-(mask._width/0.6))/(mask._width-scroller._width);
// RE REST THE Y POSITION
targX = -scroller._x * movement;
// INCREASE OR DECREASE THE NUMBER "7" TO MOVE THE CONTENT FASTER OR SLOWER
this._x -= (this._x-targX)/7;
};
stop();