[Tools][Expand/Collapse All]Note that automatic extraction of ActionScript 3 is still pretty much unsupported by swfchan. AS1/AS2 works okay most of the time.Frame 1 (99 B)
i = 1;
while (i <= 5) {
_root.face.duplicateMovieClip("face" + i, i + 1000, face);
i++;
}
Instance of Symbol 16 MovieClip "face" in Frame 1 (437 B)
onClipEvent (load) {
function reset() {
if (this._name == "face") {
this._visible = false;
} else {
this._visible = true;
}
this.dead = 0;
this.speed = random(4) + 3;
this._x = 600;
this._y = random(400);
}
this.reset();
}
on (releaseOutside) {
this._parent.points++;
points_txt.text = points.toString();
}
onClipEvent (enterFrame) {
this._x = this._x - this.speed;
if (this._x < -40) {
this.reset();
}
}
Instance of Symbol 18 MovieClip "pinhair" in Frame 1 (365 B)
onClipEvent (load) {
startDrag (this, true);
Mouse.hide();
this.swapDepths(9999);
}
onClipEvent (mouseDown) {
playsounds = new Sound(this);
playsounds.attachSound("shot");
playsounds.start(0, 1);
i = 1;
while (i <= 5) {
if (this.hitTest(_root["face" + i]) && (_root["face" + i].dead == 0)) {
_root["face" + i].gotoAndPlay(2);
}
i++;
}
}
Symbol 16 MovieClip Frame 1 (8 B)
stop();
Symbol 16 MovieClip Frame 2 (15 B)
this.dead = 1;
Symbol 16 MovieClip Frame 50 (14 B)
this.reset();