Frame 1
Stage.scaleMode = "noborder";
var gassy_cm = new ContextMenu();
gassy_cm.hideBuiltInItems();
var cmi_link_1 = new ContextMenuItem("Clementine's Got Gas", function () {
}, false, true);
gassy_cm.customItems.push(cmi_link_1);
var cmi_link_2 = new ContextMenuItem("Art and code \u00A9 2020 Underside", function () {
getURL ("https://aryion.com/g4/user/Underside");
}, true);
gassy_cm.customItems.push(cmi_link_2);
_root.menu = gassy_cm;
Instance of Symbol 32 MovieClip "mute" in Frame 1
onClipEvent (load) {
function init() {
_root.vol = (2 - this._currentframe) * 75;
this._alpha = 100;
this.onMouseMove = null;
}
function toggle_mute() {
this.gotoAndStop(3 - this._currentframe);
_root.vol = (2 - this._currentframe) * 75;
trace(this._currentframe);
}
stop();
this._alpha = 0;
_root.vol = 0;
_root.fart_trigger = true;
this.onRelease = function () {
if (this._alpha >= 35) {
toggle_mute();
}
trace(_root.vol);
};
this.onMouseMove = init;
this.onRollOver = function () {
_root.fart_trigger = false;
this.onEnterFrame = function () {
this._alpha = this._alpha + 5;
if (this._alpha >= 100) {
this._alpha = 100;
this.onEnterFrame = null;
}
};
};
this.onRollOut = function () {
_root.fart_trigger = true;
this.onEnterFrame = function () {
this._alpha = this._alpha - 5;
if (this._alpha <= 0) {
this._alpha = 0;
this.onEnterFrame = null;
}
};
};
}
Instance of Symbol 27 MovieClip "pooter" in Symbol 29 MovieClip Frame 1
onClipEvent (load) {
function toot() {
_root.toot_count = random(7);
if (_root.toot_count == _root.old_toot) {
_root.toot_count = (_root.toot_count + 1) % 7;
}
farty[_root.toot_count].setVolume(_root.vol);
farty[_root.toot_count].start();
_root.old_toot = _root.toot_count;
}
function poot() {
this._rotation = 50 + random(50);
_root.vel = 3 + (Math.random() * 5);
this.inset = random(30);
toot();
i = 5;
while (i >= 0) {
gassy[i] = createEmptyMovieClip("gas_node" + i, i);
gassy[i].attachMovie("gas_node", "gas_node" + i, i);
gassy[i]._y = -100 - this.inset;
gassy[i]._rotation = -21 + (i * 7);
gassy[i]._alpha = 50 + random(15);
_root.gas_count++;
gassy[i].onEnterFrame = function () {
this._y = this._y + _root.vel;
this._alpha = this._alpha - 3;
if (this._alpha <= 0) {
_root.gas_count--;
this.removeMovieClip();
}
};
i--;
}
}
var gassy = Array();
var farty = Array();
Mouse.addListener(this);
_root.gas_count = 0;
var sfx = 0;
while (sfx <= 6) {
farty[sfx] = new Sound(this);
farty[sfx].attachSound("fart_" + sfx);
sfx++;
}
this.onMouseDown = function () {
if (_root.fart_trigger) {
if (!_root.gas_count) {
poot();
}
}
};
}
onClipEvent (enterFrame) {
if (!_root.gas_count) {
if (!random(240)) {
poot();
}
}
}