Frame 1
ifFrameLoaded (2) {
gotoAndPlay (2);
}
Frame 2
ifFrameLoaded (3) {
gotoAndPlay (3);
}
Frame 3
angle = [];
Color.prototype.negative = function () {
var trans = new Object();
trans.ra = (trans.ga = (trans.ba = -100));
trans.rb = (trans.gb = (trans.bb = 255));
this.setTransform(trans);
};
Color.prototype.setTint = function (r, g, b, amount) {
var percent = (100 - amount);
var trans = new Object();
trans.ra = (trans.ga = (trans.ba = percent));
var ratio = (amount / 100);
trans.rb = r * ratio;
trans.gb = g * ratio;
trans.bb = b * ratio;
this.setTransform(trans);
};
Color.prototype.setBrightness = function (bright) {
var percent = (100 - Math.abs(bright));
var offset = 0;
if (0 < bright) {
offset = 256 * (bright / 100);
}
var trans = new Object();
trans.ra = (trans.ga = (trans.ba = percent));
trans.rb = (trans.gb = (trans.bb = offset));
this.setTransform(trans);
};
Color.prototype.setTintOffset = function (r, g, b) {
var trans = new Object();
trans.rb = r;
trans.gb = g;
trans.bb = b;
this.setTransform(trans);
};
Color.prototype.setBrightOffset = function (offset) {
var trans = new Object();
trans.rb = (trans.gb = (trans.bb = offset));
this.setTransform(trans);
};
Color.prototype.reset = function () {
var trans = new Object();
trans.ra = (trans.ga = (trans.ba = 100));
trans.rb = (trans.gb = (trans.bb = 0));
this.setTransform(trans);
};
Instance of Symbol 77 MovieClip "fractal" in Frame 3
onClipEvent (load) {
col = new Color(this);
}
Instance of Symbol 78 MovieClip "fps" in Frame 3
onClipEvent (enterFrame) {
this.update();
}
Frame 4
_quality = "MEDIUM";
Frame 13
stop();
Symbol 2 MovieClip Frame 1
gotoAndPlay (2);
Symbol 2 MovieClip Frame 4
_parent.nextBranch();
Symbol 2 MovieClip Frame 255
gotoAndPlay (42);
Symbol 3 MovieClip [piece] Frame 1
function init() {
myName = String(_name);
myLevel = Number(myName.substr(1, 1));
myBranch = Number(myName.substr(3, 1));
maxLevels = 6;
maxBranches = 2;
numBranches = 0;
graphic._alpha = 50;
if (myLevel == 0) {
live = null;
}
doColor();
}
function doColor() {
var col = new Color(this);
var parentCol = _parent.col.getTransform();
var bcols = [];
var colTransform = {ra:255, ga:255, ba:255};
bcols[1] = colTransform;
var colTransform2 = {ra:0, ga:0, ba:255};
bcols[2] = colTransform2;
if (1 < myLevel) {
col.setTint(bcols[myBranch].ra, bcols[myBranch].ga, bcols[myBranch].ba, 30);
}
}
function live() {
_rotation = _root.angle[myBranch];
}
function newBranch(i) {
if (myLevel < maxLevels) {
newName = new Array(maxBranches);
newName[i] = (("p" + String(myLevel + 1)) + "_") + i;
attachMovie("piece", newName[i], i);
var mc = eval (newName[i]);
var source = _root.fractal.trans[i];
mc._x = source._x;
mc._y = source._y;
mc._xscale = source._xscale;
mc._yscale = source._yscale;
mc._rotation = source._rotation;
numBranches++;
}
}
function nextBranch() {
if (myLevel < maxLevels) {
if (numBranches == 0) {
newBranch(1);
} else if (numBranches == 1) {
newBranch(2);
} else {
_parent.nextBranch();
}
} else {
_parent.nextBranch();
}
}
transform1._visible = false;
init();
Symbol 3 MovieClip [piece] Frame 2
live();
Symbol 3 MovieClip [piece] Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 3 MovieClip [piece] Frame 5
stop();
Symbol 4 MovieClip [piece] Frame 1
function init() {
myName = String(_name);
myLevel = Number(myName.substr(1, 1));
myBranch = Number(myName.substr(3, 1));
maxLevels = 6;
maxBranches = 2;
numBranches = 0;
graphic._alpha = 50;
if (myLevel == 0) {
live = null;
}
doColor();
}
function doColor() {
var col = new Color(this);
var parentCol = _parent.col.getTransform();
var bcols = [];
var colTransform = {ra:255, ga:255, ba:255};
bcols[1] = colTransform;
var colTransform2 = {ra:0, ga:0, ba:255};
bcols[2] = colTransform2;
if (1 < myLevel) {
col.setTint(bcols[myBranch].ra, bcols[myBranch].ga, bcols[myBranch].ba, 30);
}
}
function live() {
_rotation = _root.angle[myBranch];
}
function newBranch(i) {
if (myLevel < maxLevels) {
newName = new Array(maxBranches);
newName[i] = (("p" + String(myLevel + 1)) + "_") + i;
attachMovie("piece", newName[i], i);
var mc = eval (newName[i]);
var source = _root.fractal.trans[i];
mc._x = source._x;
mc._y = source._y;
mc._xscale = source._xscale;
mc._yscale = source._yscale;
mc._rotation = source._rotation;
numBranches++;
}
}
function nextBranch() {
if (myLevel < maxLevels) {
if (numBranches == 0) {
newBranch(1);
} else if (numBranches == 1) {
newBranch(2);
} else {
_parent.nextBranch();
}
} else {
_parent.nextBranch();
}
}
transform1._visible = false;
init();
Symbol 4 MovieClip [piece] Frame 2
live();
Symbol 4 MovieClip [piece] Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 4 MovieClip [piece] Frame 5
stop();
Symbol 77 MovieClip Frame 1
transform1._visible = false;
transform2._visible = false;
trans = new Array(null, transform1, transform2);
Instance of Symbol 75 MovieClip "transform1" in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.recorder.mode != "playback") {
_rotation = (_root._xmouse - 200);
_root.angle[2] = _rotation;
}
}
Instance of Symbol 76 MovieClip "transform2" in Symbol 77 MovieClip Frame 1
onClipEvent (enterFrame) {
if (_root.recorder.mode != "playback") {
_rotation = (_root._ymouse - 150);
_root.angle[1] = _rotation;
}
}
Symbol 77 MovieClip Frame 7
stop();
Symbol 78 MovieClip Frame 1
function update() {
t++;
if ((t % 20) == 0) {
now = getTimer();
delay = now - then;
fps = 20000 / delay;
then = now;
adjustQuality(fps);
}
}
function adjustQuality(f) {
if (_quality == "MEDIUM") {
if (25 < f) {
_quality = "HIGH";
}
} else if (_quality == "HIGH") {
if (f < 16) {
_quality = "MEDIUM";
}
}
}