Flash 6 to Flash 8

Some help on why the following works in Flash 6, but nothing above it. There’s probably some depreciated AS, but I’m not sure what. :-/ I want to make use of the filter effects only available in Flash 8.

function invisNodes() {
for (var _loc1 = 0; _loc1<nodeCount; ++_loc1) {
_level0[“node”+_loc1]._alpha = 0;
}
// end of for
}
// End of the function
function startAOD() {
removeMovieClip(node20);
_level0.node0._alpha = 100;
node0._visible = true;
centerNode = _level0.node0;
sendNodes(0);
node0.center();
getNodes(0);
}
// End of the function
function uniqueRandomIn(s, e) {
var _loc2 = e;
var _loc3 = s;
if (aRandomRange != undefined) {
delete aRandomRange;
}
// end if
aRandomRange = new Array();
for (var _loc1 = _loc3; _loc1<=_loc2; ++_loc1) {
aRandomRange.push(_loc1);
}
// end of for
}
// End of the function
function uniqueRandomOut(s2, e2) {
var _loc2 = s2;
var _loc3 = e2;
if (bRandomRange != undefined) {
delete bRandomRange;
}
// end if
bRandomRange = new Array();
for (var _loc1 = _loc2; _loc1<=_loc3; ++_loc1) {
bRandomRange.push(_loc1);
}
// end of for
}
// End of the function
function getUniqueRandomIn() {
var _loc2;
var _loc1 = random(aRandomRange.length);
_loc2 = aRandomRange[_loc1];
aRandomRange.splice(_loc1, 1);
if (_loc2 == undefined) {
return (“No More Randoms”);
} else {
return (_loc2);
}
// end else if
}
// End of the function
function getUniqueRandomOut() {
var _loc2;
var _loc1 = random(bRandomRange.length);
_loc2 = bRandomRange[_loc1];
bRandomRange.splice(_loc1, 1);
if (_loc2 == undefined) {
return (“No More Randoms”);
} else {
return (_loc2);
}
// end else if
}
// End of the function
function setInsideTargets() {
var _loc3 = this;
var _loc2;
uniqueRandomIn(0, 15);
for (var _loc1 = 0; _loc1<nodeCount; ++_loc1) {
_loc2 = _loc3.getUniqueRandomIn();
_loc3[“node”+_loc1].targetx = coords[_loc2][0];
_loc3[“node”+_loc1].targety = coords[_loc2][1];
}
// end of for
}
// End of the function
function setOutsideTargets() {
var _loc3 = this;
var _loc2;
uniqueRandomOut(16, 61);
for (var _loc1 = 0; _loc1<nodeCount; ++_loc1) {
_loc2 = _loc3.getUniqueRandomOut();
_loc3[“node”+_loc1].targetx = coords[_loc2][0];
_loc3[“node”+_loc1].targety = coords[_loc2][1];
}
// end of for
}
// End of the function
function getNodes(arrLoc) {
var _loc1 = this;
uniqueRandomIn(0, 15);
arr = node_connections[_level0[“node”+arrLoc]];
arrLength = arr.length;
for (var i=0; i<arrLength; i++) {
tempInsideRand = _loc1.getUniqueRandomIn();
_loc1[“node”+arr*].targetx = coords[tempInsideRand][0];
_loc1[“node”+arr*].targety = coords[tempInsideRand][1];
_loc1[“node”+arr*].inner();
trackArr[arr*] = true;
}
// end of for
}
// End of the function
function sendNodes(clipNumber) {
var _loc1 = this;
var _loc2 = clipNumber;
uniqueRandomOut(16, 61);
for (var i=0; i<nodeCount; i++) {
if (i != _loc2 && trackArr* == true) {
tempOutsideRand = _loc1.getUniqueRandomOut();
_loc1[“node”+i].targetx = coords[tempOutsideRand][0];
_loc1[“node”+i].targety = coords[tempOutsideRand][1];
_loc1[“node”+i].outer();
trackArr* = false;
}
// end if
}
// end of for
}
// End of the function
function init() {
var _loc2 = this;
var clipNumber;
for (var _loc3 = 0; _loc3<nodeCount; ++_loc3) {
_loc2[“node”+_loc3].nodebutton.onRelease = function() {
var _loc2 = this;
//trace(_loc2._parent);
_loc2._parent.center();
centerNode = _loc2._parent;
for (var _loc1 = 0; _loc1<nodeCount; ++_loc1) {
if (_loc2._parent == _level0[“node”+_loc1]) {
clipNumber = _loc1;
}
// end if
}
// end of for
sendNodes(clipNumber);
getNodes(clipNumber);
};
}
// end of for
}
// End of the function
var node_connections = new Array(21);
node_connections[_level0.node0] = [1, 2, 3, 4, 5];
node_connections[_level0.node1] = [0, 2, 3, 4, 5];
node_connections[_level0.node2] = [0, 1, 3, 4, 5];
node_connections[_level0.node3] = [0, 1, 2, 4, 5];
node_connections[_level0.node4] = [0, 6, 7, 8, 9];
node_connections[_level0.node5] = [0, 1, 2, 3, 4];
node_connections[_level0.node6] = [4, 10, 11, 12, 13];
node_connections[_level0.node7] = [4, 14, 15, 16];
node_connections[_level0.node8] = [4, 17, 19];
node_connections[_level0.node9] = [4, 18];
node_connections[_level0.node10] = [4, 7, 8, 9, 11, 12, 13];
node_connections[_level0.node11] = [4, 7, 8, 9, 10, 12, 13];
node_connections[_level0.node12] = [4, 7, 8, 9, 10, 11, 13];
node_connections[_level0.node13] = [4, 7, 8, 9, 10, 11, 12];
node_connections[_level0.node14] = [4, 6, 8, 9, 15, 16];
node_connections[_level0.node15] = [4, 6, 8, 9, 14, 16];
node_connections[_level0.node16] = [4, 6, 8, 9, 14, 15];
node_connections[_level0.node17] = [4, 6, 7, 9, 19];
node_connections[_level0.node18] = [4, 6, 7, 8];
node_connections[_level0.node19] = [4, 6, 7, 9, 17];
/node_connections[_level0.node20] = [21, 22, 24, 25, 26, 27, 35];
node_connections[_level0.node21] = [20, 25, 27, 35];
node_connections[_level0.node22] = [5, 20, 23, 24];
node_connections[_level0.node23] = [5, 6, 22];
node_connections[_level0.node24] = [4, 5, 6, 14, 20, 22, 25, 32];
node_connections[_level0.node25] = [20, 21, 24, 26, 27, 35];
node_connections[_level0.node26] = [1, 20, 25, 28, 35];
node_connections[_level0.node27] = [20, 21, 25, 28, 35];
node_connections[_level0.node28] = [4, 26, 29, 30, 31, 33];
node_connections[_level0.node29] = [28];
node_connections[_level0.node30] = [6, 28];
node_connections[_level0.node31] = [28, 32];
node_connections[_level0.node32] = [24, 31];
node_connections[_level0.node33] = [28, 34];
node_connections[_level0.node34] = [5, 6, 22, 33];
node_connections[_level0.node35] = [20, 21, 25, 26, 27];
node_connections[_level0.node36] = [0, 2, 5, 6, 23];
/
var coords = new Array(21);
coords[0] = [385, 3.480000E+001];
coords[1] = [385, 4.652000E+002];
coords[2] = [7.470000E+001, 250];
coords[3] = [6.753000E+002, 250];
coords[4] = [2.889000E+002, 80];
coords[5] = [2.889000E+002, 4.572000E+002];
coords[6] = [1.997000E+002, 7.660000E+001];
coords[7] = [1.997000E+002, 4.258000E+002];
coords[8] = [1.143000E+002, 1.444000E+002];
coords[9] = [1.143000E+002, 3.592000E+002];
coords[10] = [461, 4.572000E+002];
coords[11] = [461, 80];
coords[12] = [550, 4.258000E+002];
coords[13] = [550, 7.660000E+001];
coords[14] = [6.356000E+002, 144];
coords[15] = [6.356000E+002, 3.592000E+002];
coords[16] = [-250, -70];
coords[17] = [-250, 20];
coords[18] = [-250, 90];
coords[19] = [-250, 170];
coords[20] = [-250, 250];
coords[21] = [-250, 330];
coords[22] = [-250, 410];
coords[23] = [-250, 490];
coords[24] = [-250, 570];
coords[25] = [1000, -70];
coords[26] = [1000, 10];
coords[27] = [1000, 90];
coords[28] = [1000, 170];
coords[29] = [1000, 250];
coords[30] = [1000, 330];
coords[31] = [1000, 410];
coords[32] = [1000, 490];
coords[33] = [1000, 570];
coords[34] = [-250, -250];
coords[35] = [-75, -250];
coords[36] = [0, -250];
coords[37] = [75, -250];
coords[38] = [150, -250];
coords[39] = [225, -250];
coords[40] = [300, -250];
coords[41] = [375, -250];
coords[42] = [450, -250];
coords[43] = [525, -250];
coords[44] = [600, -250];
coords[45] = [675, -250];
coords[46] = [750, -250];
coords[47] = [820, -250];
coords[48] = [1000, -250];
coords[53] = [-150, 750];
coords[54] = [-75, 750];
coords[49] = [0, 750];
coords[50] = [75, 750];
coords[51] = [150, 750];
coords[52] = [225, 750];
coords[53] = [300, 750];
coords[54] = [375, 750];
coords[55] = [450, 750];
coords[56] = [525, 750];
coords[57] = [600, 750];
coords[58] = [675, 750];
coords[59] = [750, 750];
coords[60] = [825, 750];
coords[61] = [1000, 750];
var nodeCount = 21;
inertia = 8.500000E-001;
k = 1.500000E-002;
var trackArr = new Array(nodeCount);
var a = 0;
while (a<nodeCount) {
trackArr[a] = true;
++a;
}
// end while
invisNodes();
node0._visible = false;
attachMovie(“startMovie”,“node20”,0);
_level0.node20._x = 385;
_level0.node20._y = 275;
_level0.node20.startButton.onRelease = function() {
startAOD();
};
MovieClip.prototype.center = function() {
var _loc1 = this;
_loc1.onEnterFrame = function() {
var _loc1 = this;
_loc1.targetx = 185;
_loc1.targety = 175;
_loc1.x = -_loc1._x+_loc1.targetx;
_loc1.y = -_loc1._y+_loc1.targety;
_loc1.xp = _loc1.xpinertia+_loc1.xk;
_loc1.yp = _loc1.ypinertia+_loc1.yk;
_loc1._alpha = 100-100Math.sqrt(Math.pow(_loc1.x, 2)+Math.pow(_loc1.y, 2))/600;
_loc1._xscale = 100-100
Math.sqrt(Math.pow(_loc1.x, 2)+Math.pow(_loc1.y, 2))/900;
_loc1._yscale = 100-100Math.sqrt(Math.pow(_loc1.x, 2)+Math.pow(_loc1.y, 2))/900;
_loc1._x = _loc1._x+_loc1.xp;
_loc1._y = _loc1._y+_loc1.yp;
_loc1.deltax = Math.abs(_loc1._x-_loc1.targetx);
_loc1.deltay = Math.abs(_loc1._y-_loc1.targety);
if (_loc1.deltax>0 && _loc1.deltax<1.500000E-001 && (_loc1.deltay>0 && _loc1.deltay<1.500000E-001)) {
_loc1._x = _loc1.targetx;
_loc1._y = _loc1.targety;
delete _loc1.onEnterFrame;
}
// end if
};
};
MovieClip.prototype.outer = function() {
var _loc1 = this;
_loc1.onEnterFrame = function() {
var _loc1 = this;
_loc1.x = -_loc1._x+_loc1.targetx;
_loc1.y = -_loc1._y+_loc1.targety;
_loc1.xp = _loc1.xp
inertia+_loc1.xk;
_loc1.yp = _loc1.yp
inertia+_loc1.yk;
_loc1.xCenterReference = -_loc1._x+385;
_loc1.yCenterReference = -_loc1._y+275;
_loc1._alpha = 100-100
Math.sqrt(Math.pow(_loc1.xCenterReference, 2)+Math.pow(_loc1.yCenterReference, 2))/600;
_loc1._xscale = 100-100Math.sqrt(Math.pow(_loc1.xCenterReference, 2)+Math.pow(_loc1.yCenterReference, 2))/900;
_loc1._yscale = 100-100
Math.sqrt(Math.pow(_loc1.xCenterReference, 2)+Math.pow(_loc1.yCenterReference, 2))/900;
_loc1._x = _loc1._x+_loc1.xp;
_loc1._y = _loc1._y+_loc1.yp;
_loc1.deltax = Math.abs(_loc1._x-_loc1.targetx);
_loc1.deltay = Math.abs(_loc1._y-_loc1.targety);
};
};
init();
stop();