El sitio más completo sobre programación, recursos web y herramientas online para Webmasters
Fecha: 26/11/2005

Asteroides en flash

Trucos flash:
Una rutina interesante que simula asteroides

Código Flash


Just another Function for your pleasure. Have fun with it. 
movieclip.prototype.katapult = function (hoehe,propX,propY,checkProp) {
if (signal != true) {
dim = random(30)/10;
_width = 2+(dim/2);
_height = 2+(dim/2);
}
signal = true;
this[propY] += dim;
this[propX] += (random(10)/10);
this[propX] -= (random(10)/10);
if (this[checkProp]>hoehe) {
this[checkProp] = 0;
}
}
Call:
[PHP]
(Horizontal Movement):
onClipEvent (enterFrame) {
katapult(600,"_y","_x","_x");
}
or
(Vert. Movement):
onClipEvent (enterFrame) {
katapult(450,"_x","_y","_y");
}
Asteroides en flash Categoría: Trucos, Flash


Scripts Similares:

» Abrir Popup en flash
» Adjuntar flash
» Agregar valor
» Archivos TXT en flash
» Array en asp
» Buscar con peliculas flash
» Buscar una string con flash
» Buscar valor
» Cambiar color con flash
» Cambiar color flash

Privacidad ּ Publicidad ּ Prensa ּ Premios ּ Colaborar ּ Enlazarnos ּ Mapa del Sitio ּ Aviso legal ּ Boletín ּ Contacto
2001 - 2011 | Sitio creado y mantenido por Gabriel Marcelo Rodríguez
Hosting de alta calidad a bajo costo Neolo.com.ar