olegpaschenko: (masq)
[personal profile] olegpaschenko
[Error: Irreparable invalid markup ('<font [...] monaco,>') in entry. Owner must fix manually. Raw contents below.]

<pre><font face=Courier, Monaco, Monaco CY size = -3>
_root.ghostHead.onEnterFrame = function () {
with (ghostPart0) {
speedX = speedX * friction + (_root._xmouse - _x) * ratio;
speedY = speedY * friction + (_root._ymouse - _y) * ratio;
_x = _x + speedX;
_y = _y + speedY;
}
for (i = 1; i &lt;= 20; i++) {
var myGhostPart = eval ("ghostPart" + i);
var prevGhostPart = eval ("ghostPart" + String (i - 1));
with (myGhostPart) {
_xscale = _yscale = 100 - i * 5;
_x = _x - (_x - prevGhostPart._x) / i + _root.neurositX;
_y = _y - (_y - prevGhostPart._y) / i + _root.neurositY + 2;
_alpha = 100 - 5 * i;
}
}
_root.calmDown = Boolean (random (2));
_root.dontGoInsane = Boolean (random (_root.addLSD));
if (_root.dontGoInsane) {
if (!_root.calmDown) {
_root.dispersion = Math.floor (Math.sqrt (
Math.pow ((_root._xmouse - _root.ghostPart0._x), 2)
+ Math.pow ((_root._ymouse - _root.ghostPart0._y), 2)) / 2);
_root.neurositX = _root.dispersion / 2 - random (_root.dispersion);
_root.neurositY = _root.dispersion / 2 - random (_root.dispersion);
} else {
trace ("calm down!!");
_root.neurositX = 0;
_root.neurositY = 0;
_root.addLSD = 200;
}
} else {
trace ("go insane!!");
_root.neurositX = 200 - random (401);
_root.neurositY = 200 - random (401);
}
};
_root.ghostHead.onMouseMove = function () {
_root.addLSD = 500;
};
</font></pre>

Profile

olegpaschenko: (Default)
olegpaschenko

July 2012

S M T W T F S
1 234 5 67
89 10 11121314
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Apr. 7th, 2026 08:51 pm
Powered by Dreamwidth Studios