Frame 1
function LoadCPM() {
var _local1 = "0";
System.security.allowDomain("server.cpmstar.com");
adBox.loadMovie("http://server.cpmstar.com/adviewas2.swf?contentspotid=1321Q63449B85");
Logo2._visible = false;
}
LoadCPM();
stop();
Instance of Symbol 28 MovieClip in Frame 1
on (press) {
getURL ("http://www.fastgames.com", "_blank");
}
Frame 2
function InitStage() {
var _local2;
var _local4;
var _local5 = 0;
m_wheels.splice(0);
m_pipki.splice(0);
if (_root.b_PlaySound == false) {
_root.SoundButton.gotoAndStop("off");
}
b_final = false;
WinTip._visible = false;
_local2 = 0;
while (_local2 <= 100) {
var _local3 = "Wheel" + _local2;
if (_root[_local3] != undefined) {
if (_root[_local3]._width == m_width1) {
_root[_local3].m_type = 0;
_root[_local3].m_number = 16;
} else if (_root[_local3]._width == m_width2) {
_root[_local3].m_type = 1;
_root[_local3].m_number = 32;
} else if (_root[_local3]._width == m_width3) {
_root[_local3].m_type = 2;
_root[_local3].m_number = 48;
}
_root[_local3].p_pipka = 0;
_root[_local3].m_width = _root[_local3]._width;
_root[_local3].m_dt = 0;
_root[_local3].m_last = 0;
_root[_local3].b_mouse = true;
_root[_local3].m_speed = 0;
m_wheels.push(_root[_local3]);
_local5++;
}
_local2++;
}
m_wheels[0].b_rotate = true;
m_wheels[0].m_speed = m_speed;
m_wheels[0].b_mouse = false;
m_wheels[m_wheels.length - 1].b_mouse = false;
if (m_current_level == 9) {
m_wheels[m_wheels.length - 1].b_mouse = true;
}
for (_local2 in _root) {
if ((_root[_local2]._width != undefined) and (_root[_local2]._width == _root[_local2]._height)) {
if (_root[_local2]._width == 27) {
_root[_local2].p_connected = 0;
m_pipki.push(_root[_local2]);
}
}
}
_local2 = 0;
while (_local2 < m_wheels.length) {
_local4 = 0;
while (_local4 < m_pipki.length) {
if ((Math.abs(m_wheels[_local2]._x - m_pipki[_local4]._x) < 5) and (Math.abs(m_wheels[_local2]._y - m_pipki[_local4]._y) < 5)) {
m_wheels[_local2].p_pipka = m_pipki[_local4];
m_pipki[_local4].p_connected = m_wheels[_local2];
}
_local4++;
}
_local2++;
}
_local2 = 0;
while (_local2 < m_wheels.length) {
if (m_wheels[_local2].p_pipka == 0) {
m_wheels[_local2]._y = 475;
}
_local2++;
}
}
function CheckFinish() {
if (m_wheels[m_wheels.length - 1].b_rotate == false) {
return(undefined);
}
b_final = true;
WinTip._visible = true;
mx.behaviors.DepthControl.bringToFront(WinTip);
if (m_current_level == m_last_level) {
m_last_level++;
myLSO.data.myObj.level = m_last_level;
myLSO.flush();
}
}
function ColorPipki() {
var _local1;
var _local2;
var _local4;
var _local3;
var _local5;
var _local6;
var _local8;
if (p_connected == 0) {
_local1 = 0;
while (_local1 < m_pipki.length) {
var _local7 = new Array();
m_pipki[_local1].filters = _local7;
_local1++;
}
return(undefined);
}
_local1 = 0;
while (_local1 < m_pipki.length) {
m_pipki[_local1].b_green = true;
_local1++;
}
_local1 = 0;
while (_local1 < m_pipki.length) {
if (m_pipki[_local1].p_connected == 0) {
_local2 = 0;
while (_local2 < m_pipki.length) {
if (m_pipki[_local2].p_connected != 0) {
_local4 = m_pipki[_local1]._x - m_pipki[_local2]._x;
_local3 = m_pipki[_local1]._y - m_pipki[_local2]._y;
_local6 = Math.sqrt((_local4 * _local4) + (_local3 * _local3));
_local5 = ((m_pipki[_local2].p_connected.m_width / 2) + (p_connected.m_width / 2)) - 7;
if (_local6 < _local5) {
m_pipki[_local1].b_green = false;
break;
}
}
_local2++;
}
if (m_pipki[_local1].b_green) {
_local8 = 65280;
} else {
_local8 = 16711680 /* 0xFF0000 */;
}
var _local9 = new flash.filters.GlowFilter(_local8, 255, 5, 5);
var _local7 = new Array();
_local7.push(_local9);
m_pipki[_local1].filters = _local7;
}
_local1++;
}
}
function ConnectToNearest() {
var _local3;
var _local2;
var _local6;
var _local5;
var _local4;
var _local10 = 0;
var _local9 = 1000;
var _local8;
var _local7;
if (p_connected == 0) {
return(undefined);
}
_local3 = 0;
while (_local3 < m_pipki.length) {
if ((m_pipki[_local3].p_connected == 0) and (_root._ymouse < 400)) {
_local7 = true;
_local2 = 0;
while (_local2 < m_wheels.length) {
if (m_wheels[_local2].p_pipka and (m_wheels[_local2] != p_connected)) {
_local5 = m_pipki[_local3]._x - m_wheels[_local2]._x;
_local4 = m_pipki[_local3]._y - m_wheels[_local2]._y;
_local6 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
_local8 = ((p_connected.m_width / 2) + (m_wheels[_local2].m_width / 2)) - 7;
if (_local6 < _local8) {
_local7 = false;
break;
}
}
_local2++;
}
if (_local7) {
_local5 = m_pipki[_local3]._x - p_connected._x;
_local4 = m_pipki[_local3]._y - p_connected._y;
_local6 = Math.sqrt((_local5 * _local5) + (_local4 * _local4));
if (_local6 < _local9) {
_local9 = _local6;
_local10 = m_pipki[_local3];
}
}
}
_local3++;
}
if (_local10) {
_local10.p_connected = p_connected;
p_connected.p_pipka = _local10;
p_connected._x = _local10._x;
p_connected._y = _local10._y;
p_connected = 0;
UpdateWheels();
_root.SoundHit.start(0, 1);
CheckFinish();
} else {
p_connected._y = 475;
p_connected = 0;
_root.SoundClick.start(0, 1);
}
ColorPipki();
}
function UpdateWheels() {
var _local2;
var _local1;
var _local14;
var _local9;
var _local15 = true;
var _local8;
var _local7;
var _local3;
var _local6;
var _local5;
var _local11;
var _local10;
var _local4;
var _local13;
var _local12;
_local2 = 0;
while (_local2 < m_wheels.length) {
m_wheels[_local2].b_old_rotate = m_wheels[_local2].b_rotate;
_local2++;
}
_local2 = 1;
while (_local2 < m_wheels.length) {
m_wheels[_local2].b_rotate = false;
_local2++;
}
while (_local15) {
_local15 = false;
_local2 = 0;
while (_local2 < m_wheels.length) {
if (m_wheels[_local2].b_rotate and m_wheels[_local2].p_pipka) {
_local1 = 1;
while (_local1 < m_wheels.length) {
if ((m_wheels[_local1].b_rotate == false) and m_wheels[_local1].p_pipka) {
_local8 = m_wheels[_local2]._x - m_wheels[_local1]._x;
_local7 = m_wheels[_local2]._y - m_wheels[_local1]._y;
_local14 = Math.sqrt((_local8 * _local8) + (_local7 * _local7));
_local9 = ((m_wheels[_local2].m_width / 2) + (m_wheels[_local1].m_width / 2)) - 3;
if (_local14 < _local9) {
_local3 = Math.atan2(m_wheels[_local1]._x - m_wheels[_local2]._x, m_wheels[_local1]._y - m_wheels[_local2]._y);
_local3 = (_local3 / Math.PI) * 180;
while (m_wheels[_local2].m_last > 360) {
m_wheels[_local2].m_last = m_wheels[_local2].m_last - 360;
}
while (m_wheels[_local2].m_last < -360) {
m_wheels[_local2].m_last = m_wheels[_local2].m_last + 360;
}
while (m_wheels[_local1].m_last > 360) {
m_wheels[_local1].m_last = m_wheels[_local1].m_last - 360;
}
while (m_wheels[_local1].m_last < -360) {
m_wheels[_local1].m_last = m_wheels[_local1].m_last + 360;
}
_local13 = m_wheels[_local2].m_number;
_local12 = m_wheels[_local1].m_number;
_local6 = 360 / _local13;
_local5 = 360 / _local12;
_local4 = int(((m_wheels[_local2].m_last - m_wheels[_local2].m_dt) + _local3) / _local6);
_local11 = ((m_wheels[_local2].m_last - m_wheels[_local2].m_dt) + _local3) - (_local4 * _local6);
_local4 = int((m_wheels[_local1].m_last + _local3) / _local5);
_local10 = (m_wheels[_local1].m_last + _local3) - (_local4 * _local5);
m_wheels[_local1].b_rotate = true;
m_wheels[_local1].m_speed = m_wheels[_local2].m_speed * (m_wheels[_local2].m_number / m_wheels[_local1].m_number);
m_wheels[_local1].m_speed = -m_wheels[_local1].m_speed;
if (m_wheels[_local1].b_old_rotate == false) {
m_wheels[_local1].m_dt = ((((-_local11) * m_wheels[_local1].m_speed) / m_wheels[_local2].m_speed) + _local10) + (_local5 * 0.5);
}
_local15 = true;
}
}
_local1++;
}
}
_local2++;
}
}
}
function sitelock(urls_allowed) {
lock = true;
domain_parts = _url.split("://");
real_domain = domain_parts[1].split("/");
domain.text = real_domain[0];
for (x in urls_allowed) {
if (urls_allowed[x] == real_domain[0]) {
lock = false;
}
}
if (lock) {
_root._visible = false;
}
}
m_wheels = new Array();
m_pipki = new Array();
m_speed = 1;
m_width1 = 63;
m_width2 = 122;
m_width3 = 181;
p_connected = 0;
m_delta_x = 0;
m_delta_y = 0;
m_start_x = 0;
m_start_y = 0;
b_PlaySound = true;
b_start = true;
b_final = false;
MySound = new Sound();
MySound.attachSound("ambient_wheels");
MySound.start(0, 9999);
myLSO = SharedObject.getLocal("WheelGameUserLevel");
if (myLSO.data.myObj == undefined) {
myObj = {};
myObj.level = 1;
_root.m_last_level = 1;
myLSO.data.myObj = myObj;
} else {
_root.m_last_level = myLSO.data.myObj.level;
}
urls_allowed = ["flashgamelicense.com", "www.flashgamelicense.com"];
stop();
Instance of Symbol 101 MovieClip in Frame 2
on (press) {
getURL ("http://www.astargames.ru", "_blank");
}
Frame 15
if (b_start) {
MyMusic = new Sound();
MyMusic.attachSound("minigame2");
MyMusic.start(0, 9999);
SoundClick = new Sound();
SoundClick.attachSound("mouse_click");
SoundHit = new Sound();
SoundHit.attachSound("metal_hit");
b_start = false;
}
_root.ToGameTip._visible = false;
Instance of Symbol 123 MovieClip "1" in Frame 15
onClipEvent (load) {
stage = 1;
if (_root.m_last_level >= stage) {
Lock._visible = false;
}
if (_root.m_last_level <= stage) {
Ok._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (Lock._visible) {
this.Gear._rotation = this.Gear._rotation + ((Math.random() * 3) - 1.5);
} else {
this.Gear._rotation = this.Gear._rotation + 1;
}
}
}
onClipEvent (mouseDown) {
if (Lock._visible) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.m_current_level = stage;
_root.gotoAndStop("Stage" + stage);
}
}
Instance of Symbol 123 MovieClip in Frame 15
onClipEvent (load) {
stage = 2;
if (_root.m_last_level >= stage) {
Lock._visible = false;
}
if (_root.m_last_level <= stage) {
Ok._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (Lock._visible) {
this.Gear._rotation = this.Gear._rotation + ((Math.random() * 3) - 1.5);
} else {
this.Gear._rotation = this.Gear._rotation + 1;
}
}
}
onClipEvent (mouseDown) {
if (Lock._visible) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.m_current_level = stage;
_root.gotoAndStop("Stage" + stage);
}
}
Instance of Symbol 123 MovieClip in Frame 15
onClipEvent (load) {
stage = 3;
if (_root.m_last_level >= stage) {
Lock._visible = false;
}
if (_root.m_last_level <= stage) {
Ok._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (Lock._visible) {
this.Gear._rotation = this.Gear._rotation + ((Math.random() * 3) - 1.5);
} else {
this.Gear._rotation = this.Gear._rotation + 1;
}
}
}
onClipEvent (mouseDown) {
if (Lock._visible) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.m_current_level = stage;
_root.gotoAndStop("Stage" + stage);
}
}
Instance of Symbol 123 MovieClip in Frame 15
onClipEvent (load) {
stage = 4;
if (_root.m_last_level >= stage) {
Lock._visible = false;
}
if (_root.m_last_level <= stage) {
Ok._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (Lock._visible) {
this.Gear._rotation = this.Gear._rotation + ((Math.random() * 3) - 1.5);
} else {
this.Gear._rotation = this.Gear._rotation + 1;
}
}
}
onClipEvent (mouseDown) {
if (Lock._visible) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.m_current_level = stage;
_root.gotoAndStop("Stage" + stage);
}
}
Instance of Symbol 123 MovieClip in Frame 15
onClipEvent (load) {
stage = 5;
if (_root.m_last_level >= stage) {
Lock._visible = false;
}
if (_root.m_last_level <= stage) {
Ok._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (Lock._visible) {
this.Gear._rotation = this.Gear._rotation + ((Math.random() * 3) - 1.5);
} else {
this.Gear._rotation = this.Gear._rotation + 1;
}
}
}
onClipEvent (mouseDown) {
if (Lock._visible) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.m_current_level = stage;
_root.gotoAndStop("Stage" + stage);
}
}
Instance of Symbol 123 MovieClip in Frame 15
onClipEvent (load) {
stage = 6;
if (_root.m_last_level >= stage) {
Lock._visible = false;
}
if (_root.m_last_level <= stage) {
Ok._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (Lock._visible) {
this.Gear._rotation = this.Gear._rotation + ((Math.random() * 3) - 1.5);
} else {
this.Gear._rotation = this.Gear._rotation + 1;
}
}
}
onClipEvent (mouseDown) {
if (Lock._visible) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.m_current_level = stage;
_root.gotoAndStop("Stage" + stage);
}
}
Instance of Symbol 123 MovieClip in Frame 15
onClipEvent (load) {
stage = 7;
if (_root.m_last_level >= stage) {
Lock._visible = false;
}
if (_root.m_last_level <= stage) {
Ok._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (Lock._visible) {
this.Gear._rotation = this.Gear._rotation + ((Math.random() * 3) - 1.5);
} else {
this.Gear._rotation = this.Gear._rotation + 1;
}
}
}
onClipEvent (mouseDown) {
if (Lock._visible) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.m_current_level = stage;
_root.gotoAndStop("Stage" + stage);
}
}
Instance of Symbol 123 MovieClip in Frame 15
onClipEvent (load) {
stage = 8;
if (_root.m_last_level >= stage) {
Lock._visible = false;
}
if (_root.m_last_level <= stage) {
Ok._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (Lock._visible) {
this.Gear._rotation = this.Gear._rotation + ((Math.random() * 3) - 1.5);
} else {
this.Gear._rotation = this.Gear._rotation + 1;
}
}
}
onClipEvent (mouseDown) {
if (Lock._visible) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.m_current_level = stage;
_root.gotoAndStop("Stage" + stage);
}
}
Instance of Symbol 123 MovieClip in Frame 15
onClipEvent (load) {
stage = 9;
if (_root.m_last_level >= stage) {
Lock._visible = false;
}
if (_root.m_last_level <= stage) {
Ok._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (Lock._visible) {
this.Gear._rotation = this.Gear._rotation + ((Math.random() * 3) - 1.5);
} else {
this.Gear._rotation = this.Gear._rotation + 1;
}
}
}
onClipEvent (mouseDown) {
if (Lock._visible) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.m_current_level = stage;
_root.gotoAndStop("Stage" + stage);
}
}
Instance of Symbol 123 MovieClip in Frame 15
onClipEvent (load) {
stage = 10;
if (_root.m_last_level >= stage) {
Lock._visible = false;
}
if (_root.m_last_level <= stage) {
Ok._visible = false;
}
}
onClipEvent (enterFrame) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
if (Lock._visible) {
this.Gear._rotation = this.Gear._rotation + ((Math.random() * 3) - 1.5);
} else {
this.Gear._rotation = this.Gear._rotation + 1;
}
}
}
onClipEvent (mouseDown) {
if (Lock._visible) {
return(undefined);
}
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
_root.m_current_level = stage;
_root.gotoAndStop("Stage" + stage);
}
}
Instance of Symbol 134 MovieClip in Frame 15
on (press) {
getURL ("http://www.fastgames.com", "_blank");
}
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 50;
} else {
this._alpha = 100;
}
}
Instance of Symbol 135 MovieClip in Frame 15
on (press) {
getURL ("http://www.astargames.ru", "_blank");
}
onClipEvent (mouseMove) {
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this._alpha = 50;
} else {
this._alpha = 100;
}
}
Instance of Symbol 137 MovieClip in Frame 15
onClipEvent (enterFrame) {
this._rotation = this._rotation + 0.3333333333;
}
Instance of Symbol 139 MovieClip in Frame 15
onClipEvent (enterFrame) {
this._rotation = this._rotation + 0.5;
}
Instance of Symbol 39 MovieClip "Wheel1" in Frame 30
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel3" in Frame 30
on (press) {
}
Instance of Symbol 4 MovieClip [Actions] "Actions" in Frame 30
onClipEvent (load) {
_root.InitStage();
}
onClipEvent (enterFrame) {
var i = 0;
while (i < _root.m_wheels.length) {
if (_root.m_wheels[i].b_rotate == true) {
_root.m_wheels[i].m_last = _root.m_wheels[i].m_last + _root.m_wheels[i].m_speed;
_root.m_wheels[i]._rotation = _root.m_wheels[i].m_last - _root.m_wheels[i].m_dt;
}
i++;
}
if (_root.p_connected) {
_root.p_connected._x = _root._xmouse + _root.m_delta_x;
_root.p_connected._y = _root._ymouse + _root.m_delta_y;
}
if (_root.WinTip._visible == false) {
var i = 0;
while (i < _root.m_wheels.length) {
if (_root.m_wheels[i].b_mouse == false) {
if (_root.m_wheels[i].hitTest(_root._xmouse, _root._ymouse, true)) {
xx = _root.m_wheels[i]._x - _root._xmouse;
yy = _root.m_wheels[i]._y - _root._ymouse;
dist = (xx * xx) + (yy * yy);
r = _root.m_wheels[i].m_width / 2;
if (dist < (r * r)) {
Mouse.hide();
_root.Cursor1._visible = true;
_root.Cursor2._visible = false;
_root.Cursor1._x = _root._xmouse;
_root.Cursor1._y = _root._ymouse;
return(undefined);
}
}
}
i++;
}
}
_root.Cursor2._visible = false;
_root.Cursor1._visible = false;
Mouse.show();
}
onClipEvent (mouseDown) {
var wheel = 0;
var depth = 0;
var dist;
var xx;
var yy;
var r;
if (_root.b_final) {
return(undefined);
}
if (_root.p_connected) {
_root.ConnectToNearest();
return(undefined);
}
_root.m_start_x = _root._xmouse;
_root.m_start_y = _root._ymouse;
var i = 0;
while (i < _root.m_wheels.length) {
if (_root.m_wheels[i].b_mouse) {
if (_root.m_wheels[i].hitTest(_root._xmouse, _root._ymouse, true)) {
if ((_root.m_wheels[i].getDepth() > depth) or (wheel == 0)) {
wheel = _root.m_wheels[i];
depth = _root.m_wheels[i].getDepth();
}
}
}
i++;
}
if (wheel) {
if (wheel.p_pipka) {
wheel.p_pipka.p_connected = 0;
wheel.p_pipka = 0;
_root.UpdateWheels();
}
_root.p_connected = wheel;
_root.m_delta_x = wheel._x - _root._xmouse;
_root.m_delta_y = wheel._y - _root._ymouse;
mx.behaviors.DepthControl.bringToFront(wheel);
mx.behaviors.DepthControl.bringToFront(_root.Cursor1);
mx.behaviors.DepthControl.bringToFront(_root.Cursor2);
_root.ColorPipki();
_root.SoundClick.start(0, 1);
}
}
onClipEvent (mouseUp) {
if ((Math.abs(_root.m_start_x - _root._xmouse) > 10) or (Math.abs(_root.m_start_y - _root._ymouse) > 10)) {
if (_root.p_connected) {
_root.ConnectToNearest();
}
}
}
Instance of Symbol 160 MovieClip "SoundButton" in Frame 30
on (press) {
if (_root.b_PlaySound == true) {
_root.MySound.setVolume(0);
_root.MyMusic.setVolume(0);
_root.SoundHit.setVolume(0);
_root.SoundClick.setVolume(0);
_root.b_PlaySound = false;
_root.SoundButton.gotoAndStop("off");
} else {
_root.MySound.setVolume(100);
_root.MyMusic.setVolume(100);
_root.SoundHit.setVolume(100);
_root.SoundClick.setVolume(100);
_root.b_PlaySound = true;
_root.SoundButton.gotoAndStop("on");
}
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel4" in Frame 45
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel3" in Frame 45
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel1" in Frame 45
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel2" in Frame 45
on (press) {
}
Instance of Symbol 36 MovieClip "Wheel5" in Frame 45
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel6" in Frame 45
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel5" in Frame 60
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel6" in Frame 70
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel7" in Frame 70
on (press) {
}
Instance of Symbol 36 MovieClip "Wheel5" in Frame 80
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel6" in Frame 90
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel1" in Frame 90
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel2" in Frame 90
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel5" in Frame 90
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel7" in Frame 90
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel4" in Frame 100
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel3" in Frame 100
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel1" in Frame 100
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel2" in Frame 100
on (press) {
}
Instance of Symbol 36 MovieClip "Wheel5" in Frame 110
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel4" in Frame 110
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel6" in Frame 110
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel7" in Frame 110
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel3" in Frame 110
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel3" in Frame 120
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel99" in Frame 120
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel4" in Frame 130
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel1" in Frame 130
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel2" in Frame 130
on (press) {
}
Instance of Symbol 36 MovieClip "Wheel5" in Frame 130
on (press) {
}
Instance of Symbol 36 MovieClip "Wheel6" in Frame 130
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel7" in Frame 130
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel8" in Frame 130
on (press) {
}
Instance of Symbol 7 MovieClip [Wheel1] "Wheel9" in Frame 130
on (press) {
}
Instance of Symbol 39 MovieClip "Wheel10" in Frame 130
on (press) {
}
Instance of Symbol 4 MovieClip [Actions] "Actions" in Frame 140
onClipEvent (load) {
_root.InitStage();
}
onClipEvent (enterFrame) {
var i = 0;
while (i < _root.m_wheels.length) {
if (_root.m_wheels[i].b_rotate == true) {
_root.m_wheels[i].m_last = _root.m_wheels[i].m_last + _root.m_wheels[i].m_speed;
_root.m_wheels[i]._rotation = _root.m_wheels[i].m_last - _root.m_wheels[i].m_dt;
}
i++;
}
if (_root.p_connected) {
_root.p_connected._x = _root._xmouse + _root.m_delta_x;
_root.p_connected._y = _root._ymouse + _root.m_delta_y;
}
}
onClipEvent (mouseDown) {
var wheel = 0;
var depth = 0;
var dist;
var xx;
var yy;
var r;
if (_root.p_connected) {
_root.ConnectToNearest();
return(undefined);
}
_root.m_start_x = _root._xmouse;
_root.m_start_y = _root._ymouse;
var i = 0;
while (i < _root.m_wheels.length) {
if (_root.m_wheels[i].b_mouse) {
if (_root.m_wheels[i].hitTest(_root._xmouse, _root._ymouse, true)) {
xx = _root.m_wheels[i]._x - _root._xmouse;
yy = _root.m_wheels[i]._y - _root._ymouse;
dist = Math.sqrt((xx * xx) + (yy * yy));
r = _root.m_wheels[i].m_width / 2;
if (dist < r) {
if ((_root.m_wheels[i].getDepth() > depth) or (wheel == 0)) {
wheel = _root.m_wheels[i];
depth = _root.m_wheels[i].getDepth();
}
}
}
}
i++;
}
if (wheel) {
if (wheel.p_pipka) {
wheel.p_pipka.p_connected = 0;
wheel.p_pipka = 0;
_root.UpdateWheels();
}
_root.p_connected = wheel;
_root.m_delta_x = wheel._x - _root._xmouse;
_root.m_delta_y = wheel._y - _root._ymouse;
mx.behaviors.DepthControl.bringToFront(wheel);
_root.ColorPipki();
}
}
onClipEvent (mouseUp) {
if ((Math.abs(_root.m_start_x - _root._xmouse) > 10) or (Math.abs(_root.m_start_y - _root._ymouse) > 10)) {
if (_root.p_connected) {
_root.ConnectToNearest();
}
}
}
Symbol 7 MovieClip [Wheel1] Frame 1
linkage = "Wheel1";
Instance of Symbol 15 MovieClip in Symbol 18 MovieClip Frame 1
onClipEvent (load) {
this._xscale = 0;
totalFileSize = _root.getBytesTotal();
to_play = false;
}
onClipEvent (enterFrame) {
bytesLoaded = _root.getBytesLoaded();
amountLoaded = bytesLoaded / totalFileSize;
percentLoaded = int(100 * amountLoaded);
this._xscale = percentLoaded;
_parent.ProgressText = this._xscale + "%";
if (this._xscale >= 100) {
this._xscale = 100;
_parent.ProgressText = "Continue";
}
if (to_play) {
to_play = false;
_root.gotoAndStop("Loading");
}
}
on (press) {
if (this._xscale >= 100) {
to_play = true;
}
}
Symbol 22 MovieClip Frame 12
_parent.play();
stop();
Symbol 25 MovieClip Frame 10
stop();
Symbol 27 Button
on (release) {
getURL ("http://www.fastgames.com/", "_blank");
}
Symbol 28 MovieClip Frame 2
stop();
Symbol 28 MovieClip Frame 7
stop();
Symbol 36 MovieClip Frame 1
linkage = "Wheel2";
Symbol 39 MovieClip Frame 1
linkage = "Wheel0";
Instance of Symbol 36 MovieClip in Symbol 40 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 0.3333333333;
}
Instance of Symbol 39 MovieClip in Symbol 40 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 1;
}
Instance of Symbol 7 MovieClip [Wheel1] in Symbol 40 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 0.5;
}
Symbol 109 Button
on (press) {
gotoAndStop ("Menu");
}
Symbol 167 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);
}
}
Instance of Symbol 119 MovieClip "Lock" in Symbol 123 MovieClip Frame 1
onClipEvent (load) {
this._parent.LevelText = "\u041B\u0432\u043B. " + this._parent._name;
}
Instance of Symbol 36 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 0.3333333333;
}
Instance of Symbol 39 MovieClip in Symbol 134 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 1;
}
Instance of Symbol 7 MovieClip [Wheel1] in Symbol 134 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 0.5;
}
Instance of Symbol 39 MovieClip in Symbol 135 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation - 1;
}
Instance of Symbol 7 MovieClip [Wheel1] in Symbol 135 MovieClip Frame 1
onClipEvent (enterFrame) {
this._rotation = this._rotation + 0.5;
}
Symbol 151 Button
on (press) {
stage = _root.m_current_level + 1;
if (_root.m_last_level < _root.m_current_level) {
_root.m_last_level = _root.m_current_level;
}
_root.gotoAndStop("Menu");
}
Symbol 154 Button
on (press) {
_root.gotoAndStop("Menu");
}
Symbol 160 MovieClip Frame 1
stop();