Frame 2
if (_root._framesloaded >= _root._totalframes) {
_root.gotoAndStop(3);
} else {
_root.gotoAndPlay(1);
}
Frame 3
Object.environment = this;
this.cam = {x:0, y:0, z:500, dx:0, dy:0, dz:-500};
this.fl = 840;
this.createEmptyMovieClip("space", 1);
space._x = 300;
space._y = 169;
this.somewords = "wind breeze storm stormy tornado text space three dimensional infinite recursive instance object distort environmental atmospheric blow gush whoosh thrash whirl push roar rush caress flow swoop";
this.wordList = new Array();
this.wordList = this.somewords.split(" ");
this.wordMax = 20;
n = 0;
while (n < this.wordMax) {
var word = Object.environment.wordList[n];
var x = (random(500) - 250);
var y = (random(337) - 169);
var z = (random(Object.environment.fl * 2) - Object.environment.fl);
nombre = "word" + String(depth++);
initialization = {txtword:word, x:x, y:y, z:z};
space.attachMovie("spaceWord", nombre, depth, initialization);
n++;
}
this.onEnterFrame = function () {
var _local1 = this;
var _local2 = _root;
_local1.cam.dz = _local1.cam.dz + 0.02;
_local1.cam.x = _local1.cam.x + ((_local1.cam.dx - _local1.cam.x) / 20);
_local1.cam.y = _local1.cam.y + ((_local1.cam.dy - _local1.cam.y) / 20);
_local1.cam.z = _local1.cam.z + ((_local1.cam.dz - _local1.cam.z) / 50);
_local2.bg.overlay._y = _local1.cam.y / -2;
_local2.bg.overlay._x = _local1.cam.x / -3;
_local2.bg.overlay._xscale = 110 - Math.abs(_local2.bg.overlay._x / 17);
_local2.bg.overlay._yscale = 110 - Math.abs(_local2.bg.overlay._y / 17);
};
poopdick = new Sound(this);
poopdick.attachSound("musics");
poopdick.start(0, 0);
poopdick.onSoundComplete = function () {
this.start(0, 0);
};
stop();
Symbol 19 MovieClip [spaceWord] Frame 1
#initclip 1
function SpaceWord() {
var _local1 = this;
_local1.zing = new Sound(_local1);
_local1.zing.attachSound("zing");
_local1.btnSquare.onRollOver = function () {
var _local1 = this;
Object.environment.cam.dx = _local1._parent.x;
Object.environment.cam.dy = _local1._parent.y;
Object.environment.cam.dz = _local1._parent.z + (Object.environment.fl * 1.5);
_local1.enabled = false;
_local1._parent.nailed = true;
_local1._parent.xvel = (((Math.random() * 5) * 2) - 5) * 2;
_local1._parent.yvel = (((Math.random() * 5) * 2) - 5) * 2;
_local1._parent.zvel = 10 + (Math.random() * 10);
_local1._parent.rvel = (((Math.random() * 5) * 2) - 5) * 2;
var _local3 = _local1._parent._x * 0.5;
var zActual = ((Object.environment.fl + _local1._parent.z) - Object.environment.cam.z);
var _local2 = (500 / zActual) * 45;
_local1._parent.zing.setPan(_local3);
_local1._parent.zing.setVolume(_local2);
_local1._parent.zing.start(0, 0);
};
_local1.btnSquare.onPress = function () {
};
_local1.onEnterFrame = _local1.render;
}
SpaceWord.prototype = new MovieClip();
SpaceWord.prototype.render = function () {
var _local1 = this;
var _local3 = (Object.environment.fl + _local1.z) - Object.environment.cam.z;
if (_local3 > 0) {
var _local2 = Object.environment.fl / _local3;
_local1._x = (_local1.x - Object.environment.cam.x) * _local2;
_local1._y = (_local1.y - Object.environment.cam.y) * _local2;
if (_local1.nailed) {
_local1.y = _local1.y - _local1.yvel;
_local1.x = _local1.x + _local1.xvel;
_local1._rotation = _local1._rotation + _local1.rvel;
}
_local1._xscale = _local2 * 100;
_local1._yscale = _local2 * 100;
_local1._alpha = 100 - (((99 * _local3) / Object.environment.fl) * 0.5);
} else {
_local1.z = _local1.z + (Object.environment.fl * 2);
_local1.x = random(500) - 250;
_local1.y = random(337) - 169;
_local1.nailed = false;
_local1._rotation = 0;
delete _local1.zvel;
_local1.btnSquare.enabled = true;
_local1.btnSquare._visible = true;
}
};
SpaceWord.prototype.setWord = function (s) {
this.txtWord = s;
};
SpaceWord.prototype.setPosition = function (x, y, z) {
var _local1 = this;
_local1.x = x;
_local1.y = y;
_local1.z = z;
};
Object.registerClass("spaceWord", SpaceWord);
#endinitclip
Instance of Symbol 18 MovieClip "baller" in Symbol 19 MovieClip [spaceWord] Frame 1
onClipEvent (load) {
var mf = this._totalframes;
this.gotoAndStop(random(mf) + 1);
}