Comunidad de diseño web y desarrollo en internet online

de flash5 a flash8

Citar            
MensajeEscrito el 02 Abr 2008 08:09 pm
alguien puede ayudarme?
he bajado un ejemplo de internet (de la pagina de levitated, opensource) en flash5 y quisiera que funcionara en flash8 para poder acompañarlo de otros codigos, pero no tengo ni idea que he de cambiar.

pongo los codigos por si alguien sabe que hacer

muchichisimas gracias

Código :

function mouseOnScreen() {
   if ((_root._ymouse<337) && (_root._ymouse>0) && (_root._xmouse<600) && (_root._xmouse>0)) {
      return true;
   } else {
      return false;
   }
}


Código :

if (mouseOnScreen()) {
   this.vx += (_parent._xmouse-this._x)/50;
} else {
   this.vx += (300-this._x)/100;
}
this._x += this.vx;
this.vx *= .9;


Código :

this._visible=false;
var numrotos=8;
for (n=0;n<numrotos;n++) {
   newroto="roto"+String(n);
   this.attachMovie("roto",newroto,n+1);
   this[newroto].theta=n*360/numrotos;
   this[newroto].panel=50;
   this[newroto].radius=250;
   this[newroto].rotographic.gotoAndStop(n+1);
}
this.title.swapDepths(100);


Código :

speed=-(_root.bob._x-300)/50;
this._visible=true;


Código :

gotoAndPlay(_currentframe-1);


Código :

// user transforms
if (pressv!=0) {
   this.panel+=pressv;
   pressv=pressv*.9;
   if ((pressv<.2) && (pressv>-.2)) {
      pressv=0;
   }
}
// 3d transforms
theta+=_parent.speed;
xbit=Math.sin(Math.PI/180 * theta);
ybit=Math.cos(Math.PI/180 * theta);
this._xscale=ybit*this.panel;
this._x=xbit*this.radius;
this._alpha=30+(ybit+1)*50;
this._yscale=this.panel+ybit*5;
stack=Math.round((ybit+1)*radius*2);
if (stack==100) {
   stack=101;
}
this.swapDepths(stack);

Por kaquna

68 de clabLevel



Genero:Femenino  

firefox
Citar            
MensajeEscrito el 03 Abr 2008 06:39 am
Pues nada. Ese código (aunque no usa Strict Data Typing) debería funcionar correctamente en AS2. Al menos así, a primera vista.

Por The Fricky!

Presidente

6168 de clabLevel

3 tutoriales
8 articulos

Genero:Masculino   Bastard Operators From Hell Héroes

Piccola Venezia...

firefox

 

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