Frame 1
function getBetween(lOw, hIgh) {
ggr = 0;
while (((lOw % 1) != 0) || ((hIgh % 1) != 0)) {
ggr++;
lOw = lOw * 10;
hIgh = hIgh * 10;
}
svar = lOw + Math.floor(Math.random() * ((hIgh + 1) - lOw));
while (ggr > 0) {
ggr--;
svar = svar / 10;
}
return(svar);
}
function MakeSlave(Slicie, section) {
slaves++;
if (Slicie == 3) {
Tre++;
if (Tre > 29) {
Tre = 2;
}
dEpth = Tre;
} else if (Slicie == 4) {
Fyra++;
if (Fyra > 59) {
Fyra = 31;
}
dEpth = Fyra;
} else if (Slicie == 5) {
Fem++;
if (Fem > 99) {
Fem = 61;
}
dEpth = Fem;
}
duplicateMovieClip (master, "slave" + slaves, dEpth * -1);
_root["slave" + slaves].slicer = Slicie;
setProperty("slave" + slaves, _height , master._height / Slicie);
setProperty("slave" + slaves, _width , master._width / Slicie);
if (slaves < 5) {
setProperty("slave" + slaves, _y , getBetween(0, 400));
setProperty("slave" + slaves, _x , getBetween(0, 550));
} else {
setProperty("slave" + slaves, _y , ((master._width / Slicie) * -1) - 2);
if (section == 1) {
setProperty("slave" + slaves, _x , getBetween(0, 550));
} else {
setProperty("slave" + slaves, _x , getBetween(551, 951));
}
}
setProperty("slave" + slaves, _rotation , getBetween(0, 359));
}
Tre = 1;
Fyra = 30;
Fem = 60;
slaves = 0;
master.slicer = 1;
Tiimer = 6;
MakeSlave(getBetween(3, 5), 0);
MakeSlave(getBetween(3, 5), 0);
MakeSlave(getBetween(3, 5), 0);
MakeSlave(getBetween(3, 5), 0);
MakeSlave(getBetween(3, 5), 1);
MakeSlave(getBetween(3, 5), 2);
theMill = 100;
theMilldir = -1;
theMillamount = 10;
theMillamountdir = 1;
engine.onEnterFrame = function () {
if (Math.random() > 0.8) {
theMillamountdir = ((theMillamountdir == 1) ? -1 : 1);
}
if (theMillamount > 15) {
theMillamountdir = -1;
}
if (theMillamount < 5) {
theMillamountdir = 1;
}
theMillamount = theMillamount + (1 * theMillamountdir);
if (Math.random() > 0.8) {
theMilldir = ((theMilldir == 1) ? -1 : 1);
}
if (theMill > 100) {
theMilldir = -1;
}
if (theMill < 50) {
theMilldir = 1;
}
theMill = theMill + (theMillamount * theMilldir);
mill._alpha = theMill;
i = slaves - 50;
while (i <= slaves) {
if (i > 0) {
if (getProperty("slave" + i, _x) > -200) {
setProperty("slave" + i, _rotation , getProperty("slave" + i, _rotation) + 7);
setProperty("slave" + i, _x , getProperty("slave" + i, _x) - 7);
if (_root["slave" + i].getDepth() < -60) {
DepthAdjust = 3;
} else if (_root["slave" + i].getDepth() < -30) {
DepthAdjust = 2;
} else {
DepthAdjust = 1;
}
setProperty("slave" + i, _y , getProperty("slave" + i, _y) + (10 / DepthAdjust));
if ((getProperty("slave" + i, _y) > (getProperty("slave" + i, _width) + 402)) || (getProperty("slave" + i, _x) < ((getProperty("slave" + i, _width) * -1) - 2))) {
setProperty("slave" + i, _x , -200);
unloadMovie ("slave" + i);
removeMovieClip("slave" + i);
}
}
}
i++;
}
if (((Math.random() > 0.4) && (Tiimer <= 0)) || (Tiimer < -24)) {
MakeSlave(getBetween(3, 5), 1);
MakeSlave(getBetween(3, 5), 2);
Tiimer = 6;
} else {
Tiimer--;
}
};
Symbol 6 MovieClip Frame 1
var filter = (new flash.filters.BlurFilter(0, 0, 3));
var filterArray = new Array();
filterArray.push(filter);
rip.filters = filterArray;
rip.blurred = 3 / slicer;
blurr = 3 / slicer;
blurrdir = 10;
var tw1 = (new mx.transitions.Tween(rip, "blurred", mx.transitions.easing.None.easeNone, rip.blurred, 15, 8, false));
tw1.onMotionChanged = function () {
blurr = blurr + (1 * blurrdir);
if (blurr > (30 / slicer)) {
blurrdir = -3 / slicer;
} else if (blurr < 0) {
blurrdir = 10 / slicer;
}
filter.blurX = blurr + (Math.random() * (50 / slicer));
filter.blurY = blurr;
rip.filters = filterArray;
};
tw1.onMotionFinished = function () {
this.yoyo();
};
Xorig = rip._x;
X = Xorig;
Xdir = -1 / slicer;
Yorig = rip._y;
blur = 0;
blurdir = 1;
rip.onEnterFrame = function () {
if (X < (Xorig - (10 / slicer))) {
Xdir = 10 / slicer;
} else if (X > (Xorig + (10 / slicer))) {
Xdir = -1 / slicer;
}
X = X + ((1 / slicer) * Xdir);
rip._x = X;
rip._y = Yorig;
if (Math.random() > 0.8) {
rip._x = X + (10 / slicer);
}
if (Math.random() > 0.8) {
rip._y = Yorig - (2 / slicer);
} else if (Math.random() > 0.8) {
rip._y = Yorig + (2 / slicer);
}
if (Math.random() > 0.5) {
var _local1 = new flash.filters.BlurFilter(0, 0, 3);
ranX = filter.blurX - (Math.random() * (15 / slicer));
ranY = filter.blurY - (Math.random() * (15 / slicer));
if (ranX < 0) {
ranX = 5 / slicer;
}
if (ranY < 0) {
ranY = 5 / slicer;
}
_local1.blurX = ranX;
_local1.blurY = ranY;
var _local2 = new Array();
_local2.push(_local1);
rip.filters = _local2;
}
};
Symbol 11 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon
{
function OnEnterFrameBeacon () {
}
static function init() {
var _local4 = _global.MovieClip;
if (!_root.__OnEnterFrameBeacon) {
mx.transitions.BroadcasterMX.initialize(_local4);
var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876);
_local3.onEnterFrame = function () {
_global.MovieClip.broadcastMessage("onEnterFrame");
};
}
}
static var version = "1.1.0.52";
}
Symbol 12 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX
{
var _listeners;
function BroadcasterMX () {
}
static function initialize(o, dontCreateArray) {
if (o.broadcastMessage != undefined) {
delete o.broadcastMessage;
}
o.addListener = mx.transitions.BroadcasterMX.prototype.addListener;
o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener;
if (!dontCreateArray) {
o._listeners = new Array();
}
}
function addListener(o) {
removeListener(o);
if (broadcastMessage == undefined) {
broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage;
}
return(_listeners.push(o));
}
function removeListener(o) {
var _local2 = _listeners;
var _local3 = _local2.length;
while (_local3--) {
if (_local2[_local3] == o) {
_local2.splice(_local3, 1);
if (!_local2.length) {
broadcastMessage = undefined;
}
return(true);
}
}
return(false);
}
function broadcastMessage() {
var _local5 = String(arguments.shift());
var _local4 = _listeners.concat();
var _local6 = _local4.length;
var _local3 = 0;
while (_local3 < _local6) {
_local4[_local3][_local5].apply(_local4[_local3], arguments);
_local3++;
}
}
static var version = "1.1.0.52";
}
Symbol 13 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween
{
var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime;
function Tween (obj, prop, func, begin, finish, duration, useSeconds) {
mx.transitions.OnEnterFrameBeacon.init();
if (!arguments.length) {
return;
}
this.obj = obj;
this.prop = prop;
this.begin = begin;
position = (begin);
this.duration = (duration);
this.useSeconds = useSeconds;
if (func) {
this.func = func;
}
this.finish = (finish);
_listeners = [];
addListener(this);
start();
}
function set time(t) {
prevTime = _time;
if (t > duration) {
if (looping) {
rewind(t - _duration);
update();
broadcastMessage("onMotionLooped", this);
} else {
if (useSeconds) {
_time = _duration;
update();
}
stop();
broadcastMessage("onMotionFinished", this);
}
} else if (t < 0) {
rewind();
update();
} else {
_time = t;
update();
}
//return(time);
}
function get time() {
return(_time);
}
function set duration(d) {
_duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d));
//return(duration);
}
function get duration() {
return(_duration);
}
function set FPS(fps) {
var _local2 = isPlaying;
stopEnterFrame();
_fps = fps;
if (_local2) {
startEnterFrame();
}
//return(FPS);
}
function get FPS() {
return(_fps);
}
function set position(p) {
setPosition(p);
//return(position);
}
function setPosition(p) {
prevPos = _pos;
obj[prop] = (_pos = p);
broadcastMessage("onMotionChanged", this, _pos);
updateAfterEvent();
}
function get position() {
return(getPosition());
}
function getPosition(t) {
if (t == undefined) {
t = _time;
}
return(func(t, begin, change, _duration));
}
function set finish(f) {
change = f - begin;
//return(finish);
}
function get finish() {
return(begin + change);
}
function continueTo(finish, duration) {
begin = position;
this.finish = (finish);
if (duration != undefined) {
this.duration = (duration);
}
start();
}
function yoyo() {
continueTo(begin, time);
}
function startEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.addListener(this);
} else {
_intervalID = setInterval(this, "onEnterFrame", 1000 / _fps);
}
isPlaying = true;
}
function stopEnterFrame() {
if (_fps == undefined) {
_global.MovieClip.removeListener(this);
} else {
clearInterval(_intervalID);
}
isPlaying = false;
}
function start() {
rewind();
startEnterFrame();
broadcastMessage("onMotionStarted", this);
}
function stop() {
stopEnterFrame();
broadcastMessage("onMotionStopped", this);
}
function resume() {
fixTime();
startEnterFrame();
broadcastMessage("onMotionResumed", this);
}
function rewind(t) {
_time = ((t == undefined) ? 0 : (t));
fixTime();
update();
}
function fforward() {
time = (_duration);
fixTime();
}
function nextFrame() {
if (useSeconds) {
time = ((getTimer() - _startTime) / 1000);
} else {
time = (_time + 1);
}
}
function onEnterFrame() {
nextFrame();
}
function prevFrame() {
if (!useSeconds) {
time = (_time - 1);
}
}
function toString() {
return("[Tween]");
}
function fixTime() {
if (useSeconds) {
_startTime = getTimer() - (_time * 1000);
}
}
function update() {
position = (getPosition(_time));
}
static var version = "1.1.0.52";
static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init();
static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true);
function func(t, b, c, d) {
return(((c * t) / d) + b);
}
}
Symbol 14 MovieClip [__Packages.mx.transitions.easing.None] Frame 0
class mx.transitions.easing.None
{
function None () {
}
static function easeNone(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeIn(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static function easeInOut(t, b, c, d) {
return(((c * t) / d) + b);
}
static var version = "1.1.0.52";
}