Instance of Symbol 3 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 6 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 9 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 14 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
stopDrag();
}
Instance of Symbol 17 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 20 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 23 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 26 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 29 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 32 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 35 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 38 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 41 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 44 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 47 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 50 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 53 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 56 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 59 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 62 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 65 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 68 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 71 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 74 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 77 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 80 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 83 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 86 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 89 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 92 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 95 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 98 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 101 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 104 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 107 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 110 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 113 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 116 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 119 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 122 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 125 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 128 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 131 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 134 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 137 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 140 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 143 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 146 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 149 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 152 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 155 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 158 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 161 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Instance of Symbol 164 MovieClip in Frame 1
on (press) {
startDrag (this);
}
on (release) {
mx.behaviors.DepthControl.bringToFront(this);
stopDrag();
}
Symbol 165 MovieClip [__Packages.mx.behaviors.DepthControl] Frame 0
class mx.behaviors.DepthControl extends Object
{
function DepthControl () {
super();
}
static function sendToBack(target) {
var _local2 = false;
while (_local2 == false) {
sendBackward(target);
_local2 = target == getInstanceAtLowest(target._parent);
}
}
static function bringToFront(target) {
var _local2 = false;
while (_local2 == false) {
bringForward(target);
_local2 = target == getInstanceAtHighest(target._parent);
}
}
static function sendBackward(target) {
var _local2 = trackDepths(target._parent);
if (target != getInstanceAtLowest(target._parent)) {
target.swapDepths(getInstanceLowerThan(target));
}
}
static function bringForward(target) {
if (target != getInstanceAtHighest(target._parent)) {
target.swapDepths(getInstanceHigherThan(target));
}
}
static function trackDepths(mcParent) {
var _local4 = [];
for (var _local5 in mcParent) {
if (typeof(mcParent[_local5]) == "movieclip") {
_local4.push({mc:mcParent[_local5], depth:mcParent[_local5].getDepth()});
}
}
_local4.sort(orderFunc);
return(_local4);
}
static function orderFunc(a, b) {
var _local2 = Number(a.depth);
var _local1 = Number(b.depth);
if (_local2 > _local1) {
return(-1);
}
if (_local1 > _local2) {
return(1);
}
return(0);
}
static function getInstanceAtLowest(targetParent) {
var _local1 = trackDepths(targetParent);
return(_local1[_local1.length - 1].mc);
}
static function getInstanceAtHighest(targetParent) {
var _local1 = trackDepths(targetParent);
return(_local1[0].mc);
}
static function getInstanceLowerThan(target) {
var _local2 = trackDepths(target._parent);
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].mc == target) {
break;
}
_local1++;
}
return(_local2[_local1 + 1].mc);
}
static function getInstanceHigherThan(target) {
var _local2 = trackDepths(target._parent);
var _local1 = 0;
while (_local1 < _local2.length) {
if (_local2[_local1].mc == target) {
break;
}
_local1++;
}
return(_local2[_local1 - 1].mc);
}
}