package konFor2_fla { import adobe.utils.*; import com.greensock.*; import com.greensock.easing.*; import com.hybrid.ui.*; import flash.accessibility.*; import flash.desktop.*; import flash.display.*; import flash.errors.*; import flash.events.*; import flash.external.*; import flash.filters.*; import flash.geom.*; import flash.globalization.*; import flash.media.*; import flash.net.*; import flash.net.drm.*; import flash.printing.*; import flash.profiler.*; import flash.sampler.*; import flash.sensors.*; import flash.system.*; import flash.text.*; import flash.text.engine.*; import flash.text.ime.*; import flash.ui.*; import flash.utils.*; import flash.xml.*; public dynamic class MainTimeline extends flash.display.MovieClip { public function MainTimeline() { super(); addFrameScript(0, this.frame1); return; } public function dragStart(arg1:flash.events.MouseEvent):void { var loc1:*; loc1 = arg1.target; if (loc1.startx == undefined) { loc1.startx = loc1.x; loc1.starty = loc1.y; } loc1.startDrag(); return; } public function reset(arg1:flash.events.MouseEvent):void { this.resetObject(this.ff1); this.resetObject(this.ff2); this.resetObject(this.ff3); this.resetObject(this.ff4); this.yach1 = false; this.yach2 = false; this.yach3 = false; this.yach4 = false; this.walktrough = false; return; } public function resetObject(arg1:*):void { if (arg1.startx) { arg1.x = arg1.startx; arg1.y = arg1.starty; } arg1.gotoAndStop(1); return; } public function dragStop(arg1:flash.events.MouseEvent):void { var loc1:*; loc1 = arg1.target; loc1.stopDrag(); var loc2:*; loc2 = loc1.dropTarget.parent; if (loc2 == this.sHod1) { loc1.x = this.sHod1.x + 10; loc1.y = this.sHod1.y + 10; loc1.gotoAndStop(2); if (loc1.name == "ff1") { this.yach1 = true; } } if (loc2 == this.sHod2) { loc1.x = this.sHod2.x + 10; loc1.y = this.sHod2.y + 10; loc1.gotoAndStop(3); if (loc1.name != "ff1") { this.yach2 = true; } } if (loc2 == this.sHod3) { loc1.x = this.sHod3.x + 10; loc1.y = this.sHod3.y + 10; loc1.gotoAndStop(4); if (loc1.name != "ff1") { this.yach3 = true; } } if (loc2 == this.sHod4) { loc1.x = this.sHod4.x + 10; loc1.y = this.sHod4.y + 10; loc1.gotoAndStop(5); if (loc1.name != "ff1") { this.yach4 = true; } } this.checkDone(); return; } public function makeTooltip1(arg1:flash.events.MouseEvent):* { return; } public function makeTooltip2(arg1:flash.events.MouseEvent):* { return; } public function makeTooltip3(arg1:flash.events.MouseEvent):* { return; } public function makeTooltip4(arg1:flash.events.MouseEvent):* { return; } public function makeTooltipRes(arg1:flash.events.MouseEvent):* { this._reusableTip.show(arg1.target, "", "Сбросить"); return; } public function checkDone():* { if (!this.yach1) { return; } if (!this.yach2) { return; } if (!this.yach3) { return; } if (!this.yach4) { return; } this.walktrough = true; return; } function frame1():* { this._reusableTip = new com.hybrid.ui.ToolTip(); this._reusableTip.hook = true; this._reusableTip.cornerRadius = 10; this._reusableTip.tipWidth = 320; this._reusableTip.align = "right"; this._reusableTip.border = 15658734; this._reusableTip.borderSize = 2; this.yach1 = false; this.yach2 = false; this.yach3 = false; this.yach4 = false; this.walktrough = false; this.sHod1.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.makeTooltip1); this.ff1.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.dragStart); this.ff1.addEventListener(flash.events.MouseEvent.MOUSE_UP, this.dragStop); this.ff1.buttonMode = true; this.sHod2.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.makeTooltip2); this.ff2.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.dragStart); this.ff2.addEventListener(flash.events.MouseEvent.MOUSE_UP, this.dragStop); this.ff2.buttonMode = true; this.sHod3.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.makeTooltip3); this.ff3.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.dragStart); this.ff3.addEventListener(flash.events.MouseEvent.MOUSE_UP, this.dragStop); this.ff3.buttonMode = true; this.sHod4.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.makeTooltip4); this.ff4.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.dragStart); this.ff4.addEventListener(flash.events.MouseEvent.MOUSE_UP, this.dragStop); this.ff4.buttonMode = true; this.ref.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.reset); this.ref.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.makeTooltipRes); this.ref.buttonMode = true; return; } public var ref:flash.display.MovieClip; public var sRas1:flash.display.MovieClip; public var sRas2:flash.display.MovieClip; public var sRas3:flash.display.MovieClip; public var sRas4:flash.display.MovieClip; public var sHod1:flash.display.MovieClip; public var ff1:flash.display.MovieClip; public var sHod2:flash.display.MovieClip; public var ff2:flash.display.MovieClip; public var sHod3:flash.display.MovieClip; public var ff3:flash.display.MovieClip; public var sHod4:flash.display.MovieClip; public var ff4:flash.display.MovieClip; public var _reusableTip:*; public var yach1:Boolean; public var yach2:Boolean; public var yach3:Boolean; public var yach4:Boolean; public var walktrough:Boolean; } }