[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.Combined Code (8.73 KiB) ● ●
frame 1 {
stop();
var gravi = new Gravitation(3);
gravi.move_draw = 0.5;
gravi.swing_draw[0] = 0.5;
gravi.swing_draw[1] = 0.5;
gravi.swing_fadeout[1] = 0.15;
gravi.swing_draw[2] = 0.5;
gravi.swing_fadeout[2] = 0.12;
gravi.control_mode = 1;
gravi.auto_speed = 0.15;
var frame_start_gt = 51;
var frame_end_gt = 61;
var frame_start = 51;
var frame_end = 61;
onEnterFrame = function () {
if (frame_start < frame_start_gt) {
++frame_start;
} else {
if (frame_start > frame_start_gt) {
--frame_start;
}
}
if (frame_end < frame_end_gt) {
++frame_end;
} else {
if (frame_end > frame_end_gt) {
--frame_end;
}
}
gravi.Update();
act.gotoAndStop(int(gravi.move_draw * (frame_end - frame_start) + frame_start));
act.boob1.gotoAndStop(int((1 - gravi.swing_draw[0]) * 60 + 1));
act.boob2.gotoAndStop(int((1 - gravi.swing_draw[0]) * 60 + 1));
};
}
movieClip 3 {
}
movieClip 5 {
}
movieClip 7 {
}
movieClip 9 {
}
movieClip 11 {
}
movieClip 17 {
}
movieClip 22 {
}
movieClip 23 {
}
movieClip 24 {
frame 1 {
stop();
}
}
movieClip 28 {
frame 1 {
stop();
}
}
movieClip 29 {
}
movieClip 31 {
}
movieClip 33 {
}
movieClip 35 {
}
movieClip 40 {
}
movieClip 42 {
}
movieClip 46 {
}
movieClip 65 {
}
movieClip 67 {
}
movieClip 81 {
}
movieClip 83 {
}
movieClip 85 {
}
movieClip 90 {
}
movieClip 114 {
}
movieClip 117 {
}
movieClip 119 {
frame 1 {
function changeValue(d_value) {
if (value >= 1) {
return undefined;
}
++i_val;
value_buf += d_value;
if (i_val == buf_vals) {
value_buf = 0;
i_val = 0;
}
value += d_value;
if (value >= 1) {
value = 1;
_parent.onBarFilled();
if (i_val != 0) {
}
} else {
if (value < 0) {
value = 0;
}
}
stripe._x = -(1 - value) * stripe._width;
}
var value = 0;
var value_buf = 0;
var buf_vals = 24;
var i_val = 0;
changeValue(0);
}
}
// unknown tag 88 length 143
movieClip 146 {
}
movieClip 147 {
frame 1 {
function onBarFilled() {
next_btn._visible = true;
}
next_btn._visible = false;
var i = 0;
var btn_id = 0;
while (eval('btn_' + i) != undefined) {
(eval('btn_' + i)).id = i;
(eval('btn_' + i)).onPress = function () {
btn_id = this.id;
border.stop();
border._x = this._x;
border._y = this._y;
if (btn_id == 0) {
_parent.gravi.auto_speed = 0.05;
_parent.frame_start_gt = 1;
_parent.frame_end_gt = 10;
_parent.act.head1.eyes.gotoAndStop(1);
_parent.act.head1.mouth.gotoAndStop(2);
_parent.act.head1.blush.gotoAndStop(1);
_parent.act.head1.brows.gotoAndStop(1);
_parent.act.head2.gotoAndStop(1);
_parent.act.head2.eyes.gotoAndStop(1);
} else {
if (btn_id == 1) {
_parent.gravi.auto_speed = 0.08;
_parent.frame_start_gt = 15;
_parent.frame_end_gt = 45;
_parent.act.head1.eyes.gotoAndStop(1);
_parent.act.head1.mouth.gotoAndStop(1);
_parent.act.head1.blush.gotoAndStop(2);
_parent.act.head1.brows.gotoAndStop(2);
_parent.act.head2.gotoAndStop(2);
_parent.act.head2.eyes.gotoAndStop(1);
} else {
if (btn_id == 2) {
_parent.gravi.auto_speed = 0.13;
_parent.frame_start_gt = 7;
_parent.frame_end_gt = 52;
_parent.act.head1.eyes.gotoAndStop(2);
_parent.act.head1.mouth.gotoAndStop(1);
_parent.act.head1.blush.gotoAndStop(3);
_parent.act.head1.brows.gotoAndStop(1);
_parent.act.head2.gotoAndStop(3);
_parent.act.head2.eyes.gotoAndStop(2);
} else {
if (btn_id == 3) {
_parent.gravi.auto_speed = 0.15;
_parent.frame_start_gt = 1;
_parent.frame_end_gt = 61;
_parent.act.head1.eyes.gotoAndStop(3);
_parent.act.head1.mouth.gotoAndStop(4);
_parent.act.head1.blush.gotoAndStop(4);
_parent.act.head1.brows.gotoAndStop(3);
_parent.act.head2.gotoAndStop(4);
_parent.act.head2.eyes.gotoAndStop(3);
}
}
}
}
};
if (i > 1) {
(eval('btn_' + i)).enabled = false;
(eval('btn_' + i))._alpha = 50;
}
++i;
}
var btns_count = i;
btn_0.onPress();
onEnterFrame = function () {
if (bar.value < btn_id / (btns_count - 1)) {
bar.changeValue(0.001);
if (bar.value >= btn_id / (btns_count - 1)) {
(eval('btn_' + (btn_id + 1))).enabled = true;
(eval('btn_' + (btn_id + 1)))._alpha = 100;
}
}
};
next_btn.onPress = function () {
_root.gotoScreen('1');
};
}
}
movieClip 148 __Packages.Gravitation {
#initclip
if (!_global.Gravitation) {
var v1 = function (swings_num) {
var v2;
this.move_draw = 0.5;
v2 = 0;
while (v2 < 24) {
this.move_speeds.push(0);
++v2;
}
v2 = 0;
while (v2 < swings_num) {
this.swing_draw.push(0.5);
this.swing_speed.push(0);
this.swing_fadeout.push(0.1);
++v2;
}
this.move_delay = 3;
this.move_speed_overal = 0;
this.auto_anim_angle = 0;
this.control_mode = 0;
this.auto_fade_out_speed = 0.005;
this.face_frame = 1;
this.auto_speed = 0.2;
this.anchor = undefined;
};
_global.Gravitation = v1;
var v2 = v1.prototype;
v2.Update = function () {
var v3;
var v2;
if (this.control_mode > 0) {
if (this.control_mode == 1) {
this.auto_move_fade_k = 1;
} else {
if (this.control_mode == 2) {
this.auto_move_fade_k -= this.auto_fade_out_speed;
if (this.auto_move_fade_k < 0) {
this.auto_move_fade_k = 0;
}
}
}
this.quarter_prev = this.quarter;
this.auto_anim_angle += this.auto_move_fade_k * 3.141593 * this.auto_speed;
if (this.auto_anim_angle >= 6.283185) {
this.auto_anim_angle -= 6.283185;
}
this.quarter = int(this.auto_anim_angle / 1.570796);
this.move_goto_prev = this.move_goto;
this.move_goto = (this.auto_move_fade_k * Math.sin(this.auto_anim_angle) + 1) / 2;
if (this.quarter == 0 && this.quarter_prev == 3) {
this.anchor = 1;
} else {
if (this.quarter == 2 && this.quarter_prev == 1) {
this.anchor = -1;
} else {
if (this.quarter == 1 && this.quarter_prev == 0 || this.quarter == 3 && this.quarter_prev == 2) {
this.anchor = 0;
} else {
this.anchor = undefined;
}
}
}
}
this.actual_delay = this.move_delay - this.move_speed_overal * 10;
if (this.actual_delay < 1.5) {
this.actual_delay = 1.5;
}
this.move_speed = (this.move_goto - this.move_draw) / this.actual_delay;
v3 = 1 / this.actual_delay;
this.move_draw += this.move_speed;
if (this.move_draw > 1) {
this.move_draw = 1;
} else {
if (this.move_draw < 0) {
this.move_draw = 0;
}
}
this.move_speeds.push(Math.abs(this.move_speed));
this.move_speeds.splice(0, 1);
this.move_speed_overal = 0;
v2 = 0;
while (v2 < this.move_speeds.length) {
this.move_speed_overal += this.move_speeds[v2];
++v2;
}
this.move_speed_overal /= this.move_speeds.length;
this.swing_goto = (this.move_speed + v3) / 2 * v3;
v2 = 0;
while (v2 < this.swing_draw.length) {
if (Math.abs(this.swing_goto - this.swing_draw[v2]) > 0.001667 || Math.abs(this.swing_speed[v2]) > 0.001667) {
this.swing_speed[v2] += (this.swing_goto - this.swing_draw[v2]) / 10 + 1.5 * this.move_speed_overal * (this.swing_goto - this.swing_draw[v2]);
this.swing_draw[v2] += this.swing_speed[v2];
this.swing_draw[v2] += (this.swing_goto - this.swing_draw[v2]) * this.swing_fadeout[v2];
if (this.swing_draw[v2] < 0) {
this.swing_draw[v2] = 0;
} else {
if (this.swing_draw[v2] > 1) {
this.swing_draw[v2] = 1;
}
}
} else {
this.swing_draw[v2] = 0.5;
}
++v2;
}
if (this.move_speed_overal > 0.14 && this.face_frame < 3) {
this.face_frame = 3;
}
if (this.move_speed_overal > 0.07000000000000001 && this.face_frame < 2) {
this.face_frame = 2;
}
if (this.move_speed_overal < 0.05 && this.face_frame > 1) {
this.face_frame = 1;
}
if (this.move_speed_overal < 0.1 && this.face_frame > 2) {
this.face_frame = 2;
}
};
v2.move_speeds = new Array();
v2.swing_draw = new Array();
v2.swing_speed = new Array();
v2.swing_fadeout = new Array();
ASSetPropFlags(_global.Gravitation.prototype, null, 1);
}
#endinitclip
}