Frame 1 (1.39 KiB) ●
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_Doomsong", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.Doomsong = new Sound(this._parent.BS_Doomsong);
} else {
this.createEmptyMovieClip("_Doomsong_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.Doomsong = new Sound(this.BS_Doomsong);
}
_global.Behaviors.Sound.Doomsong.attachSound("DoomSong.mp3");
_global.Behaviors.Sound.Doomsong.start(0, 1);
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_Zimtheme", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.Zimtheme = new Sound(this._parent.BS_Zimtheme);
} else {
this.createEmptyMovieClip("_Zimtheme_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.Zimtheme = new Sound(this.BS_Zimtheme);
}
_global.Behaviors.Sound.Zimtheme.attachSound("Invader Zim - Theme.mp3");
_global.Behaviors.Sound.Zimtheme.start(0, 1);
stop();
Instance of Symbol 3 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 5 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 7 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 9 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 11 MovieClip in Frame 1 (110 B)
on (press) {
startDrag (this);
mx.behaviors.DepthControl.bringToFront(this);
}
on (release) {
stopDrag();
}
Instance of Symbol 13 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 15 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 17 MovieClip in Frame 1 (110 B)
on (press) {
startDrag (this);
mx.behaviors.DepthControl.bringToFront(this);
}
on (release) {
stopDrag();
}
Instance of Symbol 19 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 21 MovieClip in Frame 1 (110 B)
on (press) {
startDrag (this);
mx.behaviors.DepthControl.bringToFront(this);
}
on (release) {
stopDrag();
}
Instance of Symbol 23 MovieClip in Frame 1 (110 B)
on (press) {
startDrag (this);
mx.behaviors.DepthControl.bringToFront(this);
}
on (release) {
stopDrag();
}
Instance of Symbol 25 MovieClip in Frame 1 (110 B)
on (press) {
startDrag (this);
mx.behaviors.DepthControl.bringToFront(this);
}
on (release) {
stopDrag();
}
Instance of Symbol 28 MovieClip in Frame 1 (110 B)
on (press) {
startDrag (this);
mx.behaviors.DepthControl.bringToFront(this);
}
on (release) {
stopDrag();
}
Instance of Symbol 30 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 32 MovieClip in Frame 1 (110 B)
on (press) {
startDrag (this);
mx.behaviors.DepthControl.bringToFront(this);
}
on (release) {
stopDrag();
}
Instance of Symbol 34 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 36 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 38 MovieClip in Frame 1 (110 B)
on (press) {
startDrag (this);
mx.behaviors.DepthControl.bringToFront(this);
}
on (release) {
stopDrag();
}
Instance of Symbol 40 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 42 MovieClip in Frame 1 (110 B)
on (press) {
startDrag (this);
mx.behaviors.DepthControl.bringToFront(this);
}
on (release) {
stopDrag();
}
Instance of Symbol 44 MovieClip in Frame 1 (110 B)
on (press) {
startDrag (this);
mx.behaviors.DepthControl.bringToFront(this);
}
on (release) {
stopDrag();
}
Instance of Symbol 48 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 50 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 52 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 54 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 58 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 60 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 62 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 64 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 66 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Instance of Symbol 68 MovieClip in Frame 1 (61 B)
on (press) {
startDrag ("");
}
on (release) {
stopDrag();
}
Symbol 74 Button (687 B)
on (release) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_ZimTheme", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.ZimTheme = new Sound(this._parent.BS_ZimTheme);
} else {
this.createEmptyMovieClip("_ZimTheme_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.ZimTheme = new Sound(this.BS_ZimTheme);
}
_global.Behaviors.Sound.ZimTheme.loadSound("Invader Zim - Theme.MP3", true);
}
Symbol 78 Button (676 B)
on (release) {
if (_global.Behaviors == null) {
_global.Behaviors = {};
}
if (_global.Behaviors.Sound == null) {
_global.Behaviors.Sound = {};
}
if (typeof(this.createEmptyMovieClip) == "undefined") {
this._parent.createEmptyMovieClip("BS_DoomSong", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.DoomSong = new Sound(this._parent.BS_DoomSong);
} else {
this.createEmptyMovieClip("_DoomSong_", new Date().getTime() - (Math.floor(new Date().getTime() / 10000) * 10000));
_global.Behaviors.Sound.DoomSong = new Sound(this.BS_DoomSong);
}
_global.Behaviors.Sound.DoomSong.loadSound("DoomSong.MP3", true);
}
Symbol 83 MovieClip [__Packages.mx.behaviors.DepthControl] Frame 0 (2.14 KiB) ●
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);
}
}