[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 (166 B)
function setAccessory(obj_mc, x, y, scale, alpha) {
obj_mc._x = x;
obj_mc._y = y;
obj_mc._xscale = scale;
obj_mc._yscale = scale;
obj_mc._alpha = alpha;
}
Symbol 14 MovieClip Frame 2 (63 B)
if (Math.random() < 0.98) {
this.gotoAndPlay("fLoop");
}
Symbol 14 MovieClip Frame 4 (27 B)
this.gotoAndPlay("fLoop");
Symbol 14 MovieClip Frame 5 (8 B)
stop();
Symbol 14 MovieClip Frame 6 (8 B)
stop();
Symbol 44 MovieClip Frame 1 (1.16 KiB) ●
#initclip 1
Accessory = function () {
trace("aaaa");
};
Accessory.prototype = new MovieClip();
Accessory.prototype.x_init = 0;
Accessory.prototype.y_init = 0;
Accessory.prototype.x_set = 0;
Accessory.prototype.y_set = 0;
Accessory.prototype.init_scale = 50;
Accessory.prototype.graphics = undefined;
Accessory.prototype.bSet = false;
Accessory.prototype.init = function (x, y, xset, yset) {
trace("Accessory Init" add this);
this.prototype.x_init = x;
this.prototype.y_init = y;
this.prototype.x_set = xset;
this.prototype.y_set = yset;
this._x = x;
this._y = y;
this._xscale = init_scale;
this._yscale = init_scale;
this.onPress = function () {
trace("onPress called");
};
};
Accessory.prototype.Set = function () {
this._x = x_set;
this._y = y_set;
this._xscale = 100;
this._yscale = 100;
this.bSet = true;
};
Accessory.prototype.Release = function () {
this._x = x_init;
this._y = y_init;
this._xscale = init_scale;
this._yscale = init_scale;
this.bSet = false;
};
Accessory.prototype.setPlayer = function () {
this.activate(false);
this.setMyCamera();
};
Object.registerClass("accessory", Accessory);
#endinitclip
Symbol 51 MovieClip Frame 1 (8 B)
stop();
Symbol 51 MovieClip Frame 11 (17 B)
gotoAndPlay (2);
Symbol 51 MovieClip Frame 12 (8 B)
stop();
Symbol 54 MovieClip Frame 1 (686 B)
acs_array = new Array(uniform_mc, shoes_mc, socks_mc, wing_mc, swimwear_mc, swimwearold_mc, gymwear_mc, buruma_mc, bura_mc, panty_mc, choker_mc);
i = 0;
while (i < acs_array.length) {
acs_array[i].xpos = acs_array[i]._x;
acs_array[i].ypos = acs_array[i]._y;
acs_array[i].ypos_tools = (i * 60) + 30;
acs_array[i].onPress = function () {
if (this.bSet) {
_parent.setAccessory(this, this.xpos, this.ypos, 100, 100);
} else {
_parent.setAccessory(this, -70, this.ypos_tools, 25, 75);
}
this.bSet = !this.bSet;
};
acs_array[i].onPress();
i++;
}
uniform_mc.onPress();
bura_mc.onPress();
panty_mc.onPress();
socks_mc.onPress();
shoes_mc.onPress();