Comunidad de diseño web y desarrollo en internet online

Problemas con scroll

Citar            
MensajeEscrito el 02 Feb 2007 09:54 am
Hola el problema que tengo esque no me hace la funcion de onEnterFrame y no se porque.
mirar lo que yo tengo hecho

Código :

_root.attachMovie("mascara","mascara",_root.getNextHighestDepth())
_root.CartelEntero.cargas.setMask(_root.mascara);
      mascara._x=11;
      mascara._y=62;
      trace (mascara._y)
      trace (mascara._x)
      _root.CartelEntero.attachMovie("Arriba","Arriba",31);
         _root.CartelEntero.attachMovie("Abajo","Abajo",32);
         _root.CartelEntero.Arriba._x=721.6;   
         _root.CartelEntero.Arriba._y=78.9;
         _root.CartelEntero.Abajo._x=721.6;
         _root.CartelEntero.Abajo._y=362.9;
         _root.CartelEntero.Arriba.onRollOver = function() {
            trace ("deberia funcionar")
            this.onEnterFrame = function() {
               trace ("funciona boton subir")
               
               if (_root.CartelEntero.cargas._y<62) {
                  _root.CartelEntero.cargas._y+=5
                              }
            }
            
         
         };
         _root.CartelEntero.Arriba.onRollOut = function() {
               delete this.onEnterFrame;
            }
         _root.CartelEntero.Abajo.onRollOver = function() {
            trace (_root.CartelEntero.cargas._height)
            trace(_root.mascara._height)
            trace ("deberia funcionar")
            this.onEnterFrame = function() {
               trace ("funciona boton bajar")
               var Sobra:Number=_root.CartelEntero.cargas._height - _root.mascara._height;
               trace (Sobra)
               if(_root.CartelEntero.cargas._y>=(62 - Sobra)){
               _root.CartelEntero.cargas._y -=5;
               }
            }
         
         };
         _root.CartelEntero.Abajo.onRollOut = function() {
               delete this.onEnterFrame;
            }

Puede ser que el problema este a simple vista pero esque llevo tanto rato buscando el fallo que no se ya ni lo que escribo.
La cuestion esque todos lo trace saltan menos los que estan dentro de el onEnterFrame, lo que me hace pensar que todo esta bien menos el onEnterFrame.
Gracias

Por Cubel

Claber

139 de clabLevel



Genero:Masculino  

Valencia, España

msie7
Citar            
MensajeEscrito el 02 Feb 2007 11:49 am
Alguien sabe porque no funciona¿? esque yo ya me estoy volviendo loco....
sera una tornteria pero...
Gracias

Por Cubel

Claber

139 de clabLevel



Genero:Masculino  

Valencia, España

msie7

 

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