[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 (2.18 KiB) ●
movieClip 1 bowserAS {
#initclip
Object.registerClass('bowserAS', bowserAS);
#endinitclip
}
movieClip 9 {
}
movieClip 10 {
}
movieClip 13 {
}
movieClip 15 {
}
movieClip 16 {
}
movieClip 28 {
}
movieClip 42 {
}
movieClip 47 {
}
movieClip 48 {
frame 1 {
stop();
}
frame 18 {
gotoAndPlay(8);
}
}
movieClip 50 {
}
movieClip 53 __Packages.bowserAS {
#initclip
if (!_global.bowserAS) {
var v1 = function () {
super();
};
_global.bowserAS = v1;
_global.bowserAS extends MovieClip;
var v2 = v1.prototype;
v2.onLoad = function () {
this.cumbarLevel = 1;
this.yPos = 0;
_root.bowser.stop();
this.SH = Stage.height;
this.velocity = 0;
this.newYPos = 0;
this.oldYPos = 0;
this.bowsercum = false;
this.bowsercumvar = 2;
};
v2.onEnterFrame = function () {
this.trackVelocity();
_root.bowser.head.mouth.glow._alpha = _root.cumBar._yscale;
this.yPos = Math.round((this._ymouse / this.SH) * 30);
_root.bowser.gotoAndStop(this.yPos);
_root.cumBar._yscale = this.cumbarLevel / 6.7;
this.cumbarLevel -= 1;
this.cumbarLevel += this.velocity / 14;
if (this.cumbarLevel >= 1000) {
this.cumbarLevel = 1000;
this.bowsercum = true;
}
if (this.cumbarLevel <= 0) {
this.cumbarLevel = 0;
}
if (this.bowsercum == true) {
_root.bowserCum._visible = true;
_root.bowser._visible = false;
this.bowsercumvar += 1;
if (this.bowsercumvar == 3) {
_root.bowserCum.play();
}
if (this.bowsercumvar >= 2) {
this.bowsercumvar = 1;
}
this.cumbarLevel -= 10;
if (this.cumbarLevel <= 500) {
this.bowsercum = false;
}
} else {
if (this.bowsercum == false) {
_root.bowser._visible = true;
_root.bowserCum._visible = false;
}
}
};
v2.trackVelocity = function () {
this.newYPos = this._ymouse;
this.velocity = this.newYPos - this.oldYPos;
if (this.velocity <= 0) {
this.velocity *= -1;
}
this.oldYPos = this._ymouse;
};
ASSetPropFlags(_global.bowserAS.prototype, null, 1);
}
#endinitclip
}