Comunidad de diseño web y desarrollo en internet online

Problema al copiar toda la escena

Citar            
MensajeEscrito el 18 Feb 2010 05:24 pm
Hola, veran en los laboratorios hicimos 2 practicas, ahora nos piden una 3 que es unir las dos y anadir unas pocas cosas, el problema esta en que no logro hacer que la primera practica funcione cuando la pego en la segunda.

He probado haciendolo con el raton dandole a copiar y yendo a la otra pelicula para pegar y me lo pega bien (menos un elemento de la libreria, el cual tambien copio y pego y nada)

Tambien he probado a hacer Edit-Timeline-Select all frames, despues Edit-Timeline-Copy frames y despues pegando los frames en la otra pelicula con Edit-Timeline-Paste frames.

y aun asi tampoco...no se que pasa porque las acciones tambien se me copian...

Por hkjose

7 de clabLevel



 

chrome
Citar            
MensajeEscrito el 18 Feb 2010 05:50 pm
tal vez el problema esta en el codigo, si es que tiene, postealo para verlo...

Por gabynufe

Claber

446 de clabLevel



 

México, D.F.

firefox
Citar            
MensajeEscrito el 18 Feb 2010 06:03 pm

Código ActionScript :

//proto q movera las letras
MovieClip.prototype.carusel = function(mover, posicionFinal) {
   mueveAngulo(posicionFinal);
   if (mover) {
      this.onEnterFrame = function() {
         this._x = centrox+Math.cos((Math.PI/180)*(angulo+this.angulo))*radio;
         this._y = centroy+Math.sin((Math.PI/180)*(angulo+this.angulo))*radio/-20;
         this.z = Math.sin((Math.PI/180)*(angulo+this.angulo))*radio;
         this._alpha = this._yscale=this._xscale=(100*distanciafocal)/(distanciafocal+this.z);
         this.swapDepths(-1*this.z);
      };
   } else {
      delete this.onEnterFrame;
   }
};
function mueveAngulo(posicionFinal) {
   this.onEnterFrame = function() {
      if ((Math.round(angulo)) == Math.round(posicionFinal)) {
         mueveLetras(false);
         trace("angulo"+angulo+"posicionFinal"+posicionFinal);
         delete this.onEnterFrame;
      } else {
         //contador de frames
         if (counter++%30 == 1) {
            // updates every 30 frames
            thisTime = getTimer();
            rate = Math.round(10000/(thisTime-lastTime))/10;
            if (rate%1 == 0) {
               rate += ".0";
            }
            fps = "fps: "+rate;
         } else if (counter%30 == 1) {
            lastTime = getTimer();
         }
         angl.text = "Angulo : "+Math.round(angulo);
         angulo += ((posicionFinal-angulo)/30);
      }
   };
}
//para ir sumando la profundidad
function maxprofundidad() {
   return ++profundidad;
}
//inicio variables
centrox = 500/2;
centroy = 500/2;
radio = 200;
distanciafocal = 400;
//creando los titulos
titulos = "Principal  Laboratorio  Tutoriales  Descargar  Enlaces  Contacto ";
//creando los clips q contendran las letras
function creaLetras() {
   letras = new Array();
   for (i=0; i<=titulos.length; i++) {
      letras[i] = titulos.substr(i, 1);
      var letra = this.attachMovie("letrita", "letrita"+i, maxprofundidad());
      letra.angulo.i = i;
      letra.angulo = (360/titulos.length)*i;
      letra.contenido.text = letras[i];
      letra.carusel(true, 249);
      //trace(letra);
   }
}
creaLetras();
function mueveLetras(mover, posicionFinal) {
   trace(this)
   for (i=0; i<=titulos.length; i++) {
      this["letrita"+i].carusel(mover, posicionFinal);
      
   }
}
b1.onPress = function() {
   mueveLetras(true, 249);
};
b2.onPress = function() {
   mueveLetras(true, 181);
};
b3.onPress = function() {
   mueveLetras(true, 112);
};
b4.onPress = function() {
   mueveLetras(true, 49);
};
b5.onPress = function() {
   mueveLetras(true, -7);
};
b6.onPress = function() {
   mueveLetras(true, -59);
};
stop();

Por hkjose

7 de clabLevel



 

chrome
Citar            
MensajeEscrito el 19 Feb 2010 01:24 pm
he revisado el codigo mil veces y hay no creo que este el fallo...se lo ocurre algo a alguien???

Por hkjose

7 de clabLevel



 

chrome
Citar            
MensajeEscrito el 19 Feb 2010 01:42 pm
Subo lo que quiero copiar en otro .fla a ver si alguien lo logra pegar, y asi ya tambien teneis un menu 3d bastante currao (eso no es mio)

http://www.megaupload.com/?d=A326VWVW

Por hkjose

7 de clabLevel



 

chrome

 

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