domingo, 12 de julio de 2009

Links estilo Fur.ly

ESTOS SON LOS LINKS DE LA ACTIVIDAD DEL DIA 13 DE JULIO .


>>>VISTA LOS SIGUIENTES LINKS DE INTERES>>




viernes, 19 de junio de 2009

Acciones de control del cuerpo

onClipEvent (load) {
speed = 20;
}
// ubicacion de chango fett
onClipEvent (keyDown) {
if (Key.getCode() == 39) {
_x = _x+speed;
} else if (Key.getCode() == 38) {
_y = _y-speed;
} else if (Key.getCode() == 37) {
_x = _x-speed;
} else if (Key.getCode() == 40) {
_y = _y+speed;
}
// fin key down
}
// presionar teclas :: cuerpos
onClipEvent (keyDown) {
if (Key.getCode() == 49) {
gotoAndPlay (6);
} else if (Key.getCode() == 50) {
gotoAndPlay (11);
} else if (Key.getCode() == 51) {
gotoAndPlay (16);
} else if (Key.getCode() == 52) {
gotoAndPlay (22);
} else if (Key.getCode() == 32) {
gotoAndPlay (25);
}
// fin key down
}
// soltar teclas
onClipEvent (keyUp) {
if (Key.getCode() == 49) {
gotoAndPlay (1);
} else if (Key.getCode() == 50) {
gotoAndPlay (1);
} else if (Key.getCode() == 51) {
gotoAndPlay (1);
} else if (Key.getCode() == 52) {
gotoAndPlay (1);
} else if (Key.getCode() == 32) {
gotoAndPlay (1);
}
}

martes, 9 de junio de 2009

Video de como generar gravedad en un de pelicula



*-------------
onClipEvent(load){
velocity = 0
gravity = 2
friction = 0.01
}
onClipEvent(enterFrame){
velocity += gravity
velocity -= friction*velocity
_y += velocity
if(_y>_root.floor._y){
_y = _root.floor._y
velocity *= -0.9
}
}

viernes, 5 de junio de 2009

3o.Sec.Tema visto hoy

INTERACTIVIDAD CON EL TECLADO .FLASH 5.





onClipEvent (load) {
speed = 20;
display = "press arrows";
}
onClipEvent (keyDown) {
if (Key.getCode() == 39) {
_x = _x+speed;
} else if (Key.getCode() == 38) {
_y = _y-speed;
} else if (Key.getCode() == 37) {
_x = _x-speed;
} else if (Key.getCode() == 40) {
_y = _y+speed;
}
display = Key.getCode();
}

miércoles, 3 de junio de 2009

GUIA TOTAL DE SKETCHUP

martes, 2 de junio de 2009

Valores de las teclas

VALOR NUMERICO DE LAS TECLAS EN FLASH 5
LINK>>>>
LINK>>>>
LINK>>>>

Codigo que genera gravedad en Flash

Primero creas un clip de pelicula con cualquier nombre y con instancia "floor".

Despues creas un clip de pelicula que le insertaras las siguientes acciones.

onClipEvent(load){
velocity = 0
gravity = 2
friction = 0.01
}
onClipEvent(enterFrame){
velocity += gravity
velocity -= friction*velocity
_y += velocity
if(_y>_root.floor._y){
_y = _root.floor._y
velocity *= -0.9
}
}