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
