package { import com.greensock.*; import com.greensock.easing.*; import com.hybrid.ui.*; import flash.display.*; import flash.events.*; import flash.net.*; import flash.system.*; import flash.text.*; import flash.utils.*; public class lab_z_main extends flash.display.MovieClip { public function lab_z_main() { this._reusableTip = new com.hybrid.ui.ToolTip(); super(); addFrameScript(0, this.frame1); this._reusableTip.hook = true; this._reusableTip.cornerRadius = 12; this._reusableTip.tipWidth = 200; this._reusableTip.align = "right"; this._reusableTip.border = 15658734; this._reusableTip.borderSize = 2; this.init(); return; } public function init():void { var loc1:*; loc1 = 40; this.content.bg.height = 25500; this.nextToGo = this.content.y; this.content.page1.y = loc1; this.content.page2.y = this.pageHeigth + loc1; this.content.page3.y = 2 * this.pageHeigth + loc1; this.content.page4.y = 3 * this.pageHeigth + loc1; this.content.page5.y = 4 * this.pageHeigth + loc1; this.content.page6.y = 5 * this.pageHeigth + loc1; this.content.page7.y = 6 * this.pageHeigth + loc1; this.content.page8.y = 7 * this.pageHeigth + loc1; this.content.page9.y = 8 * this.pageHeigth + loc1; this.content.page10.y = 9 * this.pageHeigth + loc1 / 2; this.content.page11.y = 10 * this.pageHeigth + loc1; this.content.page12.y = 11 * this.pageHeigth + loc1; this.content.page13.y = 12 * this.pageHeigth + loc1; this.content.page14.y = 13 * this.pageHeigth + loc1; this.content.page15.y = 14 * this.pageHeigth + loc1; this.content.page18.y = 15 * this.pageHeigth + loc1; this.content.page20.y = 16 * this.pageHeigth + loc1; this.content.page22.y = 17 * this.pageHeigth + loc1; this.content.page23.y = 18 * this.pageHeigth + loc1; this.content.page24.y = 19 * this.pageHeigth + loc1; this.content.page25.y = 20 * this.pageHeigth + loc1; this.content.page26.y = 21 * this.pageHeigth + loc1; this.content.page27.y = 22 * this.pageHeigth + loc1; this.content.page1.x = 34; this.content.page2.x = 34; this.content.page3.x = 34; this.content.page4.x = 34; this.content.page5.x = 34; this.content.page6.x = 34; this.content.page7.x = 34; this.content.page8.x = 34; this.content.page9.x = 34; this.content.page10.x = 34; this.content.page11.x = 34; this.content.page12.x = 34; this.content.page13.x = 34; this.content.page14.x = 34; this.content.page15.x = 34; this.content.page16.x = 34; this.content.page17.x = 34; this.content.page18.x = 34; this.content.page19.x = 34; this.content.page20.x = 34; this.content.page21.x = 34; this.content.page22.x = 34; this.content.page23.x = 34; this.content.page1.walktrough = true; this.content.page2.walktrough = true; this.content.page3.walktrough = true; this.content.page4.walktrough = true; this.content.page5.walktrough = true; this.content.page6.walktrough = true; this.content.page7.walktrough = true; this.content.page8.walktrough = true; this.content.page9.walktrough = true; this.content.page10.walktrough = true; this.content.page11.walktrough = true; this.content.page12.walktrough = true; this.content.page13.walktrough = true; this.content.page14.walktrough = true; this.content.page15.walktrough = true; this.content.page16.walktrough = true; this.content.page17.walktrough = true; this.content.page18.walktrough = true; this.content.page19.walktrough = true; this.content.page20.walktrough = true; this.content.page21.walktrough = true; this.content.page22.walktrough = true; this.content.page23.walktrough = false; this.content.page5.getChildByName("inp1").varr.addEventListener(flash.events.Event.CHANGE, this.calculate5); this.content.page5.getChildByName("inp2").varr.addEventListener(flash.events.Event.CHANGE, this.calculate5); this.content.page5.getChildByName("inp3").varr.addEventListener(flash.events.Event.CHANGE, this.calculate5); this.content.page11.getChildByName("inp1").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_1); this.content.page11.getChildByName("inp2").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_1); this.content.page11.getChildByName("inp3").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_1); this.content.page11.getChildByName("inp4").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_1); this.content.page11.getChildByName("inp5").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_1); this.content.page11.getChildByName("inp6").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_1); this.content.page11.getChildByName("inp7").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_1); this.content.page11.getChildByName("inp8").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_1); this.content.page11.getChildByName("inp9").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_1); this.content.page11.getChildByName("inp10").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_1); this.content.page11.getChildByName("inp11").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_2); this.content.page11.getChildByName("inp12").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_2); this.content.page11.getChildByName("inp21").varr.addEventListener(flash.events.Event.CHANGE, this.calculate11_3); this.content.page12.getChildByName("inp1").varr.addEventListener(flash.events.Event.CHANGE, this.calculate12); this.content.page12.getChildByName("inp2").varr.addEventListener(flash.events.Event.CHANGE, this.calculate12); this.content.page13.getChildByName("inp11").varr.addEventListener(flash.events.Event.CHANGE, this.calculate13_1); this.content.page13.getChildByName("inp12").varr.addEventListener(flash.events.Event.CHANGE, this.calculate13_1); this.content.page13.getChildByName("inp13").varr.addEventListener(flash.events.Event.CHANGE, this.calculate13_1); this.content.page13.getChildByName("inp14").varr.addEventListener(flash.events.Event.CHANGE, this.calculate13_1); this.content.page13.getChildByName("inp21").varr.addEventListener(flash.events.Event.CHANGE, this.calculate13_2); this.content.page13.getChildByName("inp22").varr.addEventListener(flash.events.Event.CHANGE, this.calculate13_2); this.content.page13.getChildByName("inp23").varr.addEventListener(flash.events.Event.CHANGE, this.calculate13_2); this.content.page13.getChildByName("inp24").varr.addEventListener(flash.events.Event.CHANGE, this.calculate13_2); this.content.page13.getChildByName("inp25").varr.addEventListener(flash.events.Event.CHANGE, this.calculate13_2); this.content.page14.getChildByName("inp11").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_1); this.content.page14.getChildByName("inp12").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_1); this.content.page14.getChildByName("inp13").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_1); this.content.page14.getChildByName("inp14").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_1); this.content.page14.getChildByName("inp21").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_2); this.content.page14.getChildByName("inp22").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_2); this.content.page14.getChildByName("inp31").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_3); this.content.page14.getChildByName("inp32").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_3); this.content.page14.getChildByName("inp41").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_4); this.content.page14.getChildByName("inp42").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_4); this.content.page14.getChildByName("inp43").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_4); this.content.page14.getChildByName("inp44").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_4); this.content.page14.getChildByName("inp411").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_41); this.content.page14.getChildByName("inp421").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_41); this.content.page14.getChildByName("inp431").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_41); this.content.page14.getChildByName("inp441").varr.addEventListener(flash.events.Event.CHANGE, this.calculate14_41); this.content.page22.getChildByName("inp11").varr.addEventListener(flash.events.Event.CHANGE, this.calculate22_1); this.content.page22.getChildByName("inp12").varr.addEventListener(flash.events.Event.CHANGE, this.calculate22_1); this.content.page22.getChildByName("inp13").varr.addEventListener(flash.events.Event.CHANGE, this.calculate22_1); this.content.page22.getChildByName("inp14").varr.addEventListener(flash.events.Event.CHANGE, this.calculate22_1); this.content.page22.getChildByName("inp15").varr.addEventListener(flash.events.Event.CHANGE, this.calculate22_1); this.content.page22.getChildByName("inp21").varr.addEventListener(flash.events.Event.CHANGE, this.calculate22_2); this.content.page22.getChildByName("inp22").varr.addEventListener(flash.events.Event.CHANGE, this.calculate22_2); this.content.page23.getChildByName("inp11").varr.addEventListener(flash.events.Event.CHANGE, this.calculate23_1); this.content.page23.getChildByName("inp12").varr.addEventListener(flash.events.Event.CHANGE, this.calculate23_1); this.content.page23.getChildByName("inp13").varr.addEventListener(flash.events.Event.CHANGE, this.calculate23_1); this.content.page23.getChildByName("inp14").varr.addEventListener(flash.events.Event.CHANGE, this.calculate23_1); this.content.page23.getChildByName("inp15").varr.addEventListener(flash.events.Event.CHANGE, this.calculate23_1); this.content.page23.getChildByName("inp21").varr.addEventListener(flash.events.Event.CHANGE, this.calculate23_2); this.content.page23.getChildByName("inp22").varr.addEventListener(flash.events.Event.CHANGE, this.calculate23_2); this.content.page24.getChildByName("inp11").varr.addEventListener(flash.events.Event.CHANGE, this.calculate24_1); this.content.page24.getChildByName("inp21").varr.addEventListener(flash.events.Event.CHANGE, this.calculate24_2); this.content.page24.getChildByName("inp22").varr.addEventListener(flash.events.Event.CHANGE, this.calculate24_2); this.content.page24.getChildByName("inp31").varr.addEventListener(flash.events.Event.CHANGE, this.calculate24_3); this.content.page24.getChildByName("inp32").varr.addEventListener(flash.events.Event.CHANGE, this.calculate24_3); this.content.page24.getChildByName("inp41").varr.addEventListener(flash.events.Event.CHANGE, this.calculate24_4); this.content.page25.getChildByName("inp411").varr.addEventListener(flash.events.Event.CHANGE, this.calculate241_4); this.content.page25.getChildByName("inp421").varr.addEventListener(flash.events.Event.CHANGE, this.calculate241_4); this.content.page25.getChildByName("inp4111").varr.addEventListener(flash.events.Event.CHANGE, this.calculate2411_4); this.content.page25.getChildByName("inp4211").varr.addEventListener(flash.events.Event.CHANGE, this.calculate2411_4); this.content.page25.getChildByName("inp4112").varr.addEventListener(flash.events.Event.CHANGE, this.calculate2412_4); this.content.page25.getChildByName("inp4212").varr.addEventListener(flash.events.Event.CHANGE, this.calculate2412_4); this.content.page25.getChildByName("inp4312").varr.addEventListener(flash.events.Event.CHANGE, this.calculate2412_4); this.content.page24.getChildByName("inp42").varr.addEventListener(flash.events.Event.CHANGE, this.calculate24_4); this.content.page24.getChildByName("inp43").varr.addEventListener(flash.events.Event.CHANGE, this.calculate24_4); this.content.page24.getChildByName("inp1111").varr.addEventListener(flash.events.Event.CHANGE, this.calculate25_1); this.content.page24.getChildByName("inp1112").varr.addEventListener(flash.events.Event.CHANGE, this.calculate25_1); this.content.page25.getChildByName("inp987").varr.addEventListener(flash.events.Event.CHANGE, this.calculate251_1); this.content.page25.getChildByName("inp986").varr.addEventListener(flash.events.Event.CHANGE, this.calculate251_1); this.content.page25.getChildByName("inp985").varr.addEventListener(flash.events.Event.CHANGE, this.calculate251_1); this.content.page25.getChildByName("inp984").varr.addEventListener(flash.events.Event.CHANGE, this.calculate251_1); this.content.page25.getChildByName("inp983").varr.addEventListener(flash.events.Event.CHANGE, this.calculate251_1); this.content.page25.getChildByName("inp982").varr.addEventListener(flash.events.Event.CHANGE, this.calculate251_1); this.content.page25.getChildByName("inp981").varr.addEventListener(flash.events.Event.CHANGE, this.calculate251_1); this.content.page26.getChildByName("inp11").varr.addEventListener(flash.events.Event.CHANGE, this.calculate26_1); this.content.page26.getChildByName("inp12").varr.addEventListener(flash.events.Event.CHANGE, this.calculate26_1); this.content.page26.getChildByName("inp21").varr.addEventListener(flash.events.Event.CHANGE, this.calculate26_2); this.content.page26.getChildByName("inp22").varr.addEventListener(flash.events.Event.CHANGE, this.calculate26_2); this.content.page26.getChildByName("inp23_").varr.addEventListener(flash.events.Event.CHANGE, this.calculate261_2); this.content.page26.getChildByName("inp24_").varr.addEventListener(flash.events.Event.CHANGE, this.calculate261_2); this.content.page26.getChildByName("inp26_").varr.addEventListener(flash.events.Event.CHANGE, this.calculate261_2); this.content.page26.getChildByName("inp27_").varr.addEventListener(flash.events.Event.CHANGE, this.calculate261_2); this.content.page26.getChildByName("inp28_").varr.addEventListener(flash.events.Event.CHANGE, this.calculate261_2); this.content.page26.getChildByName("inp31").varr.addEventListener(flash.events.Event.CHANGE, this.calculate26_3); this.content.page26.getChildByName("inp32").varr.addEventListener(flash.events.Event.CHANGE, this.calculate26_3); this.content.page26.getChildByName("inp33").varr.addEventListener(flash.events.Event.CHANGE, this.calculate26_3); this.content.page27.getChildByName("b_save").addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.saveOt4et); this.arr.dwn.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.contentDown); this.arr.dwn.addEventListener(flash.events.MouseEvent.MOUSE_OVER, this.contentDownIsTool); this.arr.upp.addEventListener(flash.events.MouseEvent.MOUSE_DOWN, this.contentUp); var loc2:*; loc2 = new flash.display.Loader(); loc2.load(new flash.net.URLRequest("konFor.swf")); loc2.name = "konFor"; this.content.page4.addChild(loc2); loc2.x = -20; var loc3:*; loc3 = new flash.display.Loader(); loc3.load(new flash.net.URLRequest("lab_z1_p4_win.swf")); this.content.page4.addChild(loc3); loc3.x = 275; loc3.y = 115; this.calculate4(); var loc4:*; (loc4 = new flash.display.Loader()).load(new flash.net.URLRequest("armatura_press.swf")); this.content.page5.addChild(loc4); loc4.y = 100; var loc5:*; (loc5 = new flash.display.Loader()).load(new flash.net.URLRequest("konFor2.swf")); loc5.name = "konFor"; this.content.page10.addChild(loc5); loc5.x = -20; var loc6:*; (loc6 = new flash.display.Loader()).load(new flash.net.URLRequest("press.swf")); this.content.page20.addChild(loc6); loc6.mask = this.content.page20.mask2; loc6.x = 150; loc6.y = 150; this.content.page20.mask2.x = 150; this.content.page20.mask2.y = 150; return; } function calculate1(arg1:flash.events.Event):void { trace(this); return; } function calculate4():void { this.content.page27.getChildByName("var11").varr.text = 41; this.content.page27.getChildByName("var12").varr.text = 31; this.content.page27.getChildByName("var13").varr.text = 32; return; } function calculate5(arg1:flash.events.Event):void { trace(arg1.target.parent.name); var loc1:Number=content.page5.getChildByName("inp1").varr.text; var loc2:Number=content.page5.getChildByName("inp2").varr.text; var loc3:Number=content.page5.getChildByName("inp3").varr.text; var loc4:Number = (loc1+loc2+loc3)/(3*1.15); loc4=round(loc4,2); content.page5.getChildByName("inp4").varr.text=loc4; this.content.page27.getChildByName("var21").varr.text=loc1; this.content.page27.getChildByName("var22").varr.text=loc2; this.content.page27.getChildByName("var23").varr.text=loc3; this.content.page13.getChildByName("con1").varr.text=loc3; if (loc4 == 358.33) { this.content.page5.walktrough = true; } this.content.page13.getChildByName("con1").varr.text = loc4; this.content.page27.getChildByName("inp21").varr.text = loc1; this.content.page27.getChildByName("inp22").varr.text = loc2; this.content.page27.getChildByName("inp23").varr.text = loc3; return; } function calculate11_1(e:Event):void { var loc1:Number=content.page11.getChildByName("inp1").varr.text; var loc2:Number=content.page11.getChildByName("inp2").varr.text; var loc3:Number=content.page11.getChildByName("inp3").varr.text; var loc4:Number=content.page11.getChildByName("inp4").varr.text; var loc5:Number=content.page11.getChildByName("inp5").varr.text; var loc6:Number=content.page11.getChildByName("inp6").varr.text; var loc7:Number=content.page11.getChildByName("inp7").varr.text; var loc8:Number=content.page11.getChildByName("inp8").varr.text; var loc9:Number=content.page11.getChildByName("inp9").varr.text; var loc10:Number=content.page11.getChildByName("inp10").varr.text; var loc11:Number =(loc1 * loc2*loc2*loc2/12) + (loc3)*(loc4)*((loc5 - ((loc6)/2))*(loc5 - ((loc6)/2)))+ (loc7)*(loc8)*((loc9-loc10)*(loc9-loc10)); loc11=round(loc11,2); content.page11.getChildByName("res1").varr.text=loc11; content.page24.getChildByName("res111111").varr.text=loc11; } function calculate11_2(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page11.getChildByName("inp11").varr.text; var loc2:*; loc2 = this.content.page11.getChildByName("inp12").varr.text; var loc3:*; loc3 = loc1 / loc2; loc3 = round(loc3, 2); this.content.page11.getChildByName("res2").varr.text = loc3; return; } function calculate11_3(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page11.getChildByName("inp21").varr.text; var loc2:*; loc2 = 1.3 * loc1; loc2 = round(loc2, 2); this.var_Wpl = loc2; this.content.page11.getChildByName("res3").varr.text = loc2; this.content.page12.getChildByName("res11").varr.text = loc2; var loc3:*; loc3 = round(loc2 / 1000, 2); this.content.page12.getChildByName("res12").varr.text = loc3; this.content.page12.getChildByName("res21").varr.text = 2.17; this.content.page12.getChildByName("res22").varr.text = 21; return; } function calculate12(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page12.getChildByName("inp1").varr.text; var loc2:*; loc2 = this.content.page12.getChildByName("inp2").varr.text; var loc3:*; loc3 = loc1 * loc2; loc3 = round(loc3, 2); this.content.page12.getChildByName("res31").varr.text = loc3; var loc4:*; loc4 = round(loc3 / 100, 2); this.content.page12.getChildByName("res32").varr.text = loc4; this.content.page14.getChildByName("con4").varr.text = loc4; this.content.page27.getChildByName("var31").varr.text = loc4; this.content.page24.getChildByName("con44").varr.text = loc4; return; } function calculate13_1(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page13; var loc2:*; loc2 = loc1.getChildByName("inp11").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp12").varr.text; var loc4:*; loc4 = loc1.getChildByName("inp13").varr.text; var loc5:*; loc5 = loc1.getChildByName("inp14").varr.text; var loc6:*; loc6 = loc2 * loc3 / (loc4 * loc5); loc6 = round(loc6, 2); loc1.getChildByName("res1").varr.text = loc6; return; } function calculate13_2(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page13; var loc2:*; loc2 = loc1.getChildByName("inp21").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp22").varr.text; var loc4:*; loc4 = loc1.getChildByName("inp23").varr.text; var loc5:*; loc5 = loc1.getChildByName("inp24").varr.text; var loc6:*; loc6 = loc1.getChildByName("inp25").varr.text; var loc7:*; loc7 = loc2 * loc3 * loc4 * (loc5 - loc6 / 2); loc7 = round(loc7, 2); loc1.getChildByName("res2").varr.text = loc7; this.content.page27.getChildByName("var61").varr.text = loc7; this.content.page14.getChildByName("con5").varr.text = loc7; this.content.page24.getChildByName("con55").varr.text = loc7; return; } function calculate14_1(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page14; var loc2:*; loc2 = loc1.getChildByName("inp11").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp12").varr.text; var loc4:*; loc4 = loc1.getChildByName("inp13").varr.text; var loc5:*; loc5 = loc1.getChildByName("inp14").varr.text; var loc6:*; loc6 = loc2 * loc3 * loc4 * loc5; loc6 = round(loc6, 2); loc1.getChildByName("res1").varr.text = loc6; return; } function calculate14_2(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page14; var loc2:*; loc2 = loc1.getChildByName("inp21").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp22").varr.text; var loc4:*; loc4 = loc2 / 2 * loc3 / 4; loc4 = round(loc4, 2); loc1.getChildByName("res2").varr.text = loc4; return; } function calculate14_3(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page14; var loc2:*; loc2 = loc1.getChildByName("inp31").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp32").varr.text; var loc4:*; loc4 = loc2 / 2 * loc3 / 3; loc4 = round(loc4, 2); loc1.getChildByName("res3").varr.text = loc4; return; } function calculate14_4(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page14; var loc2:*; loc2 = loc1.getChildByName("inp41").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp42").varr.text; var loc4:*; loc4 = loc1.getChildByName("inp43").varr.text; var loc5:*; loc5 = loc1.getChildByName("inp44").varr.text; var loc6:*; loc6 = 2 * 3 / loc2 * (loc3 - loc4 - loc5); loc6 = round(loc6, 2); loc1.getChildByName("res4").varr.text = loc6; return; } function calculate14_41(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page14; var loc2:*; loc2 = loc1.getChildByName("inp411").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp421").varr.text; var loc4:*; loc4 = loc1.getChildByName("inp431").varr.text; var loc5:*; loc5 = loc1.getChildByName("inp441").varr.text; var loc6:*; loc6 = 2 * 3 / loc2 * (loc3 - loc4 - loc5); loc6 = round(loc6, 2); loc1.getChildByName("res55").varr.text = loc6; return; } function calculate22_1(e:Event):void { var _path:* = content.page22; var va1:Number=_path.getChildByName("inp11").varr.text; var va2:Number=_path.getChildByName("inp12").varr.text; var va3:Number=_path.getChildByName("inp13").varr.text; var va4:Number=_path.getChildByName("inp14").varr.text; var va5:Number=_path.getChildByName("inp15").varr.text; var vaRes:Number = (va1+0.5*va2)*va3/3+va4*va5/8; vaRes=round(vaRes,2); _path.getChildByName("res1").varr.text=vaRes; content.page27.getChildByName("var41").varr.text=vaRes; } function calculate22_2(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page22; var loc2:*; loc2 = loc1.getChildByName("inp21").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp22").varr.text; var loc4:*; loc4 = loc1.getChildByName("inp23").varr.text; var loc5:*; loc5 = (loc2 - loc3) / loc4*100; loc5 = round(loc5, 2); loc1.getChildByName("res2").varr.text = loc5; this.content.page27.getChildByName("var51").varr.text = loc5; return; } function calculate23_1(e:Event):void { var _path:* = content.page23; var va1:Number=_path.getChildByName("inp11").varr.text; var va2:Number=_path.getChildByName("inp12").varr.text; var va3:Number=_path.getChildByName("inp13").varr.text; var va4:Number=_path.getChildByName("inp14").varr.text; var va5:Number=_path.getChildByName("inp15").varr.text; var vaRes:Number = (va1+0.5*va2)*va3/3+va4*va5/8; vaRes=round(vaRes,2); _path.getChildByName("res1").varr.text=vaRes; content.page27.getChildByName("var71").varr.text=vaRes; } function calculate23_2(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page23; var loc2:*; loc2 = loc1.getChildByName("inp21").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp22").varr.text; var loc4:*; loc4 = loc1.getChildByName("inp23").varr.text; var loc5:*; loc5 = (loc2 - loc3) / loc4*100; loc5 = round(loc5, 3); loc1.getChildByName("res2").varr.text = loc5; this.content.page27.getChildByName("var81").varr.text = loc5; return; } function calculate24_1(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page24; var loc2:*; loc2 = loc1.getChildByName("inp11").varr.text; var loc3:*; loc3 = 0.85 * loc2; loc3 = round(loc3, 2); loc1.getChildByName("res1").varr.text = loc3; return; } function calculate24_2(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page24; var loc2:*; loc2 = loc1.getChildByName("inp21").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp22").varr.text; var loc4:*; loc4 = loc2 * loc3; loc4 = round(loc4, 2); loc1.getChildByName("res2").varr.text = loc4; return; } function calculate24_3(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page24; var loc2:*; loc2 = loc1.getChildByName("inp31").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp32").varr.text; var loc4:*; loc4 = loc2 / loc3; loc4 = round(loc4, 9); loc1.getChildByName("res3").varr.text = loc4; return; } function calculate24_4(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page24; var loc2:*; loc2 = loc1.getChildByName("inp41").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp42").varr.text; var loc4:*; loc4 = loc1.getChildByName("inp43").varr.text; var loc5:*; loc5 = loc2 * loc3 *loc3 * loc4; loc5 = round(loc5, 2); loc1.getChildByName("res4").varr.text = loc5; this.content.page27.getChildByName("var91").varr.text = loc5; return; } function calculate241_4(arg1:flash.events.Event):void {var loc1:*;loc1 = this.content.page25; var loc2:*; loc2 = loc1.getChildByName("inp411").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp421").varr.text; var loc4:*; loc4 = loc2/loc3; loc4 = round(loc4, 2); loc1.getChildByName("res5").varr.text = loc4; return;} function calculate2411_4(arg1:flash.events.Event):void {var loc1:*;loc1 = this.content.page25; var loc2:*; loc2 = loc1.getChildByName("inp4111").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp4211").varr.text; var loc4:*; loc4 = loc2/loc3; loc4 = round(loc4, 2); loc1.getChildByName("res66").varr.text = loc4; return;} function calculate2412_4(arg1:flash.events.Event):void {var loc1:*;loc1 = this.content.page25; var loc2:*; loc2 = loc1.getChildByName("inp4112").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp4212").varr.text; var loc5:*; loc5 = loc1.getChildByName("inp4312").varr.text; var loc4:*; loc4 = loc2/(loc3*loc5); loc4 = round(loc4, 4); loc1.getChildByName("res7").varr.text = loc4; return;} function calculate25_1(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page24; var loc2:*; loc2 = loc1.getChildByName("inp1111").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp1112").varr.text; var loc4:*; loc4 = 1 - 0.8 * loc2 / loc3; loc4 = round(loc4, 2); loc1.getChildByName("res111").varr.text = loc4; return;} function calculate251_1(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page25; var loc2:*; loc2 = loc1.getChildByName("inp987").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp986").varr.text; var loc4:*; loc4 = loc1.getChildByName("inp985").varr.text; var loc5:*; loc5 = loc1.getChildByName("inp984").varr.text; var loc6:*; loc6 = loc1.getChildByName("inp983").varr.text; var loc7:*; loc7 = loc1.getChildByName("inp982").varr.text; var loc8:*; loc8 = loc1.getChildByName("inp981").varr.text; var loc9:*; loc9 = loc2*(( Math.sqrt(((loc3)*(loc4))*((loc3)*(loc4))+2*(loc5)*(loc6)))-(loc7)*(loc8)); loc9 = round(loc9, 2); loc1.getChildByName("res2").varr.text = loc9; return;} function calculate26_1(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page26; var loc2:*; loc2 = loc1.getChildByName("inp11").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp12").varr.text; var loc4:*; loc4 = loc2 - loc3 / 3; loc4 = round(loc4, 2); loc1.getChildByName("res1").varr.text = loc4; return; } function calculate26_2(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page26; var loc2:*; loc2 = loc1.getChildByName("inp21").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp22").varr.text; var loc14:*; loc14 = loc2 / loc3; loc14 = round(loc14, 7); loc1.getChildByName("res2").varr.text = loc14; return; } function calculate261_2(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page26; var loc4:*; loc4 = loc1.getChildByName("inp23_").varr.text; var loc5:*; loc5 = loc1.getChildByName("inp24_").varr.text; var loc6:*; loc6 = loc1.getChildByName("inp26_").varr.text; var loc8:*; loc8 = loc1.getChildByName("inp27_").varr.text; var loc9:*; loc9 = loc1.getChildByName("inp28_").varr.text; var loc22:*; loc22 = loc4 * loc5 * loc6 * (loc8 - loc9); loc22 = round(loc22, 2); loc1.getChildByName("res3_").varr.text = loc22; return; } function calculate26_3(arg1:flash.events.Event):void { var loc1:*; loc1 = this.content.page26; var loc2:*; loc2 = loc1.getChildByName("inp31").varr.text; var loc3:*; loc3 = loc1.getChildByName("inp32").varr.text; var loc4:*; loc4 = loc1.getChildByName("inp33").varr.text; var loc5:*; loc5 = loc2 * loc3 * loc3 * loc4; loc5 = round(loc5, 2); loc1.getChildByName("res4").varr.text = loc5; this.content.page27.getChildByName("var101").varr.text = loc5; return; } private function contentDownIsTool(arg1:flash.events.MouseEvent):void { } private function contentDown(arg1:flash.events.MouseEvent):* { if (this.currentPage == this.totalPages) { return; } var loc1:*; loc1 = this.content.getChildByName("page" + this.currentPage); if (!loc1.walktrough) { return; } this.nextToGo = this.nextToGo - this.pageHeigth; com.greensock.TweenMax.to(this.content, 0.5, {"y":this.nextToGo, "ease":com.greensock.easing.Expo.easeOut}); var loc2:*; var loc3:*; loc3 = ((loc2 = this).currentPage + 1); loc2.currentPage = loc3; trace(this.currentPage); return; } private function contentUp(arg1:flash.events.MouseEvent):void { if (this.currentPage == 1) { return; } var loc1:*; loc1 = this.content.getChildByName("page" + this.currentPage); if (loc1.walktrough) { }; this.nextToGo = this.nextToGo + this.pageHeigth; com.greensock.TweenMax.to(this.content, 0.5, {"y":this.nextToGo, "ease":com.greensock.easing.Expo.easeOut}); var loc2:*; var loc3:*; loc3 = ((loc2 = this).currentPage - 1); loc2.currentPage = loc3; trace(this.currentPage); return; } function saveOt4et(arg1:flash.events.MouseEvent):* { var loc1:*; loc1 = "Студент " + this.content.page27.fio1.text + " Факультета " + this.content.page27.fak.text + " Группы " + this.content.page27.nom.text + " ; \n Преподаватель: " + this.content.page27.fio2.text + " Дата: " + this.content.page27.dat.text; loc1 = loc1 + "\n 1. Кубиковая прочность бетона: R1 = " + this.content.page27.var11.varr.text + " Н/мм2; R2 = " + this.content.page27.var12.varr.text + " Н/мм2; R3 = " + this.content.page27.var13.varr.text + " Н/мм2"; loc1 = loc1 + "\n 2. Сопротивление растяжению арматуры: σy1 = " + this.content.page27.var21.varr.text + " Н/мм2; σy2 = " + this.content.page27.var22.varr.text + " Н/мм2; σy3 = " + this.content.page27.var23.varr.text + " Н/мм2"; loc1 = loc1 + "\n 3. Теоретический момент трещинообразования: Mcrc,cal = " + this.content.page27.var31.varr.text + " кгс∙см"; loc1 = loc1 + "\n 4. Опытный момент трещинообразования: Mcrc,exp = " + this.content.page27.var41.varr.text + " кгс∙см"; loc1 = loc1 + "\n 5. Величина отклонения в %: (Mcrc,cal - Mcrc,exp)/Mcrc,cal ∙ 100% = " + this.content.page27.var51.varr.text + " %"; loc1 = loc1 + "\n 6. Теоретический разрушающий момент: Mul,cal = " + this.content.page27.var61.varr.text + " кгс∙см"; loc1 = loc1 + "\n 7. Опытный разрушающий момент: Mul,exp = " + this.content.page27.var71.varr.text + " кгс∙см"; loc1 = loc1 + "\n 8. Величина отклонения в %: (Mul,cal - Mul,exp)/Mul,cal ∙ 100% = " + this.content.page27.var81.varr.text + " %"; loc1 = loc1 + "\n 9. Прогиб до образования трещин: f = " + this.content.page27.var91.varr.text + " мм"; loc1 = loc1 + "\n 10. Прогиб при разрушении: f = " + this.content.page27.var101.varr.text + " мм"; var loc2:*; loc2 = new flash.utils.ByteArray(); loc2.writeUTFBytes(loc1); var loc3:*; (loc3 = new flash.net.FileReference()).save(loc2, "Отчёт ЖБК 1.txt"); return; } function frame1():* { return; } public static function round(arg1:Number, arg2:int=0):Number { var loc1:*; loc1 = arg1.toFixed(arg2); return loc1; } public var content:flash.display.MovieClip; public var arr:flash.display.MovieClip; private var pageHeigth:Number=760; private var nextToGo:Number; private var contentx:Number; private var currentPage:Number=1; private var totalPages:Number=27; private var _reusableTip:*; private var var_Wpl:Number; } }