Frame 1
protocol = _url.substr(0, _url.indexOf(":"));
if (protocol == "file") {
okToPlay = false;
} else if (protocol == "http") {
doubleSlash = _url.indexOf("//");
server = _url.substr(doubleSlash + 2, (_url.indexOf("/", doubleSlash + 2) - doubleSlash) - 2);
server = server.toUpperCase();
if (server.indexOf("WWW.") != -1) {
server = server.substr(server.indexOf("WWW.") + 4, server.length);
}
if (server.indexOf("STTOS.COM") != -1) {
okToPlay = true;
} else {
okToPlay = false;
}
}
Frame 2
if (okToPlay != true) {
_root.warning_message.gotoAndStop(2);
stop();
}
Frame 3
stop();
Frame 4
function viewscreenOn() {
if (_root.viewscreen_on != 1) {
_root.viewscreen_on = 1;
_root.playSound("viewscreenmag");
_root.viewscreen1.gotoAndPlay(2);
_root.viewscreen_inst.gotoAndStop(2);
waveformshape("moving", 10, 90, 40, 20, 15);
}
}
function viewscreenOff() {
_root.viewscreen_on = 0;
_root.viewscreen1.gotoAndStop(1);
_root.viewscreen_inst.gotoAndStop(1);
waveformshape("moving", 15, 90, 80, 20, 15);
if (_root.pictures_large.getBytesLoaded()) {
playPics = "off";
cyclingPicturesOff();
dial_position(1);
}
}
function starfield(moving_static, speed) {
if (moving_static == "moving") {
_root.starfieldSpeed = speed;
_root.warp_inst.gotoAndStop(2);
_root.powerdown_inst.gotoAndStop(1);
if (_root.starfieldOverride != 1) {
_root.starfieldmoving1.gotoAndPlay("start");
_root.viewscreenBack1.staticStarfield1.gotoAndPlay(2);
}
}
if (moving_static == "static") {
_root.warp_inst.gotoAndStop(1);
_root.powerdown_inst.gotoAndStop(2);
if (speed > 0) {
} else {
_root.starfieldSpeed = 0;
}
_root.starfieldmoving1.gotoAndStop(1);
_root.viewscreenBack1.staticStarfield1.gotoAndPlay(50);
}
}
function movieClips(clip, turnOff) {
if ((((clip == "redplanet") || (clip == "all")) || (clip == "allspace")) || (clip == "staticStarfield")) {
if (turnOff == 1) {
_root.redplanet1.gotoAndStop(1);
}
}
if (((clip == "klingon") || (clip == "all")) || (clip == "allspace")) {
if (turnOff == 1) {
_root.klingon1.gotoAndStop(1);
}
}
if (((clip == "movingStarfield") || (clip == "all")) || (clip == "allspace")) {
if (turnOff == 1) {
_root.starfield("static", 0);
}
}
if ((clip == "transporter") || (clip == "all")) {
if (turnOff == 1) {
_root.transporter1.gotoAndStop(1);
}
}
if (((clip == "explosion") || (clip == "all")) || (clip == "allspace")) {
if (turnOff == 1) {
_root.explosion1.gotoAndStop(1);
}
}
if (((clip == "burn") || (clip == "all")) || (clip == "allspace")) {
if (turnOff == 1) {
_root.burn1.gotoAndStop(1);
}
}
if (((clip == "torpedo") || (clip == "all")) || (clip == "allspace")) {
if (turnOff == 1) {
_root.torpedo1.gotoAndStop(1);
}
}
if (((clip == "phaser") || (clip == "all")) || (clip == "allspace")) {
if (turnOff == 1) {
_root.phaser1.gotoAndStop(1);
}
}
if ((clip == "oscilloscopeWave") || (clip == "all")) {
if (turnOff == 1) {
_root.oscilloscope.wave.gotoAndStop(1);
}
}
if ((clip == "redalert") || (clip == "all")) {
if (turnOff == 1) {
_root.redalert1.gotoAndStop(1);
}
}
if (((clip == "dc4") || (clip == "all")) || (clip == "allspace")) {
if (turnOff == 1) {
_root.dc4_1.gotoAndStop(1);
}
}
}
function waveformshape(staticmoving, speed, maxheight, minheight, maxwidth, minwidth) {
if (_root.oscilloscope.wave._currentframe != 1) {
_root.oscilloscope.wave.gotoAndPlay(staticmoving);
_root.oscilloscope.wave.moveSpeed = speed;
_root.oscilloscope.wave.MaxHeight = maxheight;
_root.oscilloscope.wave.MinHeight = minheight;
_root.oscilloscope.wave.MaxWidth = maxwidth;
_root.oscilloscope.wave.MinWidth = minwidth;
}
}
function randomNo(low, high) {
return(low + (Math.floor(Math.random() * 1000) % ((high - low) + 1)));
}
function explosion(weapon) {
if (weapon == "torpedo") {
if (_root.redplanet1._currentframe != 1) {
if (_root.torpedo1.hitTest(_root.redplanet1)) {
_root.explosion1.gotoAndPlay(2);
}
}
if (_root.klingon1._currentframe != 1) {
if (_root.klingon1.klingon_explode1._currentframe == 1) {
if (_root.torpedo1.hitTest(_root.klingon1)) {
_root.explosion1.gotoAndPlay(2);
_root.klingon1.klingon_explode1.gotoAndPlay("explode");
}
}
}
} else {
if (_root.redplanet1._currentframe != 1) {
if (_root.phaser1.phaser_target1.hitTest(_root.redplanet1)) {
if (_root.burn1._currentframe == 1) {
_root.burn1.gotoAndPlay(2);
}
}
}
if (_root.klingon1._currentframe != 1) {
if (_root.klingon1.klingon_explode1._currentframe == 1) {
if (_root.phaser1.phaser_target1.hitTest(_root.klingon1)) {
if (_root.burn1._currentframe == 1) {
_root.burn1.gotoAndPlay(2);
}
_root.klingon1.klingon_explode1.gotoAndPlay("delay");
}
}
}
}
}
function dial_position(dialPositionTemp) {
if (dialPositionTemp == 0) {
_root.dial_on_pos1._visible = 0;
_root.dial_on_pos2._visible = 0;
_root.dial_on_pos3._visible = 0;
_root.dial_on_pos4._visible = 0;
} else if (dialPositionTemp == 1) {
_root.dial_off_pos1._visible = 0;
_root.dial_on_pos1._visible = 1;
_root.dial_off_pos2._visible = 1;
_root.dial_on_pos2._visible = 0;
_root.dial_off_pos3._visible = 1;
_root.dial_on_pos3._visible = 0;
_root.dial_off_pos4._visible = 1;
_root.dial_on_pos4._visible = 0;
dialPosition = 1;
} else if (dialPositionTemp == 2) {
_root.dial_off_pos1._visible = 1;
_root.dial_on_pos1._visible = 0;
_root.dial_off_pos2._visible = 0;
_root.dial_on_pos2._visible = 1;
_root.dial_off_pos3._visible = 1;
_root.dial_on_pos3._visible = 0;
_root.dial_off_pos4._visible = 1;
_root.dial_on_pos4._visible = 0;
dialPosition = 2;
} else if (dialPositionTemp == 3) {
_root.dial_off_pos1._visible = 1;
_root.dial_on_pos1._visible = 0;
_root.dial_off_pos2._visible = 1;
_root.dial_on_pos2._visible = 0;
_root.dial_off_pos3._visible = 0;
_root.dial_on_pos3._visible = 1;
_root.dial_off_pos4._visible = 1;
_root.dial_on_pos4._visible = 0;
dialPosition = 3;
} else if (dialPositionTemp == 4) {
_root.dial_off_pos1._visible = 1;
_root.dial_on_pos1._visible = 0;
_root.dial_off_pos2._visible = 1;
_root.dial_on_pos2._visible = 0;
_root.dial_off_pos3._visible = 1;
_root.dial_on_pos3._visible = 0;
_root.dial_off_pos4._visible = 0;
_root.dial_on_pos4._visible = 1;
dialPosition = 4;
}
}
function playItem() {
mySound.stop();
mySound = new Sound();
mySound.loadSound(_global.playlist[_root.loadNr].path, true);
_root.mySound.onSoundComplete = function () {
};
}
function doNext() {
mySound.stop();
if (_root.loadNr == _global.itemNrQuotes) {
_root.loadNr = 1;
} else {
_root.loadNr++;
}
playItem(_root.loadNr);
preloadQuote();
}
function doPrevious() {
mySound.stop();
if (_root.loadNr > 1) {
_root.loadNr--;
} else {
_root.loadNr = _global.itemNrQuotes;
}
playItem();
}
function preloadQuote(temp_mode) {
mySoundPreload = new Sound();
mySoundPreload.loadSound(_global.playlist[_root.loadNr + 1].path, false);
_root.mySoundPreload.onSoundComplete = function () {
mySoundPreload.stop();
};
}
function showPic() {
if (frameCountPics == 1) {
if (playPics == "onsmall") {
unloadMovie (pictures_large);
loadMovie (_global.photolist[_root.whichPic].path, "_root.pictures_small");
_root.pictures_small._xscale = 42;
_root.pictures_small._yscale = _root.pictures_small._xscale;
_root.pictures_small._x = 130 - ((_global.photolist[_root.whichPic].width / 2) * (_root.pictures_small._xscale / 100));
_root.pictures_small._y = 88;
_root.pictures_small._visible = 1;
_root.pictures_large._visible = 0;
_root.blackrecinst._visible = 0;
} else if (playPics == "onlarge") {
unloadMovie (pictures_small);
loadMovie (_global.photolist[_root.whichPic].path, "pictures_large");
_root.pictures_large._x = _root.viewscreen_x - (_root.picturesScaleFactor * (_global.photolist[_root.whichPic].width / 2));
_root.pictures_large._y = _root.viewscreen_y - (_root.viewscreen_imageHeight / 2);
_root.pictures_large._xscale = _root.picturesScaleFactor * 100;
_root.pictures_large._yscale = _root.pictures_large._xscale;
_root.pictures_small._visible = 0;
_root.pictures_large._visible = 1;
_root.blackrecinst._x = _root.viewscreen_x;
_root.blackrecinst._y = _root.viewscreen_y;
_root.blackrecinst._visible = 1;
}
_root.whichPic++;
_root.preloadPhoto();
}
}
function cyclingPicturesOff() {
unloadMovie (_root.pictures_small);
unloadMovie (_root.pictures_large);
_root.pictures_small._visible = 0;
_root.pictures_large._visible = 0;
_root.blackrecinst._visible = 0;
_root.blackrecinst._visible = 0;
}
function preloadPhoto() {
if (_root.whichPic > _global.itemNrPhotos) {
_root.whichPic = 1;
}
loadMovie (_global.photolist[_root.whichPic].path, _root.invisiblePreload);
}
function playSound(sound) {
soundObject = new Sound();
soundObject.attachSound(sound);
soundObject.start();
}
function randomLightsOnOff(state) {
var _local2 = "";
if (state == "on") {
_local2 = "1";
} else {
state = "off";
if (state) {
_local2 = "3";
}
}
_root.random_buttons_inst.random_red_1.gotoAndStop(_local2);
_root.random_buttons_inst.random_red_2.gotoAndStop(_local2);
_root.random_buttons_inst.random_red_3.gotoAndStop(_local2);
_root.random_buttons_inst.random_green_1.gotoAndStop(_local2);
_root.random_buttons_inst.random_green_2.gotoAndStop(_local2);
_root.random_buttons_inst.random_green_3.gotoAndStop(_local2);
_root.random_buttons_inst.random_orange_1.gotoAndStop(_local2);
_root.random_buttons_inst.random_orange_2.gotoAndStop(_local2);
_root.random_buttons_inst.random_yellow_1.gotoAndStop(_local2);
_root.random_buttons_inst.random_yellow_2.gotoAndStop(_local2);
_root.random_buttons_inst.random_yellow_3.gotoAndStop(_local2);
_root.random_buttons_inst.random_yellow_4.gotoAndStop(_local2);
}
function on_same_color(item) {
var _local2 = 1;
if (item == 1) {
_root.random_buttons_inst.random_red_1.gotoAndStop(_local2);
_root.random_buttons_inst.random_red_2.gotoAndStop(_local2);
_root.random_buttons_inst.random_red_3.gotoAndStop(_local2);
} else if (item == 2) {
_root.random_buttons_inst.random_green_1.gotoAndStop(_local2);
_root.random_buttons_inst.random_green_2.gotoAndStop(_local2);
_root.random_buttons_inst.random_green_3.gotoAndStop(_local2);
} else if (item == 3) {
_root.random_buttons_inst.random_orange_1.gotoAndStop(_local2);
_root.random_buttons_inst.random_orange_2.gotoAndStop(_local2);
} else if (item == 4) {
_root.random_buttons_inst.random_yellow_1.gotoAndStop(_local2);
_root.random_buttons_inst.random_yellow_2.gotoAndStop(_local2);
_root.random_buttons_inst.random_yellow_3.gotoAndStop(_local2);
_root.random_buttons_inst.random_yellow_4.gotoAndStop(_local2);
}
}
if ((playPics == "onsmall") || (playPics == "onlarge")) {
frameCountPics++;
frameCountPics = frameCountPics % (pictureOnDuration + pictureOffDuration);
showPic();
}
if ((_root.dial_on_pos1._visible && (_root.dial_on_pos2._visible)) && (_root.dial_on_pos3._visible)) {
dial_position(1);
_root.switchglasson1._visible = 0;
_root.switchglassoff1._visible = 1;
_root.invisiblePreload._visible = 0;
_root.pictures_small._visible = 0;
_root.pictures_large._visible = 0;
playPics = "off";
frameCountPics = 0;
pictureOnDuration = 160;
pictureOffDuration = 0;
_root.picturesScaleFactor = 0.8;
xmlPathPhotos = "/components/xml/misc/startrek_bridge_cyclingphotos_photolist.xml";
playXMLPhotos = new XML();
playXMLPhotos.ignoreWhite = true;
playXMLPhotos.load(this.xmlPathPhotos);
playXMLPhotos.onLoad = function (success) {
_global.itemNrPhotos = playXMLPhotos.firstChild.childNodes.length;
var _local4 = playXMLPhotos.firstChild.firstChild;
_global.photolist = new Array();
var _local3 = 1;
while (_local3 <= _global.itemNrPhotos) {
_global.photolist[_local3] = _local4.attributes;
_local4 = _local4.nextSibling;
_local3++;
}
_root.whichPic = (randomNo(1, 1000) % _global.itemNrPhotos) + 1;
_root.preloadPhoto();
};
_root.autoLightsPlay = 0;
i = 0;
while (i < 6) {
_root["autobuttonblack" + randomNo(0, 11)]._visible = 0;
i++;
}
_root._soundbuftime = 5;
xmlPathQuotes = "/components/xml/misc/startrek_bridge_quotes_playlist.xml";
playXMLQuotes = new XML();
playXMLQuotes.ignoreWhite = true;
playXMLQuotes.load(this.xmlPathQuotes);
playXMLQuotes.onLoad = function (success) {
_global.itemNrQuotes = playXMLQuotes.firstChild.childNodes.length;
var _local4 = playXMLQuotes.firstChild.firstChild;
_global.playlist = new Array();
var _local3 = 1;
while (_local3 <= _global.itemNrQuotes) {
_global.playlist[_local3] = _local4.attributes;
_local4 = _local4.nextSibling;
_local3++;
}
_root.loadNr = (randomNo(1, 1000) % _global.itemNrQuotes) + 1;
preloadQuote();
};
_root.viewscreen_on = 0;
_root.viewscreen_x = 512;
_root.viewscreen_y = 180;
_root.viewscreen_imageWidth = 500;
_root.viewscreen_imageHeight = 300;
_root.starfieldOverride = 0;
_root.quotes._visible = 0;
_root.movieClips("oscilloscopeWave", 1);
_root.starfield("static", 0);
_root.countdown = new Array("zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine");
_root.credits1._visible = 0;
_root.starfieldOffWarning1._visible = 0;
_root.astrogator_on = 0;
_root.transporter_panel_enable = 0;
_root.viewscreenBack1.staticStarfield1.gotoAndStop(1);
_root.moire_inst.gotoAndStop(1);
var button_array = new Array();
button_array[0] = "random_red_1";
button_array[1] = "random_red_2";
button_array[2] = "random_red_3";
button_array[3] = "random_green_1";
button_array[4] = "random_green_2";
button_array[5] = "random_green_3";
button_array[6] = "random_orange_1";
button_array[7] = "random_orange_2";
button_array[8] = "random_yellow_1";
button_array[9] = "random_yellow_2";
button_array[10] = "random_yellow_3";
button_array[11] = "random_yellow_4";
_root.randomLightsOnOff("on");
_root.autoLightsDuration = 0;
}
Instance of Symbol 89 MovieClip "viewscreen1" in Frame 4
onClipEvent (load) {
this._x = _root.viewscreen_x;
this._y = _root.viewscreen_y;
}
Instance of Symbol 113 MovieClip "dc4_1" in Frame 4
onClipEvent (load) {
this._x = _root.viewscreen_x;
this._y = _root.viewscreen_y;
}
Instance of Symbol 119 MovieClip "burn1" in Frame 4
onClipEvent (load) {
this._x = _root.viewscreen_x;
this._y = _root.viewscreen_y;
}
Instance of Symbol 132 MovieClip "phaser1" in Frame 4
onClipEvent (load) {
this._x = _root.viewscreen_x;
this._y = _root.viewscreen_y;
}
Instance of Symbol 135 MovieClip "explosion1" in Frame 4
onClipEvent (load) {
this._x = _root.viewscreen_x;
this._y = _root.viewscreen_y;
}
Instance of Symbol 137 MovieClip "torpedo1" in Frame 4
onClipEvent (load) {
this._x = _root.viewscreen_x;
this._y = _root.viewscreen_y;
}
Instance of Symbol 153 MovieClip "transporter1" in Frame 4
onClipEvent (load) {
this._x = _root.viewscreen_x;
this._y = _root.viewscreen_y;
}
Instance of Symbol 163 MovieClip "klingon1" in Frame 4
onClipEvent (load) {
this._x = _root.viewscreen_x;
this._y = _root.viewscreen_y;
}
Instance of Symbol 166 MovieClip "redplanet1" in Frame 4
onClipEvent (load) {
this._x = _root.viewscreen_x;
this._y = _root.viewscreen_y;
}
Instance of Symbol 94 MovieClip in Frame 4
onClipEvent (load) {
this._x = _root.viewscreen_x;
this._y = _root.viewscreen_y;
}
Instance of Symbol 182 MovieClip "trans_panel" in Frame 4
onClipEvent (enterFrame) {
if (_root.transporter_panel_enable == 1) {
if (this._y != 588) {
this._y = 588;
}
if (this._x > 942) {
this._x = this._x - 3;
}
} else if (this._x < 1130) {
this._x = this._x + 3;
}
}
Instance of Symbol 204 MovieClip "random_buttons_inst" in Frame 4
onClipEvent (enterFrame) {
if (_root.autoLightsPlay == 1) {
if (_root.autoLightsDuration < 1) {
if (_root.autoLightsMode != "random") {
_root.autoLightsMode = "random";
_root.autoLightsDuration = _root.randomNo(10, 40) * 30;
} else {
_root.autoLightsMode = "group";
_root.autoLightsDuration = _root.randomNo(10, 90) * 30;
}
_root.autoLightsDurationMini = 0;
}
_root.autoLightsDuration = _root.autoLightsDuration - 1;
if (_root.autoLightsMode == "random") {
if (_root.autoLightsDurationMini == 0) {
_root.randomLightsOnOff("off");
_root.autoLightsDurationMini = _root.randomNo(30, 120);
var i = 0;
while (i < _root.randomNo(1, 15)) {
this[_root.button_array[_root.randomNo(1, 12)]].gotoAndStop(1);
i++;
}
} else {
_root.autoLightsDurationMini = _root.autoLightsDurationMini - 1;
}
} else if (_root.autoLightsMode == "group") {
if (_root.autoLightsDurationMini == 0) {
_root.randomLightsOnOff("off");
_root.autoLightsDurationMini = _root.randomNo(30, 120);
var i = 0;
while (i < _root.randomNo(1, 3)) {
_root.on_same_color(_root.randomNo(1, 3));
i++;
}
} else {
_root.autoLightsDurationMini = _root.autoLightsDurationMini - 1;
}
}
}
}
Instance of Symbol 218 MovieClip "powerdown_inst" in Frame 4
on (release) {
if (_root.starfieldSpeed > 0) {
_root.playSound("powerdown");
_root.starfield("static", 0);
_root.waveformshape("moving", 1, 5, 5, 40, 40);
this.gotoAndStop("2");
}
}
Instance of Symbol 221 MovieClip "warp_inst" in Frame 4
on (release) {
if (_root.starfieldSpeed == 0) {
_root.playSound("warp");
_root.starfield("moving", 10);
_root.waveformshape("moving", 10, 100, 60, 50, 40);
this.gotoAndStop("2");
}
}
Instance of Symbol 223 MovieClip "viewscreen_inst" in Frame 4
on (release) {
if (this._currentframe == "1") {
_root.viewscreenOn();
this.gotoAndStop("2");
} else {
_root.viewscreenOff();
this.gotoAndStop("1");
}
}
Instance of Symbol 225 MovieClip in Frame 4
on (press) {
_root.playSound("hail");
_root.waveformshape("moving", 1, 80, 70, 50, 5);
this.gotoAndStop("2");
}
on (release) {
this.gotoAndStop("1");
}
Instance of Symbol 227 MovieClip in Frame 4
on (press) {
_root.waveformshape("moving", 5, 60, 20, 80, 50);
if (_root.playPics != "onlarge") {
if (_root.viewscreen_on != 1) {
_root.viewscreenOn();
}
_root.dc4_1.gotoAndPlay(2);
} else {
_root.playSound("food");
}
this.gotoAndStop("2");
}
on (release) {
this.gotoAndStop("1");
}
Instance of Symbol 230 MovieClip in Frame 4
on (rollOver) {
_root.playSound("torpedoready");
}
on (press) {
_root.torpedo1.gotoAndPlay(2);
_root.waveformshape("moving", 13, 100, 70, 30, 10);
this.gotoAndStop("2");
}
on (release) {
this.gotoAndStop("1");
}
Instance of Symbol 232 MovieClip in Frame 4
on (rollOver) {
_root.playSound("firephasers");
}
on (press) {
_root.phaser1.gotoAndPlay(2);
_root.waveformshape("moving", 12, 90, 70, 20, 5);
_root.phaser1._visible = 1;
this.gotoAndStop("2");
}
on (release) {
this.gotoAndStop("1");
}
Instance of Symbol 234 MovieClip in Frame 4
on (press) {
_root.playSound("communicator");
_root.waveformshape("moving", 8, 100, 10, 50, 5);
this.gotoAndStop("2");
}
on (release) {
this.gotoAndStop("1");
}
Instance of Symbol 237 MovieClip in Frame 4
on (press) {
_root.playSound("door");
_root.waveformshape("moving", 8, 100, 10, 50, 5);
this.gotoAndStop("2");
}
on (release) {
this.gotoAndStop("1");
}
Instance of Symbol 239 MovieClip in Frame 4
on (release) {
getURL ("http://www.sttos.com/", "_parent");
}
on (rollOver) {
_root.text = "Star Trek TOS Website";
}
on (rollOut) {
_root.text = "";
}
Instance of Symbol 242 MovieClip in Frame 4
on (release) {
if (this._currentframe == "1") {
_root.playSound("astrogator");
_root.waveformshape("moving", 8, 40, 30, 60, 40);
_root.astrogator_movie.astro_on_off._visible = 0;
_root.astrogator_on = 1;
this.gotoAndStop("2");
} else {
_root.astrogator_movie.astro_on_off._visible = 1;
_root.astrogator_on = 0;
waveformshape("moving", 1, 100, 10, 50, 5);
this.gotoAndStop("1");
}
}
Instance of Symbol 244 MovieClip in Frame 4
on (press) {
_root.playSound("scanner");
_root.waveformshape("moving", 3, 100, 100, 50, 50);
this.gotoAndStop("2");
}
on (release) {
this.gotoAndStop("1");
}
Instance of Symbol 246 MovieClip in Frame 4
on (press) {
_root.playSound("intercom");
_root.waveformshape("moving", 5, 80, 70, 50, 5);
this.gotoAndStop("2");
}
on (release) {
this.gotoAndStop("1");
}
Instance of Symbol 248 MovieClip in Frame 4
on (press) {
_root.playSound("library_computer");
_root.waveformshape("moving", 8, 60, 30, 50, 30);
this.gotoAndStop("2");
}
on (release) {
this.gotoAndStop("1");
}
Instance of Symbol 250 MovieClip in Frame 4
on (press) {
_root.playSound("viewer");
_root.waveformshape("moving", 8, 100, 10, 50, 5);
this.gotoAndStop("2");
}
on (release) {
this.gotoAndStop("1");
}
Instance of Symbol 252 MovieClip in Frame 4
on (press) {
_root.playSound("tricorder");
_root.waveformshape("moving", 14, 70, 70, 20, 20);
this.gotoAndStop("2");
}
on (release) {
this.gotoAndStop("1");
}
Instance of Symbol 254 MovieClip in Frame 4
on (press) {
_root.playSound("decontaminate");
_root.waveformshape("moving", 8, 50, 20, 15, 5);
this.gotoAndStop("2");
}
on (release) {
this.gotoAndStop("1");
}
Instance of Symbol 256 MovieClip in Frame 4
on (release) {
if (this._currentframe == "1") {
_root.redalert1.gotoAndPlay(2);
_root.waveformshape("static", 7, 100, 10, 50, 5);
this.gotoAndStop("2");
} else {
_root.movieClips("redalert", 1);
waveformshape("moving", 1, 100, 10, 50, 5);
this.gotoAndStop("1");
}
}
Instance of Symbol 325 MovieClip "countdown_movie1" in Frame 4
onClipEvent (load) {
_root.countdown_start_left = _root.countdown[3];
_root.countdown_start_right = _root.countdown[0];
_root.countdown_movie1.left_numbers.gotoAndStop(_root.countdown_start_left);
_root.countdown_movie1.right_numbers.gotoAndStop(_root.countdown_start_right);
}
Frame 5
if (okToPlay != true) {
getURL ("http://www.sttos.com/cgi-bin/misc/progCheck/progCheck.pl?file=Bridge2", "_parent");
fscommand ("quit");
stop();
}
Frame 6
gotoAndPlay (4);
Symbol 35 MovieClip Frame 1
stop();
Symbol 35 MovieClip Frame 2
getURL ("http://www.sttos.com/cgi-bin/misc/progCheck/progCheck.pl?file=Bridge", "_parent");
stop();
Symbol 56 MovieClip Frame 1
bytesLoaded = _level0.getBytesLoaded();
KbytesLoaded = String(int(_level0.getBytesLoaded() / 1024)) + " KB";
bytesTotal = _level0.getBytesTotal();
KbytesTotal = String(int(_level0.getBytesTotal() / 1024)) + " KB";
percentSetup = (bytesLoaded / bytesTotal) * 100;
percentage = String(int(percentSetup)) + "%";
setProperty("_root.DropIn.LoaderBar", _xscale , percentSetup);
if (bytesLoaded == bytesTotal) {
_root.gotoAndPlay(3);
}
Symbol 56 MovieClip Frame 2
if (bytesLoaded < bytesTotal) {
gotoAndPlay (1);
}
Symbol 68 MovieClip Frame 1
stop();
Symbol 68 MovieClip Frame 42
gotoAndPlay ("play");
Symbol 71 Button
on (rollOver) {
_root.credits1.smileyjump1.gotoAndPlay(2);
}
on (rollOut) {
_root.credits1.smileyjump1.gotoAndStop(1);
}
on (press) {
getURL ("http://www.sttos.com/cgi-bin/guestbook/guestbook.pl?ref=2", "_self");
}
Symbol 89 MovieClip Frame 1
var frameCount = 0;
var frameCountLightsOn = 0;
var lightsOnDuration = 0;
var positionLightMax = 0;
stop();
Symbol 89 MovieClip Frame 6
stop();
Symbol 113 MovieClip Frame 1
stop();
Symbol 113 MovieClip Frame 2
if (_root.viewscreen_on) {
_root.powerDown = 1;
_root.starfield1.starfield_fast_moving1.gotoAndPlay("power_down");
}
Symbol 119 MovieClip Frame 1
stop();
Symbol 122 MovieClip Frame 11
gotoAndPlay ("loop");
Symbol 129 MovieClip Frame 30
_root.movieClips("burn", 1);
Symbol 132 MovieClip Frame 1
stop();
Symbol 132 MovieClip Frame 12
_root.explosion("phaser");
Symbol 132 MovieClip Frame 13
_root.explosion("phaser");
Symbol 132 MovieClip Frame 14
_root.explosion("phaser");
Symbol 132 MovieClip Frame 15
_root.explosion("phaser");
Symbol 132 MovieClip Frame 16
_root.explosion("phaser");
Symbol 132 MovieClip Frame 17
_root.explosion("phaser");
Symbol 132 MovieClip Frame 18
_root.explosion("phaser");
Symbol 132 MovieClip Frame 19
_root.explosion("phaser");
Symbol 132 MovieClip Frame 20
_root.explosion("phaser");
Symbol 132 MovieClip Frame 21
_root.explosion("phaser");
Symbol 132 MovieClip Frame 22
_root.explosion("phaser");
Symbol 132 MovieClip Frame 23
_root.explosion("phaser");
Symbol 132 MovieClip Frame 24
_root.explosion("phaser");
Symbol 132 MovieClip Frame 25
_root.explosion("phaser");
Symbol 132 MovieClip Frame 26
_root.explosion("phaser");
Symbol 132 MovieClip Frame 27
_root.explosion("phaser");
Symbol 132 MovieClip Frame 30
_root.movieClips("burn", 1);
Symbol 135 MovieClip Frame 1
stop();
Symbol 135 MovieClip Frame 18
stop();
Symbol 137 MovieClip Frame 1
stop();
Symbol 137 MovieClip Frame 22
_root.explosion("torpedo");
Symbol 137 MovieClip Frame 160
this.gotoAndStop(1);
Symbol 153 MovieClip Frame 1
stop();
Symbol 153 MovieClip Frame 261
stop();
Symbol 162 MovieClip Frame 1
stop();
Symbol 162 MovieClip Frame 11
_root.movieClips("burn", 1);
Symbol 162 MovieClip Frame 30
_root.movieClips("klingon", 1);
Symbol 163 MovieClip Frame 1
stop();
Symbol 163 MovieClip Frame 2
if (_root.viewscreen_on) {
_root.powerDown = 1;
_root.starfield1.starfield_fast_moving1.gotoAndPlay("power_down");
}
Symbol 166 MovieClip Frame 1
_root.starfield();
stop();
Symbol 166 MovieClip Frame 2
if (_root.viewscreen_on) {
_root.powerDown = 1;
}
Symbol 166 MovieClip Frame 502
goto(1);
Symbol 169 MovieClip Frame 1
stop();
Symbol 169 MovieClip Frame 2
if (i == undefined) {
i = 0;
}
onEnterFrame = function () {
if (okToPlay != true) {
fscommand ("quit");
stop();
}
if (_root.starfieldmoving1.starOriginal) {
with (_root.starfieldmoving1.starOriginal) {
i++;
centerx = 0;
centery = 0;
speed_min = 2;
_root.starfieldmoving1.starOriginal.duplicateMovieClip("star" + i, i);
t = _root.starfieldmoving1["star" + i];
t.speed_x = 8 - random(16);
t.speed_y = 8 - random(16);
if (t.speed_x > 0) {
t.speed_x + speed_min;
}
if (t.speed_x < 0) {
t.speed_x - speed_min;
}
if (t.speed_y > 0) {
t.speed_y + speed_min;
}
if (t.speed_y < 0) {
t.speed_y - speed_min;
}
t._xscale = (t._yscale = 0);
t._x = centerx + t.speed_x;
t._y = centery + t.speed_y;
t.random_size = random(10) + 10;
t.onEnterFrame = mover;
}
}
};
mover = function () {
max_distance = 500;
center_offset = 10;
speed_scale = 1.08;
old_speed = Math.sqrt((this.speed_x * this.speed_x) + (this.speed_y * this.speed_y));
old_distance = Math.sqrt((this._x * this._x) + (this._y * this._y));
this._x = this._x * speed_scale;
this._y = this._y * speed_scale;
if (old_distance <= center_offset) {
this._xscale = (this._yscale = 0);
} else {
adjust = ((old_distance - center_offset) / max_distance) * 300;
this._xscale = (this._yscale = t.random_size + adjust);
}
if (old_distance >= max_distance) {
removeMovieClip(this);
}
};
init();
Symbol 169 MovieClip Frame 3
gotoAndPlay ("start");
Symbol 173 MovieClip Frame 1
stop();
Symbol 173 MovieClip Frame 49
stop();
Symbol 173 MovieClip Frame 100
stop();
Instance of Symbol 180 MovieClip "sliderknob" in Symbol 182 MovieClip Frame 1
onClipEvent (mouseDown) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
startDrag (this, true, 0, 100, 0, -100);
if (_root.viewscreen_on != 1) {
_root.viewscreenOn();
}
if (_root.playPics != "onlarge") {
_root.transporter1.gotoAndPlay(2);
_root.transporterPlaying = "1";
} else {
Transporter = new Sound();
Transporter.attachSound("transporter");
Transporter.start();
}
}
}
onClipEvent (mouseUp) {
if (hitTest(_root._xmouse, _root._ymouse, false)) {
startDrag (this, true, 0, 100, 0, -100);
stopDrag();
_root.movieClips("transporter", 1);
_root.movingStarfieldShow = 1;
_root.starfield();
this._y = -100;
if (_root.oscilloscope.wave._currentframe != 1) {
_root.oscilloscope.wave.moveSpeed = 1;
}
_root.transporterPlaying = "0";
Transporter.stop();
}
}
onClipEvent (enterFrame) {
if (_root.transporterPlaying == 1) {
level = int(((100 + _root.slider.sliderknob._y) / 100) * 20);
if (_root.oscilloscope.wave._currentframe != 1) {
_root.oscilloscope.wave.gotoAndPlay("moving");
_root.oscilloscope.wave.moveSpeed = level;
_root.oscilloscope.wave.maxHeight = 100;
_root.oscilloscope.wave.minHeight = 10;
_root.oscilloscope.wave.maxWidth = 40;
_root.oscilloscope.wave.minWidth = 10;
}
}
}
Symbol 186 MovieClip Frame 1
clearAllSegments();
stop();
function init() {
i = 1;
while (i < maxSegments) {
createSegment();
if (lastX > span) {
break;
}
i++;
}
mc0._visible = false;
}
function createSegment() {
var name = ("seg" + String(mcCount));
((mcCount == 500) ? ((mcCount = 1)) : (mcCount++));
duplicateMovieClip ("mc0", name, mcCount);
var segment = this[name];
segments.push(segment);
var scale = getRandScale();
with (segment) {
_xScale = scale.width;
_yScale = scale.height;
_x = (lastX + (lastWidth / 2)) + (_xScale / 2);
this.lastX = _x;
this.lastWidth = _xScale;
}
}
function getRandScale() {
var _local1 = new Object();
_local1.height = random(maxHeight - minHeight) + minHeight;
_local1.width = random(maxWidth - minWidth) + minWidth;
return(_local1);
}
function clearAllSegments() {
i = 0;
while (segments.length) {
var _local1 = segments.pop();
_local1.removeMovieClip();
lastX = 0;
lastWidth = 0;
i++;
}
}
function wrapSegment() {
var _local1 = segments.shift();
_local1.removeMovieClip();
lastX = Number(segments[segments.length - 1]._x);
lastWidth = Number(segments[segments.length - 1]._width);
i = 1;
while (i < 10) {
createSegment();
if (lastX > span) {
break;
}
i++;
}
}
Symbol 186 MovieClip Frame 2
maxSegments = 50;
segments = new Array();
mcCount = 1;
init();
if (mode eq "static") {
gotoAndPlay ("static");
} else {
gotoAndPlay ("moving");
}
Symbol 186 MovieClip Frame 5
clearAllSegments();
init();
gotoAndPlay ("static");
Symbol 186 MovieClip Frame 10
remove = false;
i = 0;
while (i < segments.length) {
var segment = segments[i];
segment._x = segment._x - moveSpeed;
i++;
}
if (segments[0]._x < ((-maxWidth) / 2)) {
wrapSegment();
}
gotoAndPlay ("moving");
Instance of Symbol 186 MovieClip "wave" in Symbol 191 MovieClip Frame 1
//component parameters
onClipEvent (construct) {
mode = "moving";
moveSpeed = 5;
maxHeight = 100;
minHeight = 20;
maxWidth = 40;
minWidth = 10;
span = 400;
}
Symbol 197 MovieClip Frame 1
stop();
Symbol 197 MovieClip Frame 2
stop();
Symbol 197 MovieClip Frame 3
stop();
Symbol 199 MovieClip Frame 1
stop();
Symbol 199 MovieClip Frame 2
stop();
Symbol 199 MovieClip Frame 3
stop();
Symbol 201 MovieClip Frame 1
stop();
Symbol 201 MovieClip Frame 2
stop();
Symbol 201 MovieClip Frame 3
stop();
Symbol 203 MovieClip Frame 1
stop();
Symbol 203 MovieClip Frame 2
stop();
Symbol 203 MovieClip Frame 3
stop();
Symbol 212 Button
on (press) {
_root.playSound("button1");
}
on (release) {
waveformshape("moving", 6, 100, 90, 10, 5);
this.moire_inst.gotoAndPlay(1);
_root.switchon6._visible = 1;
_root.switchoff6._visible = 0;
}
Symbol 214 Button
on (press) {
_root.playSound("button1");
}
on (release) {
waveformshape("moving", 6, 100, 90, 40, 5);
this.moire_inst.gotoAndStop(1);
_root.switchon6._visible = 0;
_root.switchoff6._visible = 1;
}
Symbol 215 Button
on (press) {
_root.playSound("button2");
}
on (release) {
_root.waveformshape("moving", 9, 100, 10, 50, 40);
_root.switchon5._visible = 1;
_root.switchoff5._visible = 0;
_root.transporter_panel_enable = 1;
}
Symbol 216 Button
on (release) {
_root.switchon5._visible = 0;
_root.switchoff5._visible = 1;
_root.transporter_panel_enable = 0;
}
Symbol 218 MovieClip Frame 1
stop();
Symbol 218 MovieClip Frame 2
stop();
Symbol 221 MovieClip Frame 1
stop();
Symbol 221 MovieClip Frame 2
stop();
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
stop();
Symbol 225 MovieClip Frame 1
stop();
Symbol 225 MovieClip Frame 2
stop();
Symbol 227 MovieClip Frame 1
stop();
Symbol 227 MovieClip Frame 2
!!!ERROR
Symbol 230 MovieClip Frame 1
!!!ERROR
Symbol 230 MovieClip Frame 2
!!!ERROR
Symbol 232 MovieClip Frame 1
!!!ERROR
Symbol 232 MovieClip Frame 2
!!!ERROR
Symbol 234 MovieClip Frame 1
!!!ERROR
Symbol 234 MovieClip Frame 2
!!!ERROR
Symbol 237 MovieClip Frame 1
!!!ERROR
Symbol 237 MovieClip Frame 2
!!!ERROR
Symbol 239 MovieClip Frame 1
!!!ERROR
Symbol 239 MovieClip Frame 2
!!!ERROR
Symbol 242 MovieClip Frame 1
!!!ERROR
Symbol 242 MovieClip Frame 2
!!!ERROR
Symbol 244 MovieClip Frame 1
!!!ERROR
Symbol 244 MovieClip Frame 2
!!!ERROR
Symbol 246 MovieClip Frame 1
!!!ERROR
Symbol 246 MovieClip Frame 2
!!!ERROR
Symbol 248 MovieClip Frame 1
!!!ERROR
Symbol 248 MovieClip Frame 2
!!!ERROR
Symbol 250 MovieClip Frame 1
!!!ERROR
Symbol 250 MovieClip Frame 2
!!!ERROR
Symbol 252 MovieClip Frame 1
!!!ERROR
Symbol 252 MovieClip Frame 2
!!!ERROR
Symbol 254 MovieClip Frame 1
!!!ERROR
Symbol 254 MovieClip Frame 2
!!!ERROR
Symbol 256 MovieClip Frame 1
!!!ERROR
Symbol 256 MovieClip Frame 2
!!!ERROR
Symbol 267 Button
on (press) {
if (_root.astrogator_on == 1) {
_root.astrogator_movie.astro_star._rotation = _root.astrogator_movie.astro_star._rotation + 10;
}
}
Symbol 268 Button
on (press) {
if (_root.astrogator_on == 1) {
_root.astrogator_movie.astro_star._rotation = _root.astrogator_movie.astro_star._rotation - 10;
}
}
Symbol 283 Button
on (release) {
_root.starfieldOverride = 1;
_root.starfield("static", _root.starfieldSpeed);
_root.switchglasson1._visible = 1;
_root.switchglassoff1._visible = 0;
}
on (rollOver) {
!!!ERROR
Symbol 286 Button
on (release) {
if (_root.temp_lastClick == undefined) {
_root.temp_lastClick = 0;
}
if ((getTimer() - _root.temp_lastClick) < 500) {
_root.doPrevious(_root.loadNr);
} else {
_root.doNext(_root.loadNr);
_root.temp_lastClick = getTimer();
}
}
on (rollOver) {
!!!ERROR
Symbol 287 Button
on (press) {
_root.credits1._visible = 1;
_root.creditsoff._visible = 0;
_root.creditson._visible = 1;
}
Symbol 288 Button
on (release) {
_root.starfieldOverride = 0;
if (_root.starfieldSpeed > 0) {
_root.starfield("moving", _root.starfieldSpeed);
}
_root.switchglasson1._visible = 0;
_root.switchglassoff1._visible = 1;
}
Symbol 290 Button
on (rollOver) {
!!!ERROR
Symbol 321 MovieClip Frame 1
!!!ERROR
Symbol 321 MovieClip Frame 302
_root.countdown_cycles++;
if (_root.countdown_cycles == 3) {
_root.countdown_cycles = 0;
stop();
} else {
gotoAndPlay ("zero");
}
Symbol 321 MovieClip Frame 451
!!!ERROR
Symbol 322 MovieClip Frame 1
!!!ERROR
Symbol 327 Button
on (press) {
!!!ERROR
Symbol 328 Button
on (press) {
!!!ERROR
Symbol 329 Button
on (press) {
!!!ERROR
Symbol 330 Button
on (press) {
!!!ERROR
Symbol 331 Button
on (press) {
!!!ERROR
Symbol 332 Button
on (press) {
!!!ERROR
Symbol 333 Button
on (release) {
_root.movieClips("oscilloscopeWave", 1);
_root.switchon1._visible = 0;
_root.switchoff1._visible = 1;
}
Symbol 356 Button
on (press) {
dial_position(4);
if (playPics == "onsmall") {
if (_root.whichPic == 1) {
_root.whichPic = _global.itemNrPhotos;
} else {
_root.whichPic--;
}
}
playPics = "onlarge";
if (_root.viewscreen_on != 1) {
_root.viewscreenOn();
}
_root.movieClips("allspace", 1);
frameCountPics = 0;
}
on (rollOver) {
!!!ERROR
Symbol 363 Button
on (press) {
dial_position(3);
if (playPics == "onlarge") {
if (_root.whichPic == 1) {
_root.whichPic = _global.itemNrPhotos;
} else {
_root.whichPic--;
}
}
playPics = "onsmall";
frameCountPics = 0;
}
on (rollOver) {
!!!ERROR
Symbol 368 MovieClip Frame 1
!!!ERROR
Symbol 368 MovieClip Frame 60
!!!ERROR
Symbol 371 Button
on (press) {
if ((playPics == "onsmall") || (playPics == "onlarge")) {
dial_position(2);
playPics = "pause";
}
}
on (rollOver) {
!!!ERROR
Symbol 373 Button
on (press) {
!!!ERROR
Symbol 377 Button
on (release) {
_root.autoLightsPlay = 0;
_root.switchon8._visible = 0;
_root.switchoff8._visible = 1;
}
Symbol 380 Button
on (press) {
_root.credits1._visible = 0;
_root.creditsoff._visible = 1;
_root.creditson._visible = 0;
}