OPEN THE *.FLA DOCUMENT OF THE ACTIVITY #33 AND MODIFY THAT CODE, USING THIS ONE AS AN EXAMPLE.
onClipEvent (load) {
fuerza =0.5;
velocidad = 0;
lado = 5;
}
onClipEvent (enterFrame) {
velocidad += fuerza;
this._y += velocidad;
this._x +=lado;
if (this._y>=400) {
this._y = 400-26;
velocidad *= -.8;
}
if (this._x>550-26 || this._x<0){
lado*=-1;
}
}
May 3, 2012
Act #33 - Flash Code
MAKE SURE TO ADD THIS CODE TO THE LITTLE BALL. CONVERT IT TO MOVIE CLIP FIRST.
onClipEvent (load) {
fuerza =0.5;
velocidad = 0;
}
onClipEvent (enterFrame) {
velocidad += fuerza;
this._y += velocidad;
if (this._y>=400) {
this._y = 400;
velocidad *= -.8;
}
}
onClipEvent (load) {
fuerza =0.5;
velocidad = 0;
}
onClipEvent (enterFrame) {
velocidad += fuerza;
this._y += velocidad;
if (this._y>=400) {
this._y = 400;
velocidad *= -.8;
}
}
Act #32 - Flash Code
WHEN YOU CONVERT THE CIRCLE INTO A MOVIECLIP ADD THIS CODE TO IT.
onClipEvent (enterFrame) {
Mouse.hide();
this._x = _root._xMouse;
this._y = _root._yMouse;
}
onClipEvent (enterFrame) {
Mouse.hide();
this._x = _root._xMouse;
this._y = _root._yMouse;
}
Act #31 - Flash Code
FIRST KEYFRAME
var t=0;
var texto="Cristobal Colón viajó a América en 1492";
SECOND FRAME
if (t<texto.length) {
caja = texto.substring(0,t);
t++;
}
else {
caja= texto;
gotoAndStop(1);
}
THIRD FRAME
gotoAndPlay(2);
var t=0;
var texto="Cristobal Colón viajó a América en 1492";
SECOND FRAME
if (t<texto.length) {
caja = texto.substring(0,t);
t++;
}
else {
caja= texto;
gotoAndStop(1);
}
THIRD FRAME
gotoAndPlay(2);
Subscribe to:
Posts (Atom)