Comunidad de diseño web y desarrollo en internet online

Problemas con un Scroll

Citar            
MensajeEscrito el 01 Feb 2007 03:29 pm
Tengo 4 Capas:

Capa 1: tengo un MC con una Imagen (tabla grafica), de nombre de instancia "windows".

Capa 2: la mascara del MC "windows".

Capa 3: Scroll con 3 Botones: "Arriba" - "Abajo" - "Barra Deslizadora"( este boton esta dentro de un MC de nombre "scroller").

Capa 4: tiene el siguiente Codigo: length = 216;

Codigos:

- el MC "windows":


onClipEvent (load) {
_root.nullpos = _y;
}


- El Boton "Arriba":

on (press) {
if (_root.scroller._y-30*_root.koeficient>_root.top) {
_root.scroller._y -= 30*_root.koeficient;
_root.window._y += 30;
} else {
_root.scroller._y = _root.top;
}
}


- El Boton "Abajo":

on (press) {
if (_root.scroller._y+30*_root.koeficient<_root.botto m) {
_root.scroller._y += 30*_root.koeficient;
_root.window._y -= 30;
} else {
_root.scroller._y = _root.bottom;
}
}


- El MC "scroller" (boton Barra Deslizadora):

onClipEvent (load) {
_root.koeficient = _root.length/(_root.window._height - _root.length - 1.4*_height);
_root.top = _y;
_root.left = _x;
_root.right = _x;
_root.bottom = _y+_root.length;
}
onClipEvent (enterFrame) {
if (_root.dragging == true) {
_root.window._y = _root.nullpos - (_y - _root.top)/_root.koeficient;
}
}

- Boton "Barra Deslizadora":

on (press) {
startDrag("_root.scroller", false, _root.left, _root.top, _root.right, _root.bottom);
_root.dragging = true;
}
on (release, releaseOutside) {
stopDrag();
_root.dragging = false;
}


Bueno resulta que cuando lo visualizo en mi swf, funciona perfectamente...pero el problema va cuando lo veo en mi sitio, ya que este SWF carga dentro de otro en un MC de nombre "contenido"...

Se me imagina que debe de ser un problema de ruta, pero el caso es que lo he modificado varias veces y nada sigue con el mismo problema, por eso les pido su sabiduria en este problema...

Si desean el Fla, me envian un privado para enviarselos...

De antemano muchas gracias!!!

Por crew

168 de clabLevel



 

Desde el Pais + Largo del Mundo...CHILITO Lindo

msie7
Citar            
MensajeEscrito el 08 Feb 2007 01:48 am
Enviame el fla a mi correo y lo checamos debe de ser un detalle en las rutas.... saludos

Por elessar

Claber

166 de clabLevel



 

Tabasco, México

firefox
Citar            
MensajeEscrito el 08 Feb 2007 06:03 pm
JEJEJ compita ya quedo...solo coloca esto en el primer fotograma del el archivo text_representantes.fla

Código :

this._lockroot = true;


Saludos.,....

Por elessar

Claber

166 de clabLevel



 

Tabasco, México

firefox

 

Cristalab BabyBlue v4 + V4 © 2011 Cristalab
Powered by ClabEngines v4, HTML5, love and ponies.