Section 1
//MainTimeline (moonlight_fla.MainTimeline)
package moonlight_fla {
import flash.display.*;
public dynamic class MainTimeline extends MovieClip {
public function MainTimeline(){
addFrameScript(0, frame1);
}
function frame1(){
stop();
}
}
}//package moonlight_fla
Section 2
//mur_1 (moonlight_fla.mur_1)
package moonlight_fla {
import flash.display.*;
public dynamic class mur_1 extends MovieClip {
public var fuerza;
public var angulo;
public var mur:MovieClip;
public var fx;
public var fy;
public function mur_1(){
addFrameScript(0, frame1, 1, frame2, 2, frame3);
}
function frame3(){
if (mur.y <= -200){
gotoAndPlay(1);
} else {
gotoAndPlay(2);
};
}
function frame1(){
mur.x = -14;
mur.y = 100;
fuerza = ((Math.random() * 5) + 2);
angulo = ((Math.random() * 70) + 145);
fx = (Math.sin(((angulo * Math.PI) / 180)) * fuerza);
fy = (Math.cos(((angulo * Math.PI) / 180)) * fuerza);
}
function frame2(){
mur.x = (mur.x + fx);
mur.y = (mur.y + fy);
}
}
}//package moonlight_fla