Frame 1
planetdistance = 0.55;
moondistance = 0.2;
speedo = 0;
Speedfactor = 60;
initialspeed = 40;
Fast = 0;
fastener = 1800;
systemtype = 1;
Xcoordinate = 0;
Ycoordinate = 0;
switchyear = 2000;
switchmonth = 1;
switchday = 1;
traceline = 2;
Controlls = _root.attachMovie("Controlls", "Controlls", 17);
Controlls._x = 30;
Controlls._y = 30;
_root.Controlls.Slaid.Slaider.LED._visible = 0;
_root.Controlls.Slaid.Slaider._x = _root.initialspeed;
var planetsarray = new Array();
planetsarray = [["Sun", 3, 0, 0, 0, 0, 0, 0], ["Mercury", 0.5, 4.1518699556667, 0, 0, 200, 2989546.37, 300, 3], ["Venus", 1, 1.62545616377392, 0, 0, 270, 1170598.44, 400, 3], ["Earth", 2.2, 1, [["Earth", 1.8, 0, 0, 0], ["Moon", 0.7, 12.3681477125421, 0, 157.2]], 0, 348, 720348, 400, 4], ["Mars", 1.5, 0.531699008632612, [["Mars", 1.4, 0, 0, 0], ["Phobos", 0.2, 25, 0, 0], ["Deimos", 0.2, 20, 0, 0]], 0, 90.5, 382913.79, 500, 4], ["Asteroids", 3, 0.2, 0, 0, 0, 1440000, 300, 12], ["Jupiter", 3.5, 0.0843393525146631, [["Jupiter", 3.6, 0, 0, 0], ["Io", 0.2, 15, 0, 0], ["Europa", 0.2, 12, 0, 0], ["Ganymede", 0.4, 10, 0, 0], ["Callisto", 0.35, 8, 0, 0]], 0, 53.5, 60777.83, 650, 6], ["Saturn", 5.5, 0.0339578084178622, [["Saturn", 5.3, 0, 0, 0], ["Tethys", 0.2, 13, 0, 0], ["Calypso", 0.15, 11, 0, 0], ["Dione", 0.2, 9, 0, 0], ["Helene", 0.2, 7, 0, 0], ["Io", 0.3, 6.5, 0, 0], ["Titan", 0.67, 5, 0, 0], ["Hyperion", 0.3, 4, 0, 0]], 0, 44.5, 24494.12, 700, 6], ["Uranus", 3, 0.0119020308141505, [["Uranus", 3, 0, 0, 0], ["Cordelia", 0.2, 16, 0, 0], ["Miranda", 0.2, 12, 0, 0], ["Ariel", 0.25, 11, 0, 0], ["Umbriel", 0.3, 9.5, 0, 0], ["Titania", 0.3, 7, 0, 0], ["Oberon", 0.3, 6, 0, 0]], 0, 133.5, 8702.96, 800, 8], ["Neptune", 3, 0.00606811762751288, [["Neptune", 3, 0, 0], ["Naiad", 0.2, 15, 0, 0], ["Thalassa", 0.15, 14, 0, 0], ["Despoina", 0.2, 12, 0, 0], ["Galatea", 0.15, 10, 0, 0], ["Proteus", 0.15, 9, 0, 0], ["Triton", 0.3, 7, 0, 0], ["Nereid", 0.12, 6, 0, 0]], 0, 146, 4515.04, 800, 10]];
var monthsarray = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334];
Planetcalculation = function () {
var _local2 = 1;
while (_local2 < _root.planetsarray.length) {
_root.planetsarray[_local2][4] = ((_root.planetsarray[_local2 - 1][4] + (_root.planetsarray[_local2 - 1][1] / 2)) + _root.planetdistance) + (_root.planetsarray[_local2][1] / 2);
var _local3 = 1;
while (_local3 < _root.planetsarray[_local2][3].length) {
_root.planetsarray[_local2][3][_local3][3] = ((_root.planetsarray[_local2][3][_local3 - 1][3] + (_root.planetsarray[_local2][3][_local3 - 1][1] / 2)) + _root.moondistance) + (_root.planetsarray[_local2][3][_local3][1] / 2);
_root.planetsarray[_local2][3][_local3][4] = Math.random() * 360;
_local3++;
}
_local2++;
}
_root.planetsarray[3][3][1][4] = 145;
_root.Rotationcouter = _root.planetsarray[3][5];
_root.earthsize = 390 / _root.planetsarray[_root.planetsarray.length - 1][4];
_root.RotationcounterZero = 720000 + _root.planetsarray[3][5];
};
Planetcalculation();
Recalculation = function () {
var _local2 = 1;
while (_local2 < _root.planetsarray.length) {
_root.planetsarray[_local2][4] = ((_root.planetsarray[_local2 - 1][4] + (_root.planetsarray[_local2 - 1][1] / 2)) + _root.planetdistance) + (_root.planetsarray[_local2][1] / 2);
var _local3 = 1;
while (_local3 < _root.planetsarray[_local2][3].length) {
_root.planetsarray[_local2][3][_local3][3] = ((_root.planetsarray[_local2][3][_local3 - 1][3] + (_root.planetsarray[_local2][3][_local3 - 1][1] / 2)) + _root.moondistance) + (_root.planetsarray[_local2][3][_local3][1] / 2);
_local3++;
}
_local2++;
}
_root.earthsize = 382 / _root.planetsarray[_root.planetsarray.length - 1][4];
};
Starbuilder = function () {
Starsystem = _root.createEmptyMovieClip("Starfield", 1);
Starsystem._y = 480;
Starsystem._x = 480;
Stars = Starsystem.attachMovie("Background", "Background", 1);
Pointer = Starsystem.attachMovie("Arrow", "Pointerer", 3);
Pointer._rotation = _root.planetsarray[3][5];
Stars.Monthlabels._visible = 0;
Starsystem.onEnterFrame = function () {
if (Key.isDown(39)) {
_root.Controlls.Slaid.Slaider._x = _root.Controlls.Slaid.Slaider._x + 1;
}
if (Key.isDown(37)) {
_root.Controlls.Slaid.Slaider._x = _root.Controlls.Slaid.Slaider._x - 1;
}
if (Key.isDown(40)) {
_root.Stoper();
}
};
};
Starbuilder();
Copernican = function () {
_root.Controlls.Tracermovie.gotoAndStop(1);
_root.Clearplanettrace();
_root.planetsarray[3][1] = 4.5;
_root.planetsarray[3][3][0][1] = 4;
_root.planetsarray[0][1] = 3.5;
_root.planetsarray[3][3][1][1] = 1.1;
Recalculation();
_root.systemtype = 1;
Solarsystem = _root.createEmptyMovieClip("Solarsystem", 203);
Solarsystem._y = 480;
Solarsystem._x = 480;
Solarsystem._rotation = 180;
Sole = Solarsystem.attachMovie("Sun", "Sole", 2);
Sole._height = (Sole._width = _root.planetsarray[0][1] * _root.earthsize);
Sole.cacheAsBitmap = true;
var _local3 = 1;
while (_local3 < _root.planetsarray.length) {
if (_root.planetsarray[_local3][0] == "Asteroids") {
asteroidsbelt = Solarsystem.createEmptyMovieClip(_root.planetsarray[_local3][0], 100 - _local3);
asteroids = asteroidsbelt.attachMovie(_root.planetsarray[_local3][0], "Planet" + _root.planetsarray[_local3][0], 2);
asteroids._height = (asteroids._width = ((_root.planetsarray[_local3][1] + _root.planetsarray[_local3][4]) * 2) * _root.earthsize);
asteroidsbelt._rotation = _root.planetsarray[_local3][5];
asteroidsbelt.rotationnumber = _root.planetsarray[_local3][2];
asteroids._alpha = 50;
asteroidsbelt.onEnterFrame = function () {
this._rotation = this._rotation - (this.rotationnumber * _root.speedo);
};
} else {
planetsytem = Solarsystem.createEmptyMovieClip(_root.planetsarray[_local3][0], 100 - _local3);
planet = planetsytem.attachMovie(_root.planetsarray[_local3][0], "Planet" + _root.planetsarray[_local3][0], 2);
planet._y = (-_root.planetsarray[_local3][4]) * _root.earthsize;
planet._height = (planet._width = _root.planetsarray[_local3][1] * _root.earthsize);
planet.cacheAsBitmap = true;
orbit = Solarsystem.attachMovie("Orbita", "Orbita" + _root.planetsarray[_local3][0], _local3 + 10);
orbit._height = (orbit._width = (_root.planetsarray[_local3][4] * 2) * _root.earthsize);
planetsytem._rotation = _root.planetsarray[_local3][5];
planetsytem.rotationnumber = _root.planetsarray[_local3][2];
planetsytem.onEnterFrame = function () {
this._rotation = this._rotation - (this.rotationnumber * _root.speedo);
};
var _local4 = 1;
while (_local4 < _root.planetsarray[_local3][3].length) {
moonsystem = planetsytem.createEmptyMovieClip(_root.planetsarray[_local3][3][_local4][0], _local4 + 120);
moonsystem._y = (-_root.planetsarray[_local3][4]) * _root.earthsize;
if (_root.planetsarray[_local3][0] == "Earth") {
luna = moonsystem.attachMovie("EarthMoon", "EarthMoon", 20);
} else {
luna = moonsystem.attachMovie("Moon", "Moon" + _root.planetsarray[_local3][3][_local4][0], 2);
}
luna._x = _root.planetsarray[_local3][3][_local4][3] * _root.earthsize;
luna._height = (luna._width = _root.planetsarray[_local3][3][_local4][1] * _root.earthsize);
luna.cacheAsBitmap = true;
moonsystem._rotation = _root.planetsarray[_local3][3][_local4][4];
moonsystem.rotationnumber = _root.planetsarray[_local3][3][_local4][2];
moonorbit = planetsytem.attachMovie("Orbita", "Orbita" + _root.planetsarray[_local3][3][_local4][0], _local4 + 12);
moonorbit._y = (-_root.planetsarray[_local3][4]) * _root.earthsize;
moonorbit._alpha = 75;
moonorbit._height = (moonorbit._width = (_root.planetsarray[_local3][3][_local4][3] * 2) * _root.earthsize);
moonsystem.onEnterFrame = function () {
this._rotation = this._rotation - (this.rotationnumber * _root.speedo);
};
_local4++;
}
}
_local3++;
}
_root.Solarsystem.Earth.PlanetEarth.Coperto._rotation = -_root.Solarsystem.Earth._rotation;
_root.Solarsystem.Earth.PlanetEarth.Coperto.Planisphere._rotation = _root.Solarsystem.Earth.PlanetEarth.Coperto.Planisphere._rotation - ((_root.Solarsystem.Earth.rotationnumber * _root.earthrotationspeed) * _root.speedo);
_root.Solarsystem.Earth.Moon.EarthMoon._rotation = (-_root.Solarsystem.Earth.Moon._rotation) + ((Math.atan(((_root.planetsarray[3][3][1][3] * _root.earthsize) * Math.cos((Math.PI/180) * (360 - _root.Solarsystem.Earth.Moon._rotation))) / (((_root.planetsarray[3][3][1][3] * _root.earthsize) * Math.sin((Math.PI/180) * (360 - _root.Solarsystem.Earth.Moon._rotation))) + ((_root.planetsarray[3][4] * _root.earthsize) * 1.3))) / Math.PI) * 180);
Solarsystem.onEnterFrame = function () {
if (Key.isDown(84)) {
_root.ConvertTycho();
}
Sole._rotation = Sole._rotation - (_root.speedo * 12);
Pointer._rotation = _root.Solarsystem.Earth._rotation;
_root.Rotationcouter = _root.Rotationcouter - (_root.planetsarray[3][2] * _root.speedo);
_root.Solarsystem.Earth.PlanetEarth.Coperto._rotation = -_root.Solarsystem.Earth._rotation;
var _local3 = (_root.planetsarray[3][3][1][3] * _root.earthsize) * Math.cos((Math.PI/180) * (360 - _root.Solarsystem.Earth.Moon._rotation));
var _local2 = ((_root.planetsarray[3][3][1][3] * _root.earthsize) * Math.sin((Math.PI/180) * (360 - _root.Solarsystem.Earth.Moon._rotation))) + ((_root.planetsarray[3][4] * _root.earthsize) * 1.3);
_root.Solarsystem.Earth.Moon.EarthMoon._rotation = (-_root.Solarsystem.Earth.Moon._rotation) + ((Math.atan(_local3 / _local2) / Math.PI) * 180);
_root.yearchange = 2000 - Math.floor((_root.Rotationcouter + 11) / 360);
if (_root.yearchange <= 0) {
_root.yearchange = _root.yearchange - 1;
}
_root.speedo = Controlls.Slaid.Slaider._x / _root.Speedfactor;
};
removeorbit = Starsystem.createEmptyMovieClip("Remover", 12);
_root.Controlls.Helpmovie.Helphelper.gotoAndStop(1);
};
Brachian = function () {
_root.Controlls.Tracermovie.gotoAndStop(2);
_root.planetsarray[3][1] = 8;
_root.planetsarray[3][3][0][1] = 7;
_root.planetsarray[0][1] = 3;
_root.planetsarray[3][3][1][1] = 1.5;
Recalculation();
_root.systemtype = 2;
Solarsystem = _root.createEmptyMovieClip("Solarsystem", 203);
Solarsystem._visible = 0;
Sole = Solarsystem.attachMovie("Sun", "Sole", 2);
Sole._height = (Sole._width = _root.planetsarray[0][1] * _root.earthsize);
Sole.cacheAsBitmap = true;
var _local3 = 1;
while (_local3 < _root.planetsarray.length) {
if (_root.planetsarray[_local3][0] == "Asteroids") {
asteroidsbelt = Solarsystem.createEmptyMovieClip(_root.planetsarray[_local3][0], 100 - _local3);
asteroids = asteroidsbelt.attachMovie(_root.planetsarray[_local3][0], "Planet" + _root.planetsarray[_local3][0], 2);
asteroids._height = (asteroids._width = ((_root.planetsarray[_local3][1] + _root.planetsarray[_local3][4]) * 2) * _root.earthsize);
asteroidsbelt._rotation = _root.planetsarray[_local3][5];
asteroidsbelt.rotationnumber = _root.planetsarray[_local3][2];
asteroids._alpha = 50;
asteroidsbelt.onEnterFrame = function () {
this._rotation = this._rotation - (this.rotationnumber * _root.speedo);
};
} else {
planetsytem = Solarsystem.createEmptyMovieClip(_root.planetsarray[_local3][0], 100 - _local3);
planet = planetsytem.attachMovie(_root.planetsarray[_local3][0], "Planet" + _root.planetsarray[_local3][0], 2);
planet._y = (-_root.planetsarray[_local3][4]) * _root.earthsize;
planet._height = (planet._width = _root.planetsarray[_local3][1] * _root.earthsize);
planet.cacheAsBitmap = true;
orbit = Solarsystem.attachMovie("Orbita", "Orbita" + _root.planetsarray[_local3][0], _local3 + 10);
orbit._height = (orbit._width = (_root.planetsarray[_local3][4] * 2) * _root.earthsize);
planetsytem._rotation = _root.planetsarray[_local3][5];
planetsytem.rotationnumber = _root.planetsarray[_local3][2];
planetsytem.onEnterFrame = function () {
this._rotation = this._rotation - (this.rotationnumber * _root.speedo);
};
var _local4 = 1;
while (_local4 < _root.planetsarray[_local3][3].length) {
moonsystem = planetsytem.createEmptyMovieClip(_root.planetsarray[_local3][3][_local4][0], _local4 + 120);
moonsystem._y = (-_root.planetsarray[_local3][4]) * _root.earthsize;
if (_root.planetsarray[_local3][0] == "Earth") {
luna = moonsystem.attachMovie("EarthMoon", "EarthMoon", 20);
} else {
luna = moonsystem.attachMovie("Moon", "Moon" + _root.planetsarray[_local3][3][_local4][0], 2);
}
luna._x = _root.planetsarray[_local3][3][_local4][3] * _root.earthsize;
luna._height = (luna._width = _root.planetsarray[_local3][3][_local4][1] * _root.earthsize);
luna.cacheAsBitmap = true;
moonsystem._rotation = _root.planetsarray[_local3][3][_local4][4];
moonsystem.rotationnumber = _root.planetsarray[_local3][3][_local4][2];
moonorbit = planetsytem.attachMovie("Orbita", "Orbita" + _root.planetsarray[_local3][3][_local4][0], _local4 + 12);
moonorbit._y = (-_root.planetsarray[_local3][4]) * _root.earthsize;
moonorbit._alpha = 75;
moonorbit._height = (moonorbit._width = (_root.planetsarray[_local3][3][_local4][3] * 2) * _root.earthsize);
moonsystem.onEnterFrame = function () {
this._rotation = this._rotation - (this.rotationnumber * _root.speedo);
};
_local4++;
}
}
_local3++;
}
Solarsystem.onEnterFrame = function () {
if (Key.isDown(67)) {
_root.ConvertCoper();
}
Sole._rotation = Sole._rotation - (_root.speedo * 12);
_root.Rotationcouter = _root.Rotationcouter - (_root.planetsarray[3][2] * _root.speedo);
Solarsystem._y = 480 - ((_root.planetsarray[3][4] * _root.earthsize) * (-Math.cos((_root.Solarsystem.Earth._rotation * Math.PI) / 180)));
Solarsystem._x = 480 + ((_root.planetsarray[3][4] * _root.earthsize) * (-Math.sin((_root.Solarsystem.Earth._rotation * Math.PI) / 180)));
if (_root.systemtype == 1) {
Solarsystem._y = 480;
Solarsystem._x = 480;
}
Pointer._rotation = _root.Solarsystem.Earth._rotation + 180;
_root.Solarsystem.Earth.PlanetEarth.Coperto._rotation = (-_root.Solarsystem.Earth._rotation) + 180;
var _local3 = (_root.planetsarray[3][3][1][3] * _root.earthsize) * Math.cos((Math.PI/180) * (360 - _root.Solarsystem.Earth.Moon._rotation));
var _local2 = ((_root.planetsarray[3][3][1][3] * _root.earthsize) * Math.sin((Math.PI/180) * (360 - _root.Solarsystem.Earth.Moon._rotation))) + ((_root.planetsarray[3][4] * _root.earthsize) * 1.3);
_root.Solarsystem.Earth.Moon.EarthMoon._rotation = (-_root.Solarsystem.Earth.Moon._rotation) + ((Math.atan(_local3 / _local2) / Math.PI) * 180);
Solarsystem._visible = 1;
_root.yearchange = 2000 - Math.floor((_root.Rotationcouter + 11) / 360);
if (_root.yearchange <= 0) {
_root.yearchange = _root.yearchange - 1;
}
_root.speedo = Controlls.Slaid.Slaider._x / _root.Speedfactor;
};
removeorbit = Solarsystem.createEmptyMovieClip("Remover", 13);
EarthsOrbit = Starsystem.attachMovie("Orbita", "EarthsOrbit", 12);
EarthsOrbit._height = (EarthsOrbit._width = (_root.planetsarray[3][4] * 2) * _root.earthsize);
_root.Controlls.Helpmovie.Helphelper.gotoAndStop(2);
};
Capture = function () {
var i = 1;
while (i < _root.planetsarray.length) {
var Planetta = eval ("_root.Solarsystem." + _root.planetsarray[i][0]);
_root.planetsarray[i][5] = Planetta._rotation + 180;
var m = 1;
while (m < _root.planetsarray[i][3].length) {
var Satelite = eval ((("_root.Solarsystem." + _root.planetsarray[i][0]) + ".") + _root.planetsarray[i][3][m][0]);
_root.planetsarray[i][3][m][4] = Satelite._rotation;
m++;
}
i++;
}
};
Tracer = function () {
trace(" ");
var i = 1;
while (i < _root.planetsarray.length) {
var Planetta = eval ("_root.Solarsystem." + _root.planetsarray[i][0]);
trace((_root.planetsarray[i][0] + " rotation = ") + Planetta._rotation);
i++;
}
};
goFast = function () {
if ((_root.Fast == 0) || (_root.Fast == -1)) {
_root.Controlls.Slaid.Slaider._visible = 0;
_root.Controlls.Slaid.Slaider._x = _root.fastener;
Ghostslider = _root.Controlls.Slaid.attachMovie("Ghost", "Ghost", 1);
Ghostslider._x = 120;
_root.Fast = 1;
} else {
_root.Controlls.Slaid.Slaider._x = 104;
_root.Controlls.Slaid.Slaider._visible = 1;
_root.Controlls.Slaid.Ghost.removeMovieClip();
_root.Fast = 0;
}
};
goSlow = function () {
if ((_root.Fast == 0) || (_root.Fast == 1)) {
_root.Controlls.Slaid.Slaider._visible = 0;
_root.Controlls.Slaid.Slaider._x = -_root.fastener;
Ghostslider = _root.Controlls.Slaid.attachMovie("Ghost", "Ghost", 1);
Ghostslider._x = -120;
_root.Fast = -1;
} else {
_root.Controlls.Slaid.Slaider._x = -104;
_root.Controlls.Slaid.Slaider._visible = 1;
_root.Controlls.Slaid.Ghost.removeMovieClip();
_root.Fast = 0;
}
};
ConvertTycho = function () {
_root.Controlls.Switcher.gotoAndStop(2);
Capture();
Brachian();
};
ConvertCoper = function () {
_root.Controlls.Switcher.gotoAndStop(1);
Capture();
Copernican();
};
Stoper = function () {
_root.Controlls.Slaid.Slaider._x = 0;
_root.Controlls.Slaid.Slaider._visible = 1;
_root.Controlls.Slaid.Ghost.removeMovieClip();
_root.Fast = 0;
};
Dateswitcher = function () {
if (_root.switcheryear <= 0) {
_root.switchyear = (_root.switcheryear - 1) + 2;
} else {
_root.switchyear = _root.switcheryear;
}
if (_root.systemtype == 2) {
Typefactor = 180;
} else {
Typefactor = 0;
}
var days = (((_root.monthsarray[_root.switchmonth - 1] - _root.switchday) + (2 * _root.switchday)) - 1);
_root.Rotationcouter = (_root.RotationcounterZero - (_root.switchyear * 360)) - (days * 0.985653269083342);
var i = 1;
while (i < _root.planetsarray.length) {
var palanetta = eval ("_root.Solarsystem." + _root.planetsarray[i][0]);
var yearbased = ((_root.switchyear * _root.planetsarray[i][2]) * 360);
var daybased = ((days * _root.planetsarray[i][2]) * 0.985653269083342);
palanetta._rotation = (_root.planetsarray[i][6] - (yearbased + daybased)) + Typefactor;
i++;
}
_root.Solarsystem.Earth.Moon._rotation = 157.2 + ((((2000 - _root.switchyear) - ((days + 1) / 365.24)) * _root.planetsarray[3][3][1][2]) * 360);
Pointer._rotation = _root.Solarsystem.Earth._rotation + 180;
tracedelayer = _root.Tracespace.createEmptyMovieClip("Tracedelayer", 1);
tracedelayer.onEnterFrame = function () {
if (Controlls.Slaid.Slaider._x != 0) {
_root.Starttrace();
this.removeMovieClip();
}
};
};
Rotatorstart = function () {
_root.Stoper();
_root.Starsystem.Background.gotoAndStop(_root.Starsystem.Background._currentframe + 1);
_root.Starsystem.Pointerer.gotoAndStop(2);
kata = (Math.atan((_xmouse - 480) / (_ymouse - 480)) / Math.PI) * 180;
if (((_xmouse - 480) <= 0) && ((_ymouse - 480) > 0)) {
kata = kata + 360;
}
if ((_ymouse - 480) < 0) {
kata = kata + 180;
}
Rotator = _root.createEmptyMovieClip("Rotator", 800);
Rotator.onEnterFrame = function () {
katb = (Math.atan((_xmouse - 480) / (_ymouse - 480)) / Math.PI) * 180;
if (((_xmouse - 480) <= 0) && ((_ymouse - 480) > 0)) {
katb = katb + 360;
}
if ((_ymouse - 480) < 0) {
katb = katb + 180;
}
katdelta = katb - kata;
if (katdelta < -180) {
katdelta = ((katb - kata) + 360) % 360;
}
if (katdelta > 180) {
katdelta = ((katb - kata) - 360) % 360;
}
_root.Rotationcouter = _root.Rotationcouter - katdelta;
var i = 1;
while (i < _root.planetsarray.length) {
var palanetta = eval ("_root.Solarsystem." + _root.planetsarray[i][0]);
palanetta._rotation = palanetta._rotation - (katdelta * _root.planetsarray[i][2]);
i++;
}
_root.Solarsystem.Earth.Moon._rotation = _root.Solarsystem.Earth.Moon._rotation - (katdelta * _root.planetsarray[3][3][1][2]);
Pointer._rotation = _root.Solarsystem.Earth._rotation + 180;
kata = katb;
};
};
Rotatorstop = function () {
_root.Rotator.removeMovieClip();
_root.Starsystem.Background.gotoAndStop(_root.Starsystem.Background._currentframe - 1);
_root.Starsystem.Pointerer.gotoAndStop(1);
};
Zodiacshow = function () {
_root.Starsystem.Background.gotoAndStop(3);
};
Zodiachide = function () {
_root.Starsystem.Background.gotoAndStop(1);
};
Moonbuilder = function () {
Moonshine = _root.attachMovie("Moonfases", "Moonfases", 180);
Moonshine._visible = 0;
Moonshine._x = 100;
Moonshine._y = 860;
Moonshine._xscale = (Moonshine._yscale = 100);
Moonshine.onEnterFrame = function () {
if (_root.Solarsystem.Earth.Moon._rotation < 0) {
Moonshine.Moonblind.Circle._visible = 0;
Moonshine.Moonblind.MBRight._visible = 1;
if (_root.Solarsystem.Earth.Moon._rotation >= -90) {
Moonshine.Moonblind.MBRight._rotation = 180;
Moonshine.Moonblind.Rightsquare._rotation = 180;
Moonshine.Moonblind.MBRight._xscale = 100 * Math.sin(((-_root.Solarsystem.Earth.Moon._rotation) * Math.PI) / 180);
Moonshine.Moonblind.Rightsquare._x = -Moonshine.Moonblind.MBRight._width;
} else {
Moonshine.Moonblind.MBRight._rotation = 0;
Moonshine.Moonblind.Rightsquare._rotation = 0;
Moonshine.Moonblind.MBRight._xscale = 100 * Math.sin(((-_root.Solarsystem.Earth.Moon._rotation) * Math.PI) / 180);
Moonshine.Moonblind.Rightsquare._x = Moonshine.Moonblind.MBRight._width;
}
} else {
Moonshine.Moonblind.Circle._visible = 1;
Moonshine.Moonblind.MBRight._visible = 0;
if (_root.Solarsystem.Earth.Moon._rotation < 90) {
Moonshine.Moonblind.Circle._rotation = 0;
Moonshine.Moonblind.Circle._xscale = 100 * Math.sin((_root.Solarsystem.Earth.Moon._rotation * Math.PI) / 180);
Moonshine.Moonblind.Rightsquare._rotation = 180;
Moonshine.Moonblind.Rightsquare._x = 0;
} else {
Moonshine.Moonblind.Circle._rotation = 180;
Moonshine.Moonblind.Circle._xscale = 100 * Math.sin((_root.Solarsystem.Earth.Moon._rotation * Math.PI) / 180);
Moonshine.Moonblind.Rightsquare._rotation = 0;
Moonshine.Moonblind.Rightsquare._x = 0;
}
}
};
};
Muzyka = new Sound();
Muzyka.attachSound("guitar");
Grac = function () {
Muzyka.start(0, 3000);
Muzyka.setVolume(12);
};
Niegrac = function () {
Muzyka.stop();
};
Copernican();
_root.Solarsystem._visible = 0;
Moonbuilder();
Niegrac();
_root.Controlls.Soundmovie.gotoAndStop(1);
Displaylist = function () {
Tracerbutsett = _root.Controlls.attachMovie("Tracerbutset", "Tracerbutset", 8);
Tracerbutsett._x = 769;
Tracerbutsett._y = 53;
if (_root.helpon == 1) {
Tracerbutsett.gotoAndStop(2);
}
};
Hidelist = function () {
_root.Controlls.Tracerbutset.removeMovieClip();
};
Planettrace = function () {
tracerspace = _root.createEmptyMovieClip("Tracespace", 2);
_root.linecounter = 2;
_root.Starttrace();
};
Clearplanettrace = function () {
_root.Tracespace.removeMovieClip();
};
Starttrace = function () {
var pointer = {x:0, y:0};
tracetarget = eval ((("_root.Solarsystem." + _root.tracedplanet) + ".Planet") + tracedplanet);
tracetarget.localToGlobal(pointer);
_root.exx = pointer.x;
_root.exy = pointer.y;
tracertrigger = _root.Tracespace.createEmptyMovieClip("Tracertrigger", 1);
tracertrigger.onEnterFrame = function () {
var _local2 = {x:0, y:0};
tracetarget.localToGlobal(_local2);
if (Math.sqrt(((_local2.x - _root.exx) * (_local2.x - _root.exx)) + ((_local2.y - _root.exy) * (_local2.y - _root.exy))) > _root.dotdistance) {
_root.linecounter = _root.linecounter + 1;
if (_root.linecounter > _root.dotemaxnumber) {
_root.linecounter = 2;
}
newliner = _root.Tracespace.createEmptyMovieClip("Linemovie" + _root.linecounter, _root.linecounter);
newliner.lineStyle(_root.traceline, 9085670, 25);
newliner.moveTo(_local2.x, _local2.y);
newliner.lineTo(_root.exx, _root.exy);
_root.exx = _local2.x;
_root.exy = _local2.y;
newliner.cacheAsBitmap = true;
}
};
};
Stoptrace = function () {
_root.Tracespace.Tracertrigger.removeMovieClip();
};
tracedplanet = "Mars";
dotemaxnumber = 350;
dotdistance = 4;
tracebuttonaction = function (butnumber) {
_root.tracedplanet = _root.planetsarray[butnumber][0];
_root.dotemaxnumber = _root.planetsarray[butnumber][7];
_root.dotdistance = _root.planetsarray[butnumber][8];
_root.Planettrace();
_root.Hidelist();
};
Helpshow = function () {
_root.Controlls.Helpmovie.gotoAndStop(2);
_root.helpon = 1;
helpmover = _root.Controlls.Helpmovie.createEmptyMovieClip("Helpmover", 20);
if (_root.systemtype == 2) {
_root.Controlls.Helpmovie.Helphelper.gotoAndStop(2);
} else {
_root.Controlls.Helpmovie.Helphelper.gotoAndStop(1);
}
helpmover.onEnterFrame = function () {
if (_root.systemtype == 2) {
_root.Controlls.Helpmovie.Highlightcircle._rotation = _root.Solarsystem.Earth._rotation - 90;
} else {
_root.Controlls.Helpmovie.Highlightcircle._rotation = _root.Solarsystem.Earth._rotation + 90;
}
_root.Controlls.Helpmovie.Highlightcircle.Circlelabel._rotation = -_root.Controlls.Helpmovie.Highlightcircle._rotation;
_root.Controlls.Helpmovie.Highlightsquare._x = ((_root.Controlls.Slaid.Slaider._x + _root.Controlls.Helpmovie._x) + _root.Controlls._x) + 30;
};
};
Helphide = function () {
_root.Controlls.Helpmovie.gotoAndStop(1);
_root.Controlls.Helpmovie.Helpmover.removeMovieClip();
_root.helpon = 0;
};
Frame 2
thisdate = new Date();
thisdate.getTime();
switchday = thisdate.getDate();
switchmonth = thisdate.getMonth() + 1;
switchyear = thisdate.getFullYear();
switcheryear = thisdate.getFullYear();
Dateswitcher();
_root.Solarsystem._visible = 1;
Frame 3
stop();
Symbol 8 MovieClip [Planisphere_coperto] Frame 4
if (_root.Controlls.Slaid.Slaider._x > 0) {
this.gotoAndPlay(1);
} else {
this.gotoAndPlay(10);
}
if (_root.Controlls.Slaid.Slaider._x == 0) {
this.gotoAndPlay(3);
}
Symbol 8 MovieClip [Planisphere_coperto] Frame 13
if (_root.Controlls.Slaid.Slaider._x < 0) {
this.gotoAndPlay(10);
} else {
this.gotoAndPlay(1);
}
Symbol 14 MovieClip [Arrow] Frame 1
stop();
Symbol 14 MovieClip [Arrow] Frame 2
stop();
Symbol 99 MovieClip [Background] Frame 1
stop();
Symbol 99 MovieClip [Background] Frame 2
stop();
Symbol 99 MovieClip [Background] Frame 3
stop();
Symbol 99 MovieClip [Background] Frame 4
stop();
Symbol 108 Button
on (release, releaseOutside) {
_root.Displaylist();
this.gotoAndStop(3);
}
Symbol 109 Button
on (release, releaseOutside) {
_root.Displaylist();
}
Symbol 113 Button
on (release, releaseOutside) {
this.gotoAndStop(2);
_root.Clearplanettrace();
}
Symbol 114 MovieClip Frame 1
stop();
Symbol 114 MovieClip Frame 2
stop();
Symbol 114 MovieClip Frame 3
stop();
Symbol 119 Button
on (release, releaseOutside) {
_root.Zodiacshow();
this.gotoAndStop(2);
}
Symbol 123 Button
on (release, releaseOutside) {
_root.Zodiachide();
this.gotoAndStop(1);
}
Symbol 124 MovieClip Frame 1
stop();
Symbol 124 MovieClip Frame 2
stop();
Symbol 126 Button
on (rollOver) {
_root.Controlls.Slaid.Slaider.LED._visible = 1;
}
on (rollOut) {
_root.Controlls.Slaid.Slaider.LED._visible = 0;
}
on (release, releaseOutside) {
_root.Controlls.Slaid.Slaider._x = -40;
_root.Controlls.Slaid.Slaider._visible = 1;
_root.Controlls.Slaid.Ghost.removeMovieClip();
_root.Fast = 0;
}
Symbol 127 Button
on (rollOver) {
_root.Controlls.Slaid.Slaider.LED._visible = 1;
}
on (rollOut) {
_root.Controlls.Slaid.Slaider.LED._visible = 0;
}
on (release, releaseOutside) {
_root.Controlls.Slaid.Slaider._x = 40;
_root.Controlls.Slaid.Slaider._visible = 1;
_root.Controlls.Slaid.Ghost.removeMovieClip();
_root.Fast = 0;
}
Symbol 128 Button
on (rollOver) {
_root.Controlls.Slaid.Slaider.LED._visible = 1;
}
on (rollOut) {
_root.Controlls.Slaid.Slaider.LED._visible = 0;
}
on (release, releaseOutside) {
_root.Controlls.Slaid.Slaider._x = 0;
_root.Controlls.Slaid.Slaider._visible = 1;
_root.Controlls.Slaid.Ghost.removeMovieClip();
_root.Fast = 0;
}
Symbol 129 Button
on (rollOver) {
_root.Controlls.Slaid.Slaider.LED._visible = 1;
}
on (rollOut) {
_root.Controlls.Slaid.Slaider.LED._visible = 0;
}
on (release, releaseOutside) {
_root.goSlow();
}
Symbol 130 Button
on (rollOver) {
_root.Controlls.Slaid.Slaider.LED._visible = 1;
}
on (rollOut) {
_root.Controlls.Slaid.Slaider.LED._visible = 0;
}
on (release, releaseOutside) {
_root.goFast();
}
Symbol 135 Button
on (press) {
this.startDrag(true, -104, 0, 104, 0);
}
on (release, releaseOutside) {
this.stopDrag();
if ((-5 < this._x) && (this._x < 5)) {
this._x = 0;
}
}
Symbol 143 Button
on (release, releaseOutside) {
_root.ConvertTycho();
}
Symbol 148 Button
on (release, releaseOutside) {
_root.ConvertCoper();
}
Symbol 149 MovieClip Frame 1
stop();
Symbol 149 MovieClip Frame 2
stop();
Symbol 151 Button
on (press) {
_root.Rotatorstart();
_root.Stoptrace();
}
on (release, releaseOutside) {
_root.Rotatorstop();
_root.Starttrace();
}
Symbol 154 Button
on (release, releaseOutside) {
_root.Moonfases._visible = 1;
this.gotoAndStop(2);
}
Symbol 156 Button
on (release, releaseOutside) {
_root.Moonfases._visible = 0;
this.gotoAndStop(1);
}
Symbol 157 MovieClip Frame 1
stop();
Symbol 157 MovieClip Frame 2
stop();
Symbol 162 Button
on (release, releaseOutside) {
_root.Grac();
this.gotoAndStop(2);
}
Symbol 166 Button
on (release, releaseOutside) {
_root.Niegrac();
this.gotoAndStop(1);
}
Symbol 167 MovieClip Frame 1
stop();
Symbol 167 MovieClip Frame 2
stop();
Symbol 172 Button
on (release, releaseOutside) {
_root.Helpshow();
}
Symbol 174 Button
on (release, releaseOutside) {
_root.Helphide();
}
Symbol 198 MovieClip Frame 1
stop();
Symbol 198 MovieClip Frame 2
stop();
Symbol 205 MovieClip Frame 1
stop();
Symbol 205 MovieClip Frame 2
stop();
Symbol 208 Button
on (release, releaseOutside) {
_root.Stoper();
_root.Stoptrace();
if (_root._root.helpon == 1) {
this.gotoAndStop(3);
} else {
this.gotoAndStop(2);
}
}
Symbol 217 Button
on (release) {
this.gotoAndStop(1);
_root.Dateswitcher();
}
on (releaseOutside) {
this.gotoAndStop(1);
}
Symbol 223 MovieClip Frame 1
stop();
Symbol 223 MovieClip Frame 2
stop();
Symbol 223 MovieClip Frame 3
stop();
Symbol 239 Button
on (release, releaseOutside) {
_root.tracebuttonaction(1);
}
Symbol 242 Button
on (release, releaseOutside) {
_root.tracebuttonaction(2);
}
Symbol 245 Button
on (release, releaseOutside) {
_root.tracebuttonaction(4);
}
Symbol 248 Button
on (release, releaseOutside) {
_root.tracebuttonaction(6);
}
Symbol 252 Button
on (release, releaseOutside) {
_root.tracebuttonaction(7);
}
Symbol 255 Button
on (release, releaseOutside) {
_root.tracebuttonaction(8);
}
Symbol 258 Button
on (release, releaseOutside) {
_root.tracebuttonaction(9);
}
Symbol 262 MovieClip [Tracerbutset] Frame 1
stop();
Symbol 262 MovieClip [Tracerbutset] Frame 2
stop();