Comunidad de diseño web y desarrollo en internet online

existe algun boton que no haga ninguna funcion??

Citar            
MensajeEscrito el 23 Feb 2007 01:18 am
Hola a todos..me explico... tengo dos opciones, lo que no se es si existiran alguna de las dos. Os explico a ver... tengo unas imagenes que las llamo desde el exterior haciedo una escala con ellas, el problema es que cuando las escalo pierde resolucion entonces lo que he hecho es hacer que la foto pequeña este al 25% de su escala y la grande este al 100% de su escala, para que no pierda resolucion, entonces, cuando paso por encima se agranda al 100 por 100 y cuando suelto se pone al 25% pero mi problema viene cuando ejecuto el flash, que por defecto se ponen al 100%, habria alguna forma de decirles que se pongan al inicio del flash al 25%???

aqui os dejo mi codigo, un saludo y gracias por adlantado.


ese.flayer1.mc1.loadMovie("flayers/flayer1.jpg", 1);// llamada a flayer 1
ese.flayer2.mc2.loadMovie("flayers/flayer2.jpg", 1);// llamada a flayer 2
ese.flayer3.mc3.loadMovie("flayers/flayer3.jpg", 1);// llamada a flayer 3
ese.flayer4.mc4.loadMovie("flayers/flayer4.jpg", 1);// llamada a flayer 4
ese.flayer5.mc5.loadMovie("flayers/flayer5.jpg", 1);// llamada a flayer 5
ese.flayer6.mc6.loadMovie("flayers/flayer6.jpg", 1);// llamada a flayer 6


ese.flayer1.onPress = function() {
printAsBitmap("0", "bframe");
}


//cuando presiona el flayer 1 se escala
ese.flayer1.onRollOver = function(){
this.onEnterFrame = function() {
if (this._xscale < 200) {
this._xscale = this._yscale += 5;
}
else {
this._xscale = this._yscale = 200;
delete this.onEnterFrame;
}
};
{
_root.profundidad++;
this.swapDepths(_root.profundidad);
};
};
// Cuando suelto el flayer 1, vuelve a posicion final
ese.flayer1.onRollOut = function(){
this.onEnterFrame = function() {
if (this._xscale > 100) {
this._xscale = this._yscale -= 5;
}
else {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
}
};
};

//cuando presiona el flayer 2 se escala
ese.flayer2.onRollOver = function(){
this.onEnterFrame = function() {
if (this._xscale < 200) {
this._xscale = this._yscale += 5;
}
else {
this._xscale = this._yscale = 200;
delete this.onEnterFrame;
}
};
{
_root.profundidad++;
this.swapDepths(_root.profundidad);
};
};

// Cuando suelto el flayer 2, vuelve a posicion final
ese.flayer2.onRollOut = function(){
this.onEnterFrame = function() {
if (this._xscale > 100) {
this._xscale = this._yscale -= 5;
}
else {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
}
};
};

//cuando presiona el flayer 3 se escala
ese.flayer3.onRollOver = function(){
this.onEnterFrame = function() {
if (this._xscale < 200) {
this._xscale = this._yscale += 5;
}
else {
this._xscale = this._yscale = 200;
delete this.onEnterFrame;
}
};
{
_root.profundidad++;
this.swapDepths(_root.profundidad);
};
};
// Cuando suelto el flayer 3, vuelve a posicion final
ese.flayer3.onRollOut = function(){
this.onEnterFrame = function() {
if (this._xscale > 100) {
this._xscale = this._yscale -= 5;
}
else {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
}
};
};
//cuando presiona el flayer 4 se escala
ese.flayer4.onRollOver = function(){
this.onEnterFrame = function() {
if (this._xscale < 200) {
this._xscale = this._yscale += 5;
}
else {
this._xscale = this._yscale = 200;
delete this.onEnterFrame;
}
};
{
_root.profundidad++;
this.swapDepths(_root.profundidad);
};
};
// Cuando suelto el flayer 4, vuelve a posicion final
ese.flayer4.onRollOut = function(){
this.onEnterFrame = function() {
if (this._xscale > 100) {
this._xscale = this._yscale -= 5;
}
else {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
}
};
};
//cuando presiona el flayer 5 se escala
ese.flayer5.onRollOver = function(){
this.onEnterFrame = function() {
if (this._xscale < 200) {
this._xscale = this._yscale += 5;
}
else {
this._xscale = this._yscale = 200;
delete this.onEnterFrame;
}
};
{
_root.profundidad++;
this.swapDepths(_root.profundidad);
};
};
// Cuando suelto el flayer 5, vuelve a posicion final
ese.flayer5.onRollOut = function(){
this.onEnterFrame = function() {
if (this._xscale > 100) {
this._xscale = this._yscale -= 5;
}
else {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
}
};
};
//cuando presiona el flayer 6 se escala
ese.flayer6.onRollOver = function(){
this.onEnterFrame = function() {
if (this._xscale < 200) {
this._xscale = this._yscale += 5;
}
else {
this._xscale = this._yscale = 200;
delete this.onEnterFrame;
}
};
{
_root.profundidad++;
this.swapDepths(_root.profundidad);
};
};
// Cuando suelto el flayer 6, vuelve a posicion final
ese.flayer6.onRollOut = function(){
this.onEnterFrame = function() {
if (this._xscale > 100) {
this._xscale = this._yscale -= 5;
}
else {
this._xscale = this._yscale = 100;
delete this.onEnterFrame;
}
};
};

Por checa69

17 de clabLevel



Genero:Masculino  

msie
Citar            
MensajeEscrito el 25 Feb 2007 05:22 pm
Hola, lo que debes de hacer es poner tus imagenes grandes y para que al momento de que las ponga te las ponga al 25% de su tamaño debes de poner lo siguiente:

Código :

ese.flayer1.mc1.loadMovie("flayers/flayer1.jpg", 1);// llamada a flayer 1

// Aqui haces tu movie clip al 25% de su tamaño-------------------

ese.flayer1._xscale = ese.flayer1._yscale = 25;

//---------------Excala del Flyer 1-------------------------
ese.flayer1.onRollOver = function(){
this.onEnterFrame = function() {
       if (this._xscale < 25) {
              this._xscale = this._yscale += 5;
      }else {
              this._xscale = this._yscale = 100;
             delete this.onEnterFrame;
      }
};

//--------------------Volver al tamaño original----------------------

ese.flayer1.onRollOut = function(){
        this.onEnterFrame = function() {
                   if (this._xscale > 25) {
                         this._xscale = this._yscale -= 5;
                   }else {
                         this._xscale = this._yscale = 25;
                        delete this.onEnterFrame;
                  }
         };
};



Espero te sirva, saludos! :lol:

Por nando.losa

18 de clabLevel



Genero:Masculino  

Querétaro, México

firefox
Citar            
MensajeEscrito el 02 Mar 2007 12:15 am
Gracias por tu ayuda... me ha ido muy bien... un saludo y gracias por ayudarme...

Por checa69

17 de clabLevel



Genero:Masculino  

msie

 

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