Advertisement
Guest User

trade_dialog.swf

a guest
May 23rd, 2012
549
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 315.73 KB | None | 0 0
  1. package pr3.dialog {
  2. import gm.focuselement.*;
  3.  
  4. public class Dialog extends FocusElement {
  5.  
  6. }
  7. }//package pr3.dialog
  8. package pr3.dialog {
  9. import gm.focuselement.*;
  10.  
  11. public class DialogPage extends FocusElement {
  12.  
  13. public var m_PageClass:String = "<insert-classname>";
  14. public var m_PageButtonText:String = "ID_NONE";
  15.  
  16. public function get pageClass():String{
  17. return (m_PageClass);
  18. }
  19. public function set pageClass(_arg1:String):void{
  20. m_PageClass = _arg1;
  21. }
  22. public function get pageButtonText():String{
  23. return (m_PageButtonText);
  24. }
  25. public function set pageButtonText(_arg1:String):void{
  26. m_PageButtonText = _arg1;
  27. }
  28.  
  29. }
  30. }//package pr3.dialog
  31. package pr3.helpers.simplehorizontalcenterlayout {
  32. import flash.display.*;
  33. import flash.events.*;
  34. import pr3.helpers.*;
  35.  
  36. public class SimpleHorizontalCenterLayout extends EventDispatcher {
  37.  
  38. private var m_Elements:Array;
  39. private var m_Center:Number = 0;
  40.  
  41. public function SimpleHorizontalCenterLayout(){
  42. m_Elements = new Array();
  43. super();
  44. }
  45. public function addElement(_arg1:DisplayObject){
  46. var _local2:Element;
  47. var _local3:*;
  48. if (null != _arg1){
  49. m_Center = (m_Center + (_arg1.width / 2));
  50. _local2 = (((m_Elements.length > 0)) ? (m_Elements[(m_Elements.length - 1)] as Element) : null);
  51. if (_local2 == null){
  52. m_Center = (m_Center + _arg1.x);
  53. m_Elements.push(new Element(_arg1, 0));
  54. } else {
  55. _local3 = (_arg1.x - (_local2.m_Element.x + _local2.m_Element.width));
  56. m_Center = (m_Center + (_local3 / 2));
  57. m_Elements.push(new Element(_arg1, _local3));
  58. };
  59. };
  60. }
  61. public function doLayout(){
  62. var _local4:Element;
  63. var _local1:Number = 0;
  64. var _local2:uint;
  65. while (m_Elements.length > _local2) {
  66. _local4 = (m_Elements[_local2] as Element);
  67. _local1 = (_local1 + (_local4.m_Element.width + _local4.m_Offset));
  68. _local2++;
  69. };
  70. var _local3:Number = (m_Center - (_local1 / 2));
  71. _local2 = 0;
  72. while (m_Elements.length > _local2) {
  73. _local4 = (m_Elements[_local2] as Element);
  74. _local4.m_Element.x = (_local3 + _local4.m_Offset);
  75. _local3 = (_local3 + (_local4.m_Element.width + _local4.m_Offset));
  76. _local2++;
  77. };
  78. dispatchEvent(new LayoutEvent(LayoutEvent.LAYOUT_DONE));
  79. }
  80. public function changeElementsY(_arg1:Number){
  81. var _local2:Element;
  82. for each (_local2 in m_Elements) {
  83. _local2.m_Element.y = (_local2.m_Element.y + Number(int(_arg1)));
  84. };
  85. }
  86. public function clearElements(){
  87. m_Elements = [];
  88. }
  89.  
  90. }
  91. }//package pr3.helpers.simplehorizontalcenterlayout
  92. package pr3.helpers.simplehorizontalcenterlayout {
  93. import flash.display.*;
  94.  
  95. final class Element {
  96.  
  97. public var m_Element:DisplayObject;
  98. public var m_Offset:Number;
  99.  
  100. public function Element(_arg1:DisplayObject, _arg2:Number){
  101. m_Element = _arg1;
  102. m_Offset = _arg2;
  103. }
  104. }
  105. }//package pr3.helpers.simplehorizontalcenterlayout
  106. package pr3.helpers {
  107. import flash.events.*;
  108.  
  109. public class LayoutEvent extends Event {
  110.  
  111. public static const LAYOUT_DONE:String = "layoutevent_done";
  112.  
  113. public function LayoutEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
  114. super(_arg1, _arg2, _arg3);
  115. }
  116. override public function clone():Event{
  117. return (new LayoutEvent(type, bubbles, cancelable));
  118. }
  119. override public function toString():String{
  120. return (formatToString("LayoutEvent", "type", "bubbles", "cancelable", "eventPhase"));
  121. }
  122.  
  123. }
  124. }//package pr3.helpers
  125. package {
  126. import flash.display.*;
  127.  
  128. public dynamic class icon_trade_town_convoy extends BitmapData {
  129.  
  130. public function icon_trade_town_convoy(_arg1:int=106, _arg2:int=17){
  131. super(_arg1, _arg2);
  132. }
  133. }
  134. }//package
  135. package components.textbutton {
  136. import gm.textbutton.*;
  137.  
  138. public class Visual_TextButton_Tab extends TextButton {
  139.  
  140. }
  141. }//package components.textbutton
  142. package components.animatedelement {
  143. import gm.animatedelement.*;
  144.  
  145. public class Visual_AniElement_Reputationmarker extends AnimatedElement {
  146.  
  147. }
  148. }//package components.animatedelement
  149. package components.scrollbar {
  150. import gm.scrollbar.*;
  151.  
  152. public class Visual_Scrollbar_List extends Scrollbar {
  153.  
  154. }
  155. }//package components.scrollbar
  156. package components.textfield {
  157. import gm.textfield.*;
  158.  
  159. public class Visual_Textfeld_16_Ml extends Textfield {
  160.  
  161. }
  162. }//package components.textfield
  163. package components.textfield {
  164. import gm.textfield.*;
  165.  
  166. public class Visual_Textfeld_16 extends Textfield {
  167.  
  168. }
  169. }//package components.textfield
  170. package components.button {
  171. import gm.button.*;
  172.  
  173. public class Visual_IconButton_soldier1 extends Button {
  174.  
  175. }
  176. }//package components.button
  177. package components.button {
  178. import gm.button.*;
  179.  
  180. public class Visual_IconButton_Town_Storage extends Button {
  181.  
  182. }
  183. }//package components.button
  184. package components.button {
  185. import gm.button.*;
  186.  
  187. public class Visual_IconButton_TownAttack extends Button {
  188.  
  189. }
  190. }//package components.button
  191. package components.button {
  192. import gm.button.*;
  193.  
  194. public class Visual_IconButton_habitants extends Button {
  195.  
  196. }
  197. }//package components.button
  198. package components.button {
  199. import gm.button.*;
  200.  
  201. public class Visual_IconButton_Town extends Button {
  202.  
  203. }
  204. }//package components.button
  205. package components.button {
  206. import gm.button.*;
  207.  
  208. public class Visual_IconButton_Goods extends Button {
  209.  
  210. }
  211. }//package components.button
  212. package components.button {
  213. import gm.button.*;
  214.  
  215. public class Visual_IconButton_NationFlag_Alpha extends Button {
  216.  
  217. }
  218. }//package components.button
  219. package components.button {
  220. import gm.button.*;
  221.  
  222. public class Visual_IconButton_Barrels_Consumption extends Button {
  223.  
  224. }
  225. }//package components.button
  226. package components.button {
  227. import gm.button.*;
  228.  
  229. public class Visual_IconButton_Workshop extends Button {
  230.  
  231. }
  232. }//package components.button
  233. package components.button {
  234. import gm.button.*;
  235.  
  236. public class Visual_IconButton_ThumbsUp extends Button {
  237.  
  238. }
  239. }//package components.button
  240. package components.button {
  241. import gm.button.*;
  242.  
  243. public class Visual_Button_Infotext extends Button {
  244.  
  245. }
  246. }//package components.button
  247. package components.button {
  248. import gm.button.*;
  249.  
  250. public class Visual_IconButton_occupancy extends Button {
  251.  
  252. }
  253. }//package components.button
  254. package components.button {
  255. import gm.button.*;
  256.  
  257. public class Visual_IconButton_Barrels_Production extends Button {
  258.  
  259. }
  260. }//package components.button
  261. package components.button {
  262. import gm.button.*;
  263.  
  264. public class Visual_IconButton_Ship_Storage extends Button {
  265.  
  266. }
  267. }//package components.button
  268. package components.button {
  269. import gm.button.*;
  270.  
  271. public class Visual_ListButton_Trade extends Button {
  272.  
  273. }
  274. }//package components.button
  275. package components.button {
  276. import gm.button.*;
  277.  
  278. public class Visual_IconButton_arrowUpDown extends Button {
  279.  
  280. }
  281. }//package components.button
  282. package components.button {
  283. import gm.button.*;
  284.  
  285. public class Visual_IconButton_buildings01 extends Button {
  286.  
  287. }
  288. }//package components.button
  289. package components.button {
  290. import gm.button.*;
  291.  
  292. public class Visual_IconButton_SettlerState extends Button {
  293.  
  294. }
  295. }//package components.button
  296. package components.button {
  297. import gm.button.*;
  298.  
  299. public class Visual_IconButton_Office_Storage extends Button {
  300.  
  301. }
  302. }//package components.button
  303. package components.button {
  304. import gm.button.*;
  305.  
  306. public class Visual_IconButton_Ship_Regular extends Button {
  307.  
  308. }
  309. }//package components.button
  310. package components.button {
  311. import gm.button.*;
  312.  
  313. public class Visual_ListButton_Equipment extends Button {
  314.  
  315. }
  316. }//package components.button
  317. package components.button {
  318. import gm.button.*;
  319.  
  320. public class Visual_IconButton_settlers extends Button {
  321.  
  322. }
  323. }//package components.button
  324. package components.button {
  325. import gm.button.*;
  326.  
  327. public class Visual_IconButton_Towninfo extends Button {
  328.  
  329. }
  330. }//package components.button
  331. package components.button {
  332. import gm.button.*;
  333.  
  334. public class Visual_ListButton_TownGoods extends Button {
  335.  
  336. }
  337. }//package components.button
  338. package components.button {
  339. import gm.button.*;
  340.  
  341. public class Visual_IconButton_goods_price extends Button {
  342.  
  343. }
  344. }//package components.button
  345. package components.button {
  346. import gm.button.*;
  347.  
  348. public class Visual_IconButton_Goods_Price_Average extends Button {
  349.  
  350. }
  351. }//package components.button
  352. package components.focuselement {
  353. import flash.display.*;
  354. import flash.events.*;
  355. import gm.element.*;
  356. import flash.text.*;
  357. import components.textbutton.*;
  358. import flash.utils.*;
  359. import flash.external.*;
  360.  
  361. public class Visual_Tab_Buttons_Pad extends Element {
  362.  
  363. public var bt_tab_3:Visual_TextButton_Tab;
  364. public var bt_tab_0:Visual_TextButton_Tab;
  365. public var bt_tab_1:Visual_TextButton_Tab;
  366. public var mc_mask:MovieClip;
  367. public var bt_tab_4:Visual_TextButton_Tab;
  368. public var bt_tab_5:Visual_TextButton_Tab;
  369. public var bt_tab_2:Visual_TextButton_Tab;
  370.  
  371. public function Visual_Tab_Buttons_Pad(){
  372. addFrameScript(0, frame1);
  373. __setProp_bt_tab_0_Visual_Tab_Buttons_Pad_bt_tab_0_0();
  374. __setProp_bt_tab_1_Visual_Tab_Buttons_Pad_bt_tab_1_0();
  375. __setProp_bt_tab_2_Visual_Tab_Buttons_Pad_bt_tab_2_0();
  376. __setProp_bt_tab_3_Visual_Tab_Buttons_Pad_bt_tab_3_0();
  377. __setProp_bt_tab_4_Visual_Tab_Buttons_Pad_bt_tab_4_0();
  378. __setProp_bt_tab_5_Visual_Tab_Buttons_Pad_bt_tab_5_0();
  379. }
  380. function __setProp_bt_tab_0_Visual_Tab_Buttons_Pad_bt_tab_0_0(){
  381. try {
  382. bt_tab_0["componentInspectorSetting"] = true;
  383. } catch(e:Error) {
  384. };
  385. bt_tab_0.autoSizeX = "none";
  386. bt_tab_0.bold = false;
  387. bt_tab_0.buttonType = "check";
  388. bt_tab_0.colorRes = "ID_GUI_DEF_COLOR_TAB";
  389. bt_tab_0.enabled = true;
  390. bt_tab_0.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  391. bt_tab_0.fontSize = 0;
  392. bt_tab_0.htmlText = true;
  393. bt_tab_0.instaPress = false;
  394. bt_tab_0.isComponent = true;
  395. bt_tab_0.italic = false;
  396. bt_tab_0.mouseWheel = false;
  397. bt_tab_0.navDown = "";
  398. bt_tab_0.navLeft = "";
  399. bt_tab_0.navRight = "";
  400. bt_tab_0.navTabBackward = "";
  401. bt_tab_0.navTabForward = "";
  402. bt_tab_0.navUp = "";
  403. bt_tab_0.pressAction = "PRESS";
  404. bt_tab_0.repeatDelay = 0;
  405. bt_tab_0.repeatRate = 0;
  406. bt_tab_0.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  407. bt_tab_0.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  408. bt_tab_0.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  409. bt_tab_0.textAlignH = "center";
  410. bt_tab_0.textAlignV = 0;
  411. bt_tab_0.textRes = "";
  412. bt_tab_0.tooltipRes = "";
  413. bt_tab_0.underline = false;
  414. bt_tab_0.unfocusedInput = false;
  415. bt_tab_0.visible = true;
  416. try {
  417. bt_tab_0["componentInspectorSetting"] = false;
  418. } catch(e:Error) {
  419. };
  420. }
  421. function __setProp_bt_tab_1_Visual_Tab_Buttons_Pad_bt_tab_1_0(){
  422. try {
  423. bt_tab_1["componentInspectorSetting"] = true;
  424. } catch(e:Error) {
  425. };
  426. bt_tab_1.autoSizeX = "none";
  427. bt_tab_1.bold = false;
  428. bt_tab_1.buttonType = "check";
  429. bt_tab_1.colorRes = "ID_GUI_DEF_COLOR_TAB";
  430. bt_tab_1.enabled = true;
  431. bt_tab_1.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  432. bt_tab_1.fontSize = 0;
  433. bt_tab_1.htmlText = true;
  434. bt_tab_1.instaPress = false;
  435. bt_tab_1.isComponent = true;
  436. bt_tab_1.italic = false;
  437. bt_tab_1.mouseWheel = false;
  438. bt_tab_1.navDown = "";
  439. bt_tab_1.navLeft = "";
  440. bt_tab_1.navRight = "";
  441. bt_tab_1.navTabBackward = "";
  442. bt_tab_1.navTabForward = "";
  443. bt_tab_1.navUp = "";
  444. bt_tab_1.pressAction = "PRESS";
  445. bt_tab_1.repeatDelay = 0;
  446. bt_tab_1.repeatRate = 0;
  447. bt_tab_1.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  448. bt_tab_1.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  449. bt_tab_1.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  450. bt_tab_1.textAlignH = "center";
  451. bt_tab_1.textAlignV = 0;
  452. bt_tab_1.textRes = "";
  453. bt_tab_1.tooltipRes = "";
  454. bt_tab_1.underline = false;
  455. bt_tab_1.unfocusedInput = false;
  456. bt_tab_1.visible = true;
  457. try {
  458. bt_tab_1["componentInspectorSetting"] = false;
  459. } catch(e:Error) {
  460. };
  461. }
  462. function __setProp_bt_tab_2_Visual_Tab_Buttons_Pad_bt_tab_2_0(){
  463. try {
  464. bt_tab_2["componentInspectorSetting"] = true;
  465. } catch(e:Error) {
  466. };
  467. bt_tab_2.autoSizeX = "none";
  468. bt_tab_2.bold = false;
  469. bt_tab_2.buttonType = "check";
  470. bt_tab_2.colorRes = "ID_GUI_DEF_COLOR_TAB";
  471. bt_tab_2.enabled = true;
  472. bt_tab_2.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  473. bt_tab_2.fontSize = 0;
  474. bt_tab_2.htmlText = true;
  475. bt_tab_2.instaPress = false;
  476. bt_tab_2.isComponent = true;
  477. bt_tab_2.italic = false;
  478. bt_tab_2.mouseWheel = false;
  479. bt_tab_2.navDown = "";
  480. bt_tab_2.navLeft = "";
  481. bt_tab_2.navRight = "";
  482. bt_tab_2.navTabBackward = "";
  483. bt_tab_2.navTabForward = "";
  484. bt_tab_2.navUp = "";
  485. bt_tab_2.pressAction = "PRESS";
  486. bt_tab_2.repeatDelay = 0;
  487. bt_tab_2.repeatRate = 0;
  488. bt_tab_2.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  489. bt_tab_2.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  490. bt_tab_2.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  491. bt_tab_2.textAlignH = "center";
  492. bt_tab_2.textAlignV = 0;
  493. bt_tab_2.textRes = "";
  494. bt_tab_2.tooltipRes = "";
  495. bt_tab_2.underline = false;
  496. bt_tab_2.unfocusedInput = false;
  497. bt_tab_2.visible = true;
  498. try {
  499. bt_tab_2["componentInspectorSetting"] = false;
  500. } catch(e:Error) {
  501. };
  502. }
  503. function __setProp_bt_tab_3_Visual_Tab_Buttons_Pad_bt_tab_3_0(){
  504. try {
  505. bt_tab_3["componentInspectorSetting"] = true;
  506. } catch(e:Error) {
  507. };
  508. bt_tab_3.autoSizeX = "none";
  509. bt_tab_3.bold = false;
  510. bt_tab_3.buttonType = "check";
  511. bt_tab_3.colorRes = "ID_GUI_DEF_COLOR_TAB";
  512. bt_tab_3.enabled = true;
  513. bt_tab_3.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  514. bt_tab_3.fontSize = 0;
  515. bt_tab_3.htmlText = true;
  516. bt_tab_3.instaPress = false;
  517. bt_tab_3.isComponent = true;
  518. bt_tab_3.italic = false;
  519. bt_tab_3.mouseWheel = false;
  520. bt_tab_3.navDown = "";
  521. bt_tab_3.navLeft = "";
  522. bt_tab_3.navRight = "";
  523. bt_tab_3.navTabBackward = "";
  524. bt_tab_3.navTabForward = "";
  525. bt_tab_3.navUp = "";
  526. bt_tab_3.pressAction = "PRESS";
  527. bt_tab_3.repeatDelay = 0;
  528. bt_tab_3.repeatRate = 0;
  529. bt_tab_3.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  530. bt_tab_3.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  531. bt_tab_3.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  532. bt_tab_3.textAlignH = "center";
  533. bt_tab_3.textAlignV = 0;
  534. bt_tab_3.textRes = "";
  535. bt_tab_3.tooltipRes = "";
  536. bt_tab_3.underline = false;
  537. bt_tab_3.unfocusedInput = false;
  538. bt_tab_3.visible = true;
  539. try {
  540. bt_tab_3["componentInspectorSetting"] = false;
  541. } catch(e:Error) {
  542. };
  543. }
  544. function __setProp_bt_tab_4_Visual_Tab_Buttons_Pad_bt_tab_4_0(){
  545. try {
  546. bt_tab_4["componentInspectorSetting"] = true;
  547. } catch(e:Error) {
  548. };
  549. bt_tab_4.autoSizeX = "none";
  550. bt_tab_4.bold = false;
  551. bt_tab_4.buttonType = "check";
  552. bt_tab_4.colorRes = "ID_GUI_DEF_COLOR_TAB";
  553. bt_tab_4.enabled = true;
  554. bt_tab_4.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  555. bt_tab_4.fontSize = 0;
  556. bt_tab_4.htmlText = true;
  557. bt_tab_4.instaPress = false;
  558. bt_tab_4.isComponent = true;
  559. bt_tab_4.italic = false;
  560. bt_tab_4.mouseWheel = false;
  561. bt_tab_4.navDown = "";
  562. bt_tab_4.navLeft = "";
  563. bt_tab_4.navRight = "";
  564. bt_tab_4.navTabBackward = "";
  565. bt_tab_4.navTabForward = "";
  566. bt_tab_4.navUp = "";
  567. bt_tab_4.pressAction = "PRESS";
  568. bt_tab_4.repeatDelay = 0;
  569. bt_tab_4.repeatRate = 0;
  570. bt_tab_4.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  571. bt_tab_4.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  572. bt_tab_4.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  573. bt_tab_4.textAlignH = "center";
  574. bt_tab_4.textAlignV = 0;
  575. bt_tab_4.textRes = "";
  576. bt_tab_4.tooltipRes = "";
  577. bt_tab_4.underline = false;
  578. bt_tab_4.unfocusedInput = false;
  579. bt_tab_4.visible = true;
  580. try {
  581. bt_tab_4["componentInspectorSetting"] = false;
  582. } catch(e:Error) {
  583. };
  584. }
  585. function __setProp_bt_tab_5_Visual_Tab_Buttons_Pad_bt_tab_5_0(){
  586. try {
  587. bt_tab_5["componentInspectorSetting"] = true;
  588. } catch(e:Error) {
  589. };
  590. bt_tab_5.autoSizeX = "none";
  591. bt_tab_5.bold = false;
  592. bt_tab_5.buttonType = "check";
  593. bt_tab_5.colorRes = "ID_GUI_DEF_COLOR_TAB";
  594. bt_tab_5.enabled = true;
  595. bt_tab_5.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  596. bt_tab_5.fontSize = 0;
  597. bt_tab_5.htmlText = true;
  598. bt_tab_5.instaPress = false;
  599. bt_tab_5.isComponent = true;
  600. bt_tab_5.italic = false;
  601. bt_tab_5.mouseWheel = false;
  602. bt_tab_5.navDown = "";
  603. bt_tab_5.navLeft = "";
  604. bt_tab_5.navRight = "";
  605. bt_tab_5.navTabBackward = "";
  606. bt_tab_5.navTabForward = "";
  607. bt_tab_5.navUp = "";
  608. bt_tab_5.pressAction = "PRESS";
  609. bt_tab_5.repeatDelay = 0;
  610. bt_tab_5.repeatRate = 0;
  611. bt_tab_5.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  612. bt_tab_5.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  613. bt_tab_5.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  614. bt_tab_5.textAlignH = "center";
  615. bt_tab_5.textAlignV = 0;
  616. bt_tab_5.textRes = "";
  617. bt_tab_5.tooltipRes = "";
  618. bt_tab_5.underline = false;
  619. bt_tab_5.unfocusedInput = false;
  620. bt_tab_5.visible = true;
  621. try {
  622. bt_tab_5["componentInspectorSetting"] = false;
  623. } catch(e:Error) {
  624. };
  625. }
  626. function frame1(){
  627. stop();
  628. }
  629.  
  630. }
  631. }//package components.focuselement
  632. package components.focuselement {
  633. import flash.display.*;
  634. import flash.events.*;
  635. import gm.element.*;
  636. import flash.text.*;
  637. import components.textbutton.*;
  638. import flash.utils.*;
  639. import flash.external.*;
  640.  
  641. public class Visual_Tab_Buttons_Mouse extends Element {
  642.  
  643. public var bt_tab_3:Visual_TextButton_Tab;
  644. public var bt_tab_0:Visual_TextButton_Tab;
  645. public var bt_tab_1:Visual_TextButton_Tab;
  646. public var bt_tab_4:Visual_TextButton_Tab;
  647. public var bt_tab_5:Visual_TextButton_Tab;
  648. public var bt_tab_2:Visual_TextButton_Tab;
  649.  
  650. public function Visual_Tab_Buttons_Mouse(){
  651. __setProp_bt_tab_1_Visual_Tab_Buttons_Mouse_Layer1_0();
  652. __setProp_bt_tab_2_Visual_Tab_Buttons_Mouse_Layer1_0();
  653. __setProp_bt_tab_4_Visual_Tab_Buttons_Mouse_Layer1_0();
  654. __setProp_bt_tab_5_Visual_Tab_Buttons_Mouse_Layer1_0();
  655. __setProp_bt_tab_0_Visual_Tab_Buttons_Mouse_Layer3_0();
  656. __setProp_bt_tab_3_Visual_Tab_Buttons_Mouse_Layer2_0();
  657. }
  658. function __setProp_bt_tab_1_Visual_Tab_Buttons_Mouse_Layer1_0(){
  659. try {
  660. bt_tab_1["componentInspectorSetting"] = true;
  661. } catch(e:Error) {
  662. };
  663. bt_tab_1.autoSizeX = "none";
  664. bt_tab_1.bold = false;
  665. bt_tab_1.buttonType = "check";
  666. bt_tab_1.colorRes = "ID_GUI_DEF_COLOR_TAB";
  667. bt_tab_1.enabled = true;
  668. bt_tab_1.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  669. bt_tab_1.fontSize = 0;
  670. bt_tab_1.htmlText = true;
  671. bt_tab_1.instaPress = false;
  672. bt_tab_1.isComponent = true;
  673. bt_tab_1.italic = false;
  674. bt_tab_1.mouseWheel = false;
  675. bt_tab_1.navDown = "";
  676. bt_tab_1.navLeft = "";
  677. bt_tab_1.navRight = "";
  678. bt_tab_1.navTabBackward = "";
  679. bt_tab_1.navTabForward = "";
  680. bt_tab_1.navUp = "";
  681. bt_tab_1.pressAction = "PRESS";
  682. bt_tab_1.repeatDelay = 0;
  683. bt_tab_1.repeatRate = 0;
  684. bt_tab_1.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  685. bt_tab_1.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  686. bt_tab_1.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  687. bt_tab_1.textAlignH = "center";
  688. bt_tab_1.textAlignV = 0;
  689. bt_tab_1.textRes = "";
  690. bt_tab_1.tooltipRes = "";
  691. bt_tab_1.underline = false;
  692. bt_tab_1.unfocusedInput = false;
  693. bt_tab_1.visible = true;
  694. try {
  695. bt_tab_1["componentInspectorSetting"] = false;
  696. } catch(e:Error) {
  697. };
  698. }
  699. function __setProp_bt_tab_2_Visual_Tab_Buttons_Mouse_Layer1_0(){
  700. try {
  701. bt_tab_2["componentInspectorSetting"] = true;
  702. } catch(e:Error) {
  703. };
  704. bt_tab_2.autoSizeX = "none";
  705. bt_tab_2.bold = false;
  706. bt_tab_2.buttonType = "check";
  707. bt_tab_2.colorRes = "ID_GUI_DEF_COLOR_TAB";
  708. bt_tab_2.enabled = true;
  709. bt_tab_2.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  710. bt_tab_2.fontSize = 0;
  711. bt_tab_2.htmlText = true;
  712. bt_tab_2.instaPress = false;
  713. bt_tab_2.isComponent = true;
  714. bt_tab_2.italic = false;
  715. bt_tab_2.mouseWheel = false;
  716. bt_tab_2.navDown = "";
  717. bt_tab_2.navLeft = "";
  718. bt_tab_2.navRight = "";
  719. bt_tab_2.navTabBackward = "";
  720. bt_tab_2.navTabForward = "";
  721. bt_tab_2.navUp = "";
  722. bt_tab_2.pressAction = "PRESS";
  723. bt_tab_2.repeatDelay = 0;
  724. bt_tab_2.repeatRate = 0;
  725. bt_tab_2.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  726. bt_tab_2.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  727. bt_tab_2.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  728. bt_tab_2.textAlignH = "center";
  729. bt_tab_2.textAlignV = 0;
  730. bt_tab_2.textRes = "";
  731. bt_tab_2.tooltipRes = "";
  732. bt_tab_2.underline = false;
  733. bt_tab_2.unfocusedInput = false;
  734. bt_tab_2.visible = true;
  735. try {
  736. bt_tab_2["componentInspectorSetting"] = false;
  737. } catch(e:Error) {
  738. };
  739. }
  740. function __setProp_bt_tab_4_Visual_Tab_Buttons_Mouse_Layer1_0(){
  741. try {
  742. bt_tab_4["componentInspectorSetting"] = true;
  743. } catch(e:Error) {
  744. };
  745. bt_tab_4.autoSizeX = "none";
  746. bt_tab_4.bold = false;
  747. bt_tab_4.buttonType = "check";
  748. bt_tab_4.colorRes = "ID_GUI_DEF_COLOR_TAB";
  749. bt_tab_4.enabled = true;
  750. bt_tab_4.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  751. bt_tab_4.fontSize = 0;
  752. bt_tab_4.htmlText = true;
  753. bt_tab_4.instaPress = false;
  754. bt_tab_4.isComponent = true;
  755. bt_tab_4.italic = false;
  756. bt_tab_4.mouseWheel = false;
  757. bt_tab_4.navDown = "";
  758. bt_tab_4.navLeft = "";
  759. bt_tab_4.navRight = "";
  760. bt_tab_4.navTabBackward = "";
  761. bt_tab_4.navTabForward = "";
  762. bt_tab_4.navUp = "";
  763. bt_tab_4.pressAction = "PRESS";
  764. bt_tab_4.repeatDelay = 0;
  765. bt_tab_4.repeatRate = 0;
  766. bt_tab_4.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  767. bt_tab_4.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  768. bt_tab_4.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  769. bt_tab_4.textAlignH = "center";
  770. bt_tab_4.textAlignV = 0;
  771. bt_tab_4.textRes = "";
  772. bt_tab_4.tooltipRes = "";
  773. bt_tab_4.underline = false;
  774. bt_tab_4.unfocusedInput = false;
  775. bt_tab_4.visible = true;
  776. try {
  777. bt_tab_4["componentInspectorSetting"] = false;
  778. } catch(e:Error) {
  779. };
  780. }
  781. function __setProp_bt_tab_5_Visual_Tab_Buttons_Mouse_Layer1_0(){
  782. try {
  783. bt_tab_5["componentInspectorSetting"] = true;
  784. } catch(e:Error) {
  785. };
  786. bt_tab_5.autoSizeX = "none";
  787. bt_tab_5.bold = false;
  788. bt_tab_5.buttonType = "check";
  789. bt_tab_5.colorRes = "ID_GUI_DEF_COLOR_TAB";
  790. bt_tab_5.enabled = true;
  791. bt_tab_5.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  792. bt_tab_5.fontSize = 0;
  793. bt_tab_5.htmlText = true;
  794. bt_tab_5.instaPress = false;
  795. bt_tab_5.isComponent = true;
  796. bt_tab_5.italic = false;
  797. bt_tab_5.mouseWheel = false;
  798. bt_tab_5.navDown = "";
  799. bt_tab_5.navLeft = "";
  800. bt_tab_5.navRight = "";
  801. bt_tab_5.navTabBackward = "";
  802. bt_tab_5.navTabForward = "";
  803. bt_tab_5.navUp = "";
  804. bt_tab_5.pressAction = "PRESS";
  805. bt_tab_5.repeatDelay = 0;
  806. bt_tab_5.repeatRate = 0;
  807. bt_tab_5.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  808. bt_tab_5.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  809. bt_tab_5.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  810. bt_tab_5.textAlignH = "center";
  811. bt_tab_5.textAlignV = 0;
  812. bt_tab_5.textRes = "";
  813. bt_tab_5.tooltipRes = "";
  814. bt_tab_5.underline = false;
  815. bt_tab_5.unfocusedInput = false;
  816. bt_tab_5.visible = true;
  817. try {
  818. bt_tab_5["componentInspectorSetting"] = false;
  819. } catch(e:Error) {
  820. };
  821. }
  822. function __setProp_bt_tab_0_Visual_Tab_Buttons_Mouse_Layer3_0(){
  823. try {
  824. bt_tab_0["componentInspectorSetting"] = true;
  825. } catch(e:Error) {
  826. };
  827. bt_tab_0.autoSizeX = "none";
  828. bt_tab_0.bold = false;
  829. bt_tab_0.buttonType = "check";
  830. bt_tab_0.colorRes = "ID_GUI_DEF_COLOR_TAB";
  831. bt_tab_0.enabled = true;
  832. bt_tab_0.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  833. bt_tab_0.fontSize = 0;
  834. bt_tab_0.htmlText = true;
  835. bt_tab_0.instaPress = false;
  836. bt_tab_0.isComponent = true;
  837. bt_tab_0.italic = false;
  838. bt_tab_0.mouseWheel = false;
  839. bt_tab_0.navDown = "";
  840. bt_tab_0.navLeft = "";
  841. bt_tab_0.navRight = "";
  842. bt_tab_0.navTabBackward = "";
  843. bt_tab_0.navTabForward = "";
  844. bt_tab_0.navUp = "";
  845. bt_tab_0.pressAction = "PRESS";
  846. bt_tab_0.repeatDelay = 0;
  847. bt_tab_0.repeatRate = 0;
  848. bt_tab_0.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  849. bt_tab_0.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  850. bt_tab_0.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  851. bt_tab_0.textAlignH = "center";
  852. bt_tab_0.textAlignV = 0;
  853. bt_tab_0.textRes = "";
  854. bt_tab_0.tooltipRes = "";
  855. bt_tab_0.underline = false;
  856. bt_tab_0.unfocusedInput = false;
  857. bt_tab_0.visible = true;
  858. try {
  859. bt_tab_0["componentInspectorSetting"] = false;
  860. } catch(e:Error) {
  861. };
  862. }
  863. function __setProp_bt_tab_3_Visual_Tab_Buttons_Mouse_Layer2_0(){
  864. try {
  865. bt_tab_3["componentInspectorSetting"] = true;
  866. } catch(e:Error) {
  867. };
  868. bt_tab_3.autoSizeX = "none";
  869. bt_tab_3.bold = false;
  870. bt_tab_3.buttonType = "check";
  871. bt_tab_3.colorRes = "ID_GUI_DEF_COLOR_TAB";
  872. bt_tab_3.enabled = true;
  873. bt_tab_3.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  874. bt_tab_3.fontSize = 0;
  875. bt_tab_3.htmlText = true;
  876. bt_tab_3.instaPress = false;
  877. bt_tab_3.isComponent = true;
  878. bt_tab_3.italic = false;
  879. bt_tab_3.mouseWheel = false;
  880. bt_tab_3.navDown = "";
  881. bt_tab_3.navLeft = "";
  882. bt_tab_3.navRight = "";
  883. bt_tab_3.navTabBackward = "";
  884. bt_tab_3.navTabForward = "";
  885. bt_tab_3.navUp = "";
  886. bt_tab_3.pressAction = "PRESS";
  887. bt_tab_3.repeatDelay = 0;
  888. bt_tab_3.repeatRate = 0;
  889. bt_tab_3.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  890. bt_tab_3.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  891. bt_tab_3.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  892. bt_tab_3.textAlignH = "center";
  893. bt_tab_3.textAlignV = 0;
  894. bt_tab_3.textRes = "";
  895. bt_tab_3.tooltipRes = "";
  896. bt_tab_3.underline = false;
  897. bt_tab_3.unfocusedInput = false;
  898. bt_tab_3.visible = true;
  899. try {
  900. bt_tab_3["componentInspectorSetting"] = false;
  901. } catch(e:Error) {
  902. };
  903. }
  904.  
  905. }
  906. }//package components.focuselement
  907. package components.list {
  908. import components.button.*;
  909. import gm.list.*;
  910. import components.scrollbar.*;
  911.  
  912. public class Visual_List_Town_Goods extends List {
  913.  
  914. public var list_item_4:Visual_ListButton_TownGoods;
  915. public var scrollbar:Visual_Scrollbar_List;
  916. public var list_item_8:Visual_ListButton_TownGoods;
  917. public var list_item_3:Visual_ListButton_TownGoods;
  918. public var list_item_2:Visual_ListButton_TownGoods;
  919. public var list_item_1:Visual_ListButton_TownGoods;
  920. public var list_item_0:Visual_ListButton_TownGoods;
  921. public var list_item_7:Visual_ListButton_TownGoods;
  922. public var list_item_6:Visual_ListButton_TownGoods;
  923. public var list_item_5:Visual_ListButton_TownGoods;
  924.  
  925. }
  926. }//package components.list
  927. package components.list {
  928. import components.button.*;
  929. import exports.*;
  930. import gm.list.*;
  931.  
  932. public class Visual_List_Equipment extends List {
  933.  
  934. public var list_item_4:Visual_ListButton_Equipment;
  935. public var list_item_3:Visual_ListButton_Equipment;
  936. public var trade_overlay:Visual_Equipment_Overlay;
  937. public var list_item_2:Visual_ListButton_Equipment;
  938. public var list_item_1:Visual_ListButton_Equipment;
  939. public var list_item_0:Visual_ListButton_Equipment;
  940. public var list_item_5:Visual_ListButton_Equipment;
  941.  
  942. }
  943. }//package components.list
  944. package components.list {
  945. import components.button.*;
  946. import exports.*;
  947. import gm.list.*;
  948. import components.scrollbar.*;
  949.  
  950. public class Visual_List_Trade extends List {
  951.  
  952. public var list_item_4:Visual_ListButton_Trade;
  953. public var scrollbar:Visual_Scrollbar_List;
  954. public var list_item_9:Visual_ListButton_Trade;
  955. public var list_item_8:Visual_ListButton_Trade;
  956. public var list_item_3:Visual_ListButton_Trade;
  957. public var trade_overlay:Visual_Trade_Overlay;
  958. public var list_item_2:Visual_ListButton_Trade;
  959. public var list_item_1:Visual_ListButton_Trade;
  960. public var list_item_0:Visual_ListButton_Trade;
  961. public var list_item_7:Visual_ListButton_Trade;
  962. public var list_item_6:Visual_ListButton_Trade;
  963. public var list_item_5:Visual_ListButton_Trade;
  964.  
  965. }
  966. }//package components.list
  967. package exports {
  968. import flash.display.*;
  969. import gm.*;
  970. import flash.events.*;
  971. import components.button.*;
  972. import components.textfield.*;
  973. import pr3.dialog.*;
  974. import components.list.*;
  975.  
  976. public class Tab_Equipment extends DialogPage {
  977.  
  978. public var bu_info_sailor:Visual_Button_Infotext;
  979. public var tf_sailor:MovieClip;
  980. public var bu_info_ammo:Visual_Button_Infotext;
  981. public var tf_ammo:MovieClip;
  982. public var tf_info:Visual_Textfeld_16_Ml;
  983. public var li_equipment:Visual_List_Equipment;
  984. public var tf_max:Visual_Textfeld_16;
  985. public var icn_tt_0:Visual_IconButton_Town;
  986. public var icn_tt_1:Visual_IconButton_Ship_Regular;
  987.  
  988. public function Tab_Equipment(){
  989. __setProp_icn_tt_1_Tab_Equipment_legend_0();
  990. __setProp_icn_tt_0_Tab_Equipment_legend_0();
  991. __setProp_tf_max_Tab_Equipment_legend_0();
  992. __setProp_tf_ammo_Tab_Equipment_tf_ammo_0();
  993. __setProp_tf_sailor_Tab_Equipment_tf_sailor_0();
  994. __setProp_bu_info_sailor_Tab_Equipment_infobuttons_0();
  995. __setProp_bu_info_ammo_Tab_Equipment_infobuttons_0();
  996. __setProp_li_equipment_Tab_Equipment_li_equipment_0();
  997. }
  998. function __setProp_icn_tt_1_Tab_Equipment_legend_0(){
  999. try {
  1000. icn_tt_1["componentInspectorSetting"] = true;
  1001. } catch(e:Error) {
  1002. };
  1003. icn_tt_1.buttonType = "normal";
  1004. icn_tt_1.enabled = true;
  1005. icn_tt_1.instaPress = false;
  1006. icn_tt_1.isComponent = true;
  1007. icn_tt_1.mouseWheel = false;
  1008. icn_tt_1.navDown = "";
  1009. icn_tt_1.navLeft = "";
  1010. icn_tt_1.navRight = "";
  1011. icn_tt_1.navTabBackward = "";
  1012. icn_tt_1.navTabForward = "";
  1013. icn_tt_1.navUp = "";
  1014. icn_tt_1.pressAction = "PRESS";
  1015. icn_tt_1.repeatDelay = 0;
  1016. icn_tt_1.repeatRate = 0;
  1017. icn_tt_1.soundFocus = "";
  1018. icn_tt_1.soundPressNeg = "";
  1019. icn_tt_1.soundPressPos = "";
  1020. icn_tt_1.tooltipRes = "ID_GUI_TT_CONVOY_ICON_SHIP";
  1021. icn_tt_1.unfocusedInput = false;
  1022. icn_tt_1.visible = true;
  1023. try {
  1024. icn_tt_1["componentInspectorSetting"] = false;
  1025. } catch(e:Error) {
  1026. };
  1027. }
  1028. function __setProp_icn_tt_0_Tab_Equipment_legend_0(){
  1029. try {
  1030. icn_tt_0["componentInspectorSetting"] = true;
  1031. } catch(e:Error) {
  1032. };
  1033. icn_tt_0.buttonType = "normal";
  1034. icn_tt_0.enabled = true;
  1035. icn_tt_0.instaPress = false;
  1036. icn_tt_0.isComponent = true;
  1037. icn_tt_0.mouseWheel = false;
  1038. icn_tt_0.navDown = "";
  1039. icn_tt_0.navLeft = "";
  1040. icn_tt_0.navRight = "";
  1041. icn_tt_0.navTabBackward = "";
  1042. icn_tt_0.navTabForward = "";
  1043. icn_tt_0.navUp = "";
  1044. icn_tt_0.pressAction = "PRESS";
  1045. icn_tt_0.repeatDelay = 0;
  1046. icn_tt_0.repeatRate = 0;
  1047. icn_tt_0.soundFocus = "";
  1048. icn_tt_0.soundPressNeg = "";
  1049. icn_tt_0.soundPressPos = "";
  1050. icn_tt_0.tooltipRes = "ID_GUI_TT_ICON_TOWN2";
  1051. icn_tt_0.unfocusedInput = false;
  1052. icn_tt_0.visible = true;
  1053. try {
  1054. icn_tt_0["componentInspectorSetting"] = false;
  1055. } catch(e:Error) {
  1056. };
  1057. }
  1058. function __setProp_tf_max_Tab_Equipment_legend_0(){
  1059. try {
  1060. tf_max["componentInspectorSetting"] = true;
  1061. } catch(e:Error) {
  1062. };
  1063. tf_max.autosizeX = false;
  1064. tf_max.autosizeY = false;
  1065. tf_max.bold = false;
  1066. tf_max.colorRes = "ID_GUI_DEF_COLOR_DEFAULT";
  1067. tf_max.enabled = true;
  1068. tf_max.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  1069. tf_max.fontSize = 0;
  1070. tf_max.htmlText = false;
  1071. tf_max.isComponent = true;
  1072. tf_max.italic = false;
  1073. tf_max.mouseWheel = false;
  1074. tf_max.navDown = "";
  1075. tf_max.navLeft = "";
  1076. tf_max.navRight = "";
  1077. tf_max.navTabBackward = "";
  1078. tf_max.navTabForward = "";
  1079. tf_max.navUp = "";
  1080. tf_max.pressAction = "PRESS";
  1081. tf_max.repeatDelay = 0;
  1082. tf_max.repeatRate = 0;
  1083. tf_max.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  1084. tf_max.textAlignH = "center";
  1085. tf_max.textAlignV = 0;
  1086. tf_max.textRes = "ID_GUI_TAB_EQUIPMENT_MAX";
  1087. tf_max.tooltipRes = "";
  1088. tf_max.underline = false;
  1089. tf_max.unfocusedInput = false;
  1090. tf_max.visible = true;
  1091. try {
  1092. tf_max["componentInspectorSetting"] = false;
  1093. } catch(e:Error) {
  1094. };
  1095. }
  1096. function __setProp_tf_ammo_Tab_Equipment_tf_ammo_0(){
  1097. try {
  1098. tf_ammo["componentInspectorSetting"] = true;
  1099. } catch(e:Error) {
  1100. };
  1101. tf_ammo.autosizeX = false;
  1102. tf_ammo.autosizeY = false;
  1103. tf_ammo.bold = false;
  1104. tf_ammo.colorRes = "ID_GUI_DEF_COLOR_DIALOG_SUBHEADLINE";
  1105. tf_ammo.enabled = true;
  1106. tf_ammo.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  1107. tf_ammo.fontSize = 0;
  1108. tf_ammo.htmlText = false;
  1109. tf_ammo.isComponent = true;
  1110. tf_ammo.italic = false;
  1111. tf_ammo.mouseWheel = false;
  1112. tf_ammo.navDown = "";
  1113. tf_ammo.navLeft = "";
  1114. tf_ammo.navRight = "";
  1115. tf_ammo.navTabBackward = "";
  1116. tf_ammo.navTabForward = "";
  1117. tf_ammo.navUp = "";
  1118. tf_ammo.pressAction = "PRESS";
  1119. tf_ammo.repeatDelay = 0;
  1120. tf_ammo.repeatRate = 0;
  1121. tf_ammo.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  1122. tf_ammo.textAlignH = "center";
  1123. tf_ammo.textAlignV = 0;
  1124. tf_ammo.textRes = "ID_GUI_TAB_EQUIPMENT_AMMO";
  1125. tf_ammo.tooltipRes = "";
  1126. tf_ammo.underline = false;
  1127. tf_ammo.unfocusedInput = false;
  1128. tf_ammo.visible = true;
  1129. try {
  1130. tf_ammo["componentInspectorSetting"] = false;
  1131. } catch(e:Error) {
  1132. };
  1133. }
  1134. function __setProp_tf_sailor_Tab_Equipment_tf_sailor_0(){
  1135. try {
  1136. tf_sailor["componentInspectorSetting"] = true;
  1137. } catch(e:Error) {
  1138. };
  1139. tf_sailor.autosizeX = false;
  1140. tf_sailor.autosizeY = false;
  1141. tf_sailor.bold = false;
  1142. tf_sailor.colorRes = "ID_GUI_DEF_COLOR_DIALOG_SUBHEADLINE";
  1143. tf_sailor.enabled = true;
  1144. tf_sailor.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  1145. tf_sailor.fontSize = 0;
  1146. tf_sailor.htmlText = false;
  1147. tf_sailor.isComponent = true;
  1148. tf_sailor.italic = false;
  1149. tf_sailor.mouseWheel = false;
  1150. tf_sailor.navDown = "";
  1151. tf_sailor.navLeft = "";
  1152. tf_sailor.navRight = "";
  1153. tf_sailor.navTabBackward = "";
  1154. tf_sailor.navTabForward = "";
  1155. tf_sailor.navUp = "";
  1156. tf_sailor.pressAction = "PRESS";
  1157. tf_sailor.repeatDelay = 0;
  1158. tf_sailor.repeatRate = 0;
  1159. tf_sailor.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  1160. tf_sailor.textAlignH = "center";
  1161. tf_sailor.textAlignV = 0;
  1162. tf_sailor.textRes = "ID_GUI_TAB_EQUIPMENT_SAILOR";
  1163. tf_sailor.tooltipRes = "";
  1164. tf_sailor.underline = false;
  1165. tf_sailor.unfocusedInput = false;
  1166. tf_sailor.visible = true;
  1167. try {
  1168. tf_sailor["componentInspectorSetting"] = false;
  1169. } catch(e:Error) {
  1170. };
  1171. }
  1172. function __setProp_bu_info_sailor_Tab_Equipment_infobuttons_0(){
  1173. try {
  1174. bu_info_sailor["componentInspectorSetting"] = true;
  1175. } catch(e:Error) {
  1176. };
  1177. bu_info_sailor.buttonType = "normal";
  1178. bu_info_sailor.enabled = true;
  1179. bu_info_sailor.instaPress = false;
  1180. bu_info_sailor.isComponent = true;
  1181. bu_info_sailor.mouseWheel = false;
  1182. bu_info_sailor.navDown = "";
  1183. bu_info_sailor.navLeft = "";
  1184. bu_info_sailor.navRight = "";
  1185. bu_info_sailor.navTabBackward = "";
  1186. bu_info_sailor.navTabForward = "";
  1187. bu_info_sailor.navUp = "";
  1188. bu_info_sailor.pressAction = "PRESS";
  1189. bu_info_sailor.repeatDelay = 0;
  1190. bu_info_sailor.repeatRate = 0;
  1191. bu_info_sailor.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  1192. bu_info_sailor.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  1193. bu_info_sailor.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  1194. bu_info_sailor.tooltipIsInfo = true;
  1195. bu_info_sailor.tooltipRes = "ID_GUI_TTINFO_DOCK_EQUIPMENT_SAILOR";
  1196. bu_info_sailor.unfocusedInput = false;
  1197. bu_info_sailor.visible = true;
  1198. try {
  1199. bu_info_sailor["componentInspectorSetting"] = false;
  1200. } catch(e:Error) {
  1201. };
  1202. }
  1203. function __setProp_bu_info_ammo_Tab_Equipment_infobuttons_0(){
  1204. try {
  1205. bu_info_ammo["componentInspectorSetting"] = true;
  1206. } catch(e:Error) {
  1207. };
  1208. bu_info_ammo.buttonType = "normal";
  1209. bu_info_ammo.enabled = true;
  1210. bu_info_ammo.instaPress = false;
  1211. bu_info_ammo.isComponent = true;
  1212. bu_info_ammo.mouseWheel = false;
  1213. bu_info_ammo.navDown = "";
  1214. bu_info_ammo.navLeft = "";
  1215. bu_info_ammo.navRight = "";
  1216. bu_info_ammo.navTabBackward = "";
  1217. bu_info_ammo.navTabForward = "";
  1218. bu_info_ammo.navUp = "";
  1219. bu_info_ammo.pressAction = "PRESS";
  1220. bu_info_ammo.repeatDelay = 0;
  1221. bu_info_ammo.repeatRate = 0;
  1222. bu_info_ammo.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  1223. bu_info_ammo.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  1224. bu_info_ammo.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  1225. bu_info_ammo.tooltipIsInfo = true;
  1226. bu_info_ammo.tooltipRes = "ID_GUI_TTINFO_DOCK_EQUIPMENT_AMMO";
  1227. bu_info_ammo.unfocusedInput = false;
  1228. bu_info_ammo.visible = true;
  1229. try {
  1230. bu_info_ammo["componentInspectorSetting"] = false;
  1231. } catch(e:Error) {
  1232. };
  1233. }
  1234. function __setProp_li_equipment_Tab_Equipment_li_equipment_0(){
  1235. try {
  1236. li_equipment["componentInspectorSetting"] = true;
  1237. } catch(e:Error) {
  1238. };
  1239. li_equipment.allowDeselect = true;
  1240. li_equipment.columns = 1;
  1241. li_equipment.dragMarker = false;
  1242. li_equipment.dragType = "none";
  1243. li_equipment.enabled = true;
  1244. li_equipment.enableMouseWheel = false;
  1245. li_equipment.isComponent = true;
  1246. li_equipment.mouseWheel = false;
  1247. li_equipment.navDown = "";
  1248. li_equipment.navLeft = "";
  1249. li_equipment.navRight = "";
  1250. li_equipment.navTabBackward = "";
  1251. li_equipment.navTabForward = "";
  1252. li_equipment.navUp = "";
  1253. li_equipment.noElementButtons = false;
  1254. li_equipment.open = false;
  1255. li_equipment.pageScroll = true;
  1256. li_equipment.pressAction = "PRESS";
  1257. li_equipment.repeatDelay = 0;
  1258. li_equipment.repeatRate = 0;
  1259. li_equipment.resizeableBackground = false;
  1260. li_equipment.rows = 6;
  1261. li_equipment.selectionType = "single";
  1262. li_equipment.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  1263. li_equipment.tooltipRes = "";
  1264. li_equipment.unfocusedInput = false;
  1265. li_equipment.visible = true;
  1266. li_equipment.warp = false;
  1267. try {
  1268. li_equipment["componentInspectorSetting"] = false;
  1269. } catch(e:Error) {
  1270. };
  1271. }
  1272.  
  1273. }
  1274. }//package exports
  1275. package exports {
  1276. import flash.display.*;
  1277. import gm.*;
  1278. import flash.events.*;
  1279. import components.button.*;
  1280. import pr3.dialog.*;
  1281. import components.list.*;
  1282.  
  1283. public class Tab_Trade_Town_Office extends DialogPage {
  1284.  
  1285. public var li_trade:Visual_List_Trade;
  1286. public var icn_tt_2:Visual_IconButton_Office_Storage;
  1287. public var icn_tt_3:Visual_IconButton_Town_Storage;
  1288. public var icn_tt_0:Visual_IconButton_goods_price;
  1289. public var icn_tt_1:Visual_IconButton_Goods_Price_Average;
  1290.  
  1291. public function Tab_Trade_Town_Office(){
  1292. __setProp_icn_tt_0_Tab_Trade_Town_Office_legend_0();
  1293. __setProp_icn_tt_1_Tab_Trade_Town_Office_legend_0();
  1294. __setProp_icn_tt_2_Tab_Trade_Town_Office_legend_0();
  1295. __setProp_icn_tt_3_Tab_Trade_Town_Office_legend_0();
  1296. __setProp_li_trade_Tab_Trade_Town_Office_li_trade_0();
  1297. }
  1298. function __setProp_icn_tt_0_Tab_Trade_Town_Office_legend_0(){
  1299. try {
  1300. icn_tt_0["componentInspectorSetting"] = true;
  1301. } catch(e:Error) {
  1302. };
  1303. icn_tt_0.buttonType = "normal";
  1304. icn_tt_0.enabled = true;
  1305. icn_tt_0.instaPress = false;
  1306. icn_tt_0.isComponent = true;
  1307. icn_tt_0.mouseWheel = false;
  1308. icn_tt_0.navDown = "";
  1309. icn_tt_0.navLeft = "";
  1310. icn_tt_0.navRight = "";
  1311. icn_tt_0.navTabBackward = "";
  1312. icn_tt_0.navTabForward = "";
  1313. icn_tt_0.navUp = "";
  1314. icn_tt_0.pressAction = "PRESS";
  1315. icn_tt_0.repeatDelay = 0;
  1316. icn_tt_0.repeatRate = 0;
  1317. icn_tt_0.soundFocus = "";
  1318. icn_tt_0.soundPressNeg = "";
  1319. icn_tt_0.soundPressPos = "";
  1320. icn_tt_0.tooltipRes = "ID_GUI_TT_ICON_PRICE";
  1321. icn_tt_0.unfocusedInput = false;
  1322. icn_tt_0.visible = true;
  1323. try {
  1324. icn_tt_0["componentInspectorSetting"] = false;
  1325. } catch(e:Error) {
  1326. };
  1327. }
  1328. function __setProp_icn_tt_1_Tab_Trade_Town_Office_legend_0(){
  1329. try {
  1330. icn_tt_1["componentInspectorSetting"] = true;
  1331. } catch(e:Error) {
  1332. };
  1333. icn_tt_1.buttonType = "normal";
  1334. icn_tt_1.enabled = true;
  1335. icn_tt_1.instaPress = false;
  1336. icn_tt_1.isComponent = true;
  1337. icn_tt_1.mouseWheel = false;
  1338. icn_tt_1.navDown = "";
  1339. icn_tt_1.navLeft = "";
  1340. icn_tt_1.navRight = "";
  1341. icn_tt_1.navTabBackward = "";
  1342. icn_tt_1.navTabForward = "";
  1343. icn_tt_1.navUp = "";
  1344. icn_tt_1.pressAction = "PRESS";
  1345. icn_tt_1.repeatDelay = 0;
  1346. icn_tt_1.repeatRate = 0;
  1347. icn_tt_1.soundFocus = "";
  1348. icn_tt_1.soundPressNeg = "";
  1349. icn_tt_1.soundPressPos = "";
  1350. icn_tt_1.tooltipRes = "ID_GUI_TT_CONVOY_ICON_AVERAGE_GOLD";
  1351. icn_tt_1.unfocusedInput = false;
  1352. icn_tt_1.visible = true;
  1353. try {
  1354. icn_tt_1["componentInspectorSetting"] = false;
  1355. } catch(e:Error) {
  1356. };
  1357. }
  1358. function __setProp_icn_tt_2_Tab_Trade_Town_Office_legend_0(){
  1359. try {
  1360. icn_tt_2["componentInspectorSetting"] = true;
  1361. } catch(e:Error) {
  1362. };
  1363. icn_tt_2.buttonType = "normal";
  1364. icn_tt_2.enabled = true;
  1365. icn_tt_2.instaPress = false;
  1366. icn_tt_2.isComponent = true;
  1367. icn_tt_2.mouseWheel = false;
  1368. icn_tt_2.navDown = "";
  1369. icn_tt_2.navLeft = "";
  1370. icn_tt_2.navRight = "";
  1371. icn_tt_2.navTabBackward = "";
  1372. icn_tt_2.navTabForward = "";
  1373. icn_tt_2.navUp = "";
  1374. icn_tt_2.pressAction = "PRESS";
  1375. icn_tt_2.repeatDelay = 0;
  1376. icn_tt_2.repeatRate = 0;
  1377. icn_tt_2.soundFocus = "";
  1378. icn_tt_2.soundPressNeg = "";
  1379. icn_tt_2.soundPressPos = "";
  1380. icn_tt_2.tooltipRes = "ID_GUI_TT_ICON_DEPOT";
  1381. icn_tt_2.unfocusedInput = false;
  1382. icn_tt_2.visible = true;
  1383. try {
  1384. icn_tt_2["componentInspectorSetting"] = false;
  1385. } catch(e:Error) {
  1386. };
  1387. }
  1388. function __setProp_icn_tt_3_Tab_Trade_Town_Office_legend_0(){
  1389. try {
  1390. icn_tt_3["componentInspectorSetting"] = true;
  1391. } catch(e:Error) {
  1392. };
  1393. icn_tt_3.buttonType = "normal";
  1394. icn_tt_3.enabled = true;
  1395. icn_tt_3.instaPress = false;
  1396. icn_tt_3.isComponent = true;
  1397. icn_tt_3.mouseWheel = false;
  1398. icn_tt_3.navDown = "";
  1399. icn_tt_3.navLeft = "";
  1400. icn_tt_3.navRight = "";
  1401. icn_tt_3.navTabBackward = "";
  1402. icn_tt_3.navTabForward = "";
  1403. icn_tt_3.navUp = "";
  1404. icn_tt_3.pressAction = "PRESS";
  1405. icn_tt_3.repeatDelay = 0;
  1406. icn_tt_3.repeatRate = 0;
  1407. icn_tt_3.soundFocus = "";
  1408. icn_tt_3.soundPressNeg = "";
  1409. icn_tt_3.soundPressPos = "";
  1410. icn_tt_3.tooltipRes = "ID_GUI_TT_BARRELS_TOWN";
  1411. icn_tt_3.unfocusedInput = false;
  1412. icn_tt_3.visible = true;
  1413. try {
  1414. icn_tt_3["componentInspectorSetting"] = false;
  1415. } catch(e:Error) {
  1416. };
  1417. }
  1418. function __setProp_li_trade_Tab_Trade_Town_Office_li_trade_0(){
  1419. try {
  1420. li_trade["componentInspectorSetting"] = true;
  1421. } catch(e:Error) {
  1422. };
  1423. li_trade.allowDeselect = true;
  1424. li_trade.columns = 1;
  1425. li_trade.dragMarker = false;
  1426. li_trade.dragType = "none";
  1427. li_trade.enabled = true;
  1428. li_trade.enableMouseWheel = true;
  1429. li_trade.isComponent = true;
  1430. li_trade.mouseWheel = true;
  1431. li_trade.navDown = "";
  1432. li_trade.navLeft = "";
  1433. li_trade.navRight = "";
  1434. li_trade.navTabBackward = "";
  1435. li_trade.navTabForward = "";
  1436. li_trade.navUp = "";
  1437. li_trade.noElementButtons = false;
  1438. li_trade.open = false;
  1439. li_trade.pageScroll = true;
  1440. li_trade.pressAction = "PRESS";
  1441. li_trade.repeatDelay = 0;
  1442. li_trade.repeatRate = 0;
  1443. li_trade.resizeableBackground = false;
  1444. li_trade.rows = 10;
  1445. li_trade.selectionType = "single";
  1446. li_trade.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  1447. li_trade.tooltipRes = "";
  1448. li_trade.unfocusedInput = false;
  1449. li_trade.visible = true;
  1450. li_trade.warp = false;
  1451. try {
  1452. li_trade["componentInspectorSetting"] = false;
  1453. } catch(e:Error) {
  1454. };
  1455. }
  1456.  
  1457. }
  1458. }//package exports
  1459. package exports {
  1460.  
  1461. public class Visual_Equipment_Overlay extends Visual_Trade_Overlay_Base {
  1462.  
  1463. }
  1464. }//package exports
  1465. package exports {
  1466. import flash.display.*;
  1467. import gm.*;
  1468. import flash.events.*;
  1469. import components.button.*;
  1470. import components.textfield.*;
  1471. import pr3.dialog.*;
  1472. import components.animatedelement.*;
  1473.  
  1474. public class Tab_TownInfo extends DialogPage {
  1475.  
  1476. public var tf_defense:Visual_Textfeld_16;
  1477. public var tf_citizeninfo:Visual_Textfeld_16;
  1478. public var tf_player_factories:Visual_Textfeld_16;
  1479. public var tf_status_citizens_growth:Visual_Textfeld_16;
  1480. public var tf_status_status:MovieClip;
  1481. public var tf_status_buildings_percentage:Visual_Textfeld_16;
  1482. public var tf_rep:Visual_Textfeld_16;
  1483. public var icon_arrow_habitants:Visual_IconButton_arrowUpDown;
  1484. public var icon_town:MovieClip;
  1485. public var tf_guards:Visual_Textfeld_16;
  1486. public var tf_status_buildings:Visual_Textfeld_16;
  1487. public var tf_status_citizens:Visual_Textfeld_16;
  1488. public var tf_player_reputation:Visual_Textfeld_16;
  1489. public var icn_tt_6:Visual_IconButton_Workshop;
  1490. public var icon_habitants:Visual_IconButton_habitants;
  1491. public var tf_subheadline_player:MovieClip;
  1492. public var icon_production_ware_1:Visual_IconButton_Goods;
  1493. public var icn_tt_7:Visual_IconButton_buildings01;
  1494. public var tf_production_production:Visual_Textfeld_16;
  1495. public var icon_production_ware_0:Visual_IconButton_Goods;
  1496. public var icon_rep:Visual_AniElement_Reputationmarker;
  1497. public var icn_tt_4:Visual_IconButton_ThumbsUp;
  1498. public var tf_nationinfo:Visual_Textfeld_16;
  1499. public var icon_production_ware_3:Visual_IconButton_Goods;
  1500. public var icn_tt_5:Visual_IconButton_Office_Storage;
  1501. public var icon_production_ware_2:Visual_IconButton_Goods;
  1502. public var icon_towntype:Visual_IconButton_Towninfo;
  1503. public var icn_tt_2:Visual_IconButton_buildings01;
  1504. public var tf_subheadline_status:MovieClip;
  1505. public var tf_citizens:Visual_Textfeld_16;
  1506. public var tf_towndesc:Visual_Textfeld_16;
  1507. public var icon_soldier01:Visual_IconButton_soldier1;
  1508. public var icn_tt_3:Visual_IconButton_occupancy;
  1509. public var icon_production_ware_4:Visual_IconButton_Goods;
  1510. public var icn_tt_0:Visual_IconButton_SettlerState;
  1511. public var icon_townattack:Visual_IconButton_TownAttack;
  1512. public var icon_info:Visual_Button_Infotext;
  1513. public var tf_player_residential:Visual_Textfeld_16;
  1514. public var icon_nationflag:Visual_IconButton_NationFlag_Alpha;
  1515. public var icon_settler:Visual_IconButton_settlers;
  1516. public var icn_tt_1:Visual_IconButton_Workshop;
  1517. public var tf_subheadline_production:MovieClip;
  1518. public var tf_player_production:Visual_Textfeld_16;
  1519.  
  1520. public function Tab_TownInfo(){
  1521. __setProp_icon_nationflag_Tab_TownInfo_icon_flag_0();
  1522. __setProp_icon_towntype_Tab_TownInfo_icon_town_0();
  1523. __setProp_icon_town_Tab_TownInfo_icon_town_0();
  1524. __setProp_icon_production_ware_0_Tab_TownInfo_icons_ware_0();
  1525. __setProp_icon_production_ware_1_Tab_TownInfo_icons_ware_0();
  1526. __setProp_icon_production_ware_2_Tab_TownInfo_icons_ware_0();
  1527. __setProp_icon_production_ware_3_Tab_TownInfo_icons_ware_0();
  1528. __setProp_icon_production_ware_4_Tab_TownInfo_icons_ware_0();
  1529. __setProp_tf_nationinfo_Tab_TownInfo_text_0();
  1530. __setProp_tf_towndesc_Tab_TownInfo_text_0();
  1531. __setProp_tf_subheadline_status_Tab_TownInfo_text_0();
  1532. __setProp_tf_subheadline_production_Tab_TownInfo_text_0();
  1533. __setProp_tf_subheadline_player_Tab_TownInfo_text_0();
  1534. __setProp_icn_tt_3_Tab_TownInfo_text_0();
  1535. __setProp_icn_tt_1_Tab_TownInfo_text_0();
  1536. __setProp_icn_tt_2_Tab_TownInfo_text_0();
  1537. __setProp_icon_info_Tab_TownInfo_text_0();
  1538. __setProp_icon_habitants_Tab_TownInfo_icons_0();
  1539. __setProp_icon_townattack_Tab_TownInfo_icons_0();
  1540. __setProp_icon_settler_Tab_TownInfo_icons_0();
  1541. __setProp_icn_tt_5_Tab_TownInfo_icons_0();
  1542. __setProp_icon_soldier01_Tab_TownInfo_icons_0();
  1543. __setProp_icn_tt_0_Tab_TownInfo_icons_0();
  1544. __setProp_icn_tt_6_Tab_TownInfo_icons_0();
  1545. __setProp_icn_tt_7_Tab_TownInfo_icons_0();
  1546. __setProp_icn_tt_4_Tab_TownInfo_icons_0();
  1547. __setProp_icon_arrow_habitants_Tab_TownInfo_icons_0();
  1548. __setProp_icon_rep_Tab_TownInfo_rep_ani_0();
  1549. }
  1550. function __setProp_icon_nationflag_Tab_TownInfo_icon_flag_0(){
  1551. try {
  1552. icon_nationflag["componentInspectorSetting"] = true;
  1553. } catch(e:Error) {
  1554. };
  1555. icon_nationflag.buttonType = "normal";
  1556. icon_nationflag.enabled = true;
  1557. icon_nationflag.instaPress = false;
  1558. icon_nationflag.isComponent = true;
  1559. icon_nationflag.mouseWheel = false;
  1560. icon_nationflag.navDown = "";
  1561. icon_nationflag.navLeft = "";
  1562. icon_nationflag.navRight = "";
  1563. icon_nationflag.navTabBackward = "";
  1564. icon_nationflag.navTabForward = "";
  1565. icon_nationflag.navUp = "";
  1566. icon_nationflag.pressAction = "PRESS";
  1567. icon_nationflag.repeatDelay = 0;
  1568. icon_nationflag.repeatRate = 0;
  1569. icon_nationflag.soundFocus = "";
  1570. icon_nationflag.soundPressNeg = "";
  1571. icon_nationflag.soundPressPos = "";
  1572. icon_nationflag.tooltipRes = "";
  1573. icon_nationflag.unfocusedInput = false;
  1574. icon_nationflag.visible = true;
  1575. try {
  1576. icon_nationflag["componentInspectorSetting"] = false;
  1577. } catch(e:Error) {
  1578. };
  1579. }
  1580. function __setProp_icon_towntype_Tab_TownInfo_icon_town_0(){
  1581. try {
  1582. icon_towntype["componentInspectorSetting"] = true;
  1583. } catch(e:Error) {
  1584. };
  1585. icon_towntype.buttonType = "normal";
  1586. icon_towntype.enabled = true;
  1587. icon_towntype.instaPress = false;
  1588. icon_towntype.isComponent = true;
  1589. icon_towntype.mouseWheel = false;
  1590. icon_towntype.navDown = "";
  1591. icon_towntype.navLeft = "";
  1592. icon_towntype.navRight = "";
  1593. icon_towntype.navTabBackward = "";
  1594. icon_towntype.navTabForward = "";
  1595. icon_towntype.navUp = "";
  1596. icon_towntype.pressAction = "PRESS";
  1597. icon_towntype.repeatDelay = 0;
  1598. icon_towntype.repeatRate = 0;
  1599. icon_towntype.soundFocus = "";
  1600. icon_towntype.soundPressNeg = "";
  1601. icon_towntype.soundPressPos = "";
  1602. icon_towntype.tooltipRes = "";
  1603. icon_towntype.unfocusedInput = false;
  1604. icon_towntype.visible = true;
  1605. try {
  1606. icon_towntype["componentInspectorSetting"] = false;
  1607. } catch(e:Error) {
  1608. };
  1609. }
  1610. function __setProp_icon_town_Tab_TownInfo_icon_town_0(){
  1611. try {
  1612. icon_town["componentInspectorSetting"] = true;
  1613. } catch(e:Error) {
  1614. };
  1615. icon_town.buttonType = "normal";
  1616. icon_town.enabled = true;
  1617. icon_town.instaPress = false;
  1618. icon_town.isComponent = true;
  1619. icon_town.mouseWheel = false;
  1620. icon_town.navDown = "";
  1621. icon_town.navLeft = "";
  1622. icon_town.navRight = "";
  1623. icon_town.navTabBackward = "";
  1624. icon_town.navTabForward = "";
  1625. icon_town.navUp = "";
  1626. icon_town.pressAction = "PRESS";
  1627. icon_town.repeatDelay = 0;
  1628. icon_town.repeatRate = 0;
  1629. icon_town.soundFocus = "";
  1630. icon_town.soundPressNeg = "";
  1631. icon_town.soundPressPos = "";
  1632. icon_town.tooltipRes = "";
  1633. icon_town.unfocusedInput = false;
  1634. icon_town.visible = true;
  1635. try {
  1636. icon_town["componentInspectorSetting"] = false;
  1637. } catch(e:Error) {
  1638. };
  1639. }
  1640. function __setProp_icon_production_ware_0_Tab_TownInfo_icons_ware_0(){
  1641. try {
  1642. icon_production_ware_0["componentInspectorSetting"] = true;
  1643. } catch(e:Error) {
  1644. };
  1645. icon_production_ware_0.buttonType = "normal";
  1646. icon_production_ware_0.enabled = true;
  1647. icon_production_ware_0.instaPress = false;
  1648. icon_production_ware_0.isComponent = true;
  1649. icon_production_ware_0.mouseWheel = false;
  1650. icon_production_ware_0.navDown = "";
  1651. icon_production_ware_0.navLeft = "";
  1652. icon_production_ware_0.navRight = "";
  1653. icon_production_ware_0.navTabBackward = "";
  1654. icon_production_ware_0.navTabForward = "";
  1655. icon_production_ware_0.navUp = "";
  1656. icon_production_ware_0.pressAction = "PRESS";
  1657. icon_production_ware_0.repeatDelay = 0;
  1658. icon_production_ware_0.repeatRate = 0;
  1659. icon_production_ware_0.soundFocus = "";
  1660. icon_production_ware_0.soundPressNeg = "";
  1661. icon_production_ware_0.soundPressPos = "";
  1662. icon_production_ware_0.tooltipRes = "$GOODS";
  1663. icon_production_ware_0.unfocusedInput = false;
  1664. icon_production_ware_0.visible = true;
  1665. try {
  1666. icon_production_ware_0["componentInspectorSetting"] = false;
  1667. } catch(e:Error) {
  1668. };
  1669. }
  1670. function __setProp_icon_production_ware_1_Tab_TownInfo_icons_ware_0(){
  1671. try {
  1672. icon_production_ware_1["componentInspectorSetting"] = true;
  1673. } catch(e:Error) {
  1674. };
  1675. icon_production_ware_1.buttonType = "normal";
  1676. icon_production_ware_1.enabled = true;
  1677. icon_production_ware_1.instaPress = false;
  1678. icon_production_ware_1.isComponent = true;
  1679. icon_production_ware_1.mouseWheel = false;
  1680. icon_production_ware_1.navDown = "";
  1681. icon_production_ware_1.navLeft = "";
  1682. icon_production_ware_1.navRight = "";
  1683. icon_production_ware_1.navTabBackward = "";
  1684. icon_production_ware_1.navTabForward = "";
  1685. icon_production_ware_1.navUp = "";
  1686. icon_production_ware_1.pressAction = "PRESS";
  1687. icon_production_ware_1.repeatDelay = 0;
  1688. icon_production_ware_1.repeatRate = 0;
  1689. icon_production_ware_1.soundFocus = "";
  1690. icon_production_ware_1.soundPressNeg = "";
  1691. icon_production_ware_1.soundPressPos = "";
  1692. icon_production_ware_1.tooltipRes = "$GOODS";
  1693. icon_production_ware_1.unfocusedInput = false;
  1694. icon_production_ware_1.visible = true;
  1695. try {
  1696. icon_production_ware_1["componentInspectorSetting"] = false;
  1697. } catch(e:Error) {
  1698. };
  1699. }
  1700. function __setProp_icon_production_ware_2_Tab_TownInfo_icons_ware_0(){
  1701. try {
  1702. icon_production_ware_2["componentInspectorSetting"] = true;
  1703. } catch(e:Error) {
  1704. };
  1705. icon_production_ware_2.buttonType = "normal";
  1706. icon_production_ware_2.enabled = true;
  1707. icon_production_ware_2.instaPress = false;
  1708. icon_production_ware_2.isComponent = true;
  1709. icon_production_ware_2.mouseWheel = false;
  1710. icon_production_ware_2.navDown = "";
  1711. icon_production_ware_2.navLeft = "";
  1712. icon_production_ware_2.navRight = "";
  1713. icon_production_ware_2.navTabBackward = "";
  1714. icon_production_ware_2.navTabForward = "";
  1715. icon_production_ware_2.navUp = "";
  1716. icon_production_ware_2.pressAction = "PRESS";
  1717. icon_production_ware_2.repeatDelay = 0;
  1718. icon_production_ware_2.repeatRate = 0;
  1719. icon_production_ware_2.soundFocus = "";
  1720. icon_production_ware_2.soundPressNeg = "";
  1721. icon_production_ware_2.soundPressPos = "";
  1722. icon_production_ware_2.tooltipRes = "$GOODS";
  1723. icon_production_ware_2.unfocusedInput = false;
  1724. icon_production_ware_2.visible = true;
  1725. try {
  1726. icon_production_ware_2["componentInspectorSetting"] = false;
  1727. } catch(e:Error) {
  1728. };
  1729. }
  1730. function __setProp_icon_production_ware_3_Tab_TownInfo_icons_ware_0(){
  1731. try {
  1732. icon_production_ware_3["componentInspectorSetting"] = true;
  1733. } catch(e:Error) {
  1734. };
  1735. icon_production_ware_3.buttonType = "normal";
  1736. icon_production_ware_3.enabled = true;
  1737. icon_production_ware_3.instaPress = false;
  1738. icon_production_ware_3.isComponent = true;
  1739. icon_production_ware_3.mouseWheel = false;
  1740. icon_production_ware_3.navDown = "";
  1741. icon_production_ware_3.navLeft = "";
  1742. icon_production_ware_3.navRight = "";
  1743. icon_production_ware_3.navTabBackward = "";
  1744. icon_production_ware_3.navTabForward = "";
  1745. icon_production_ware_3.navUp = "";
  1746. icon_production_ware_3.pressAction = "PRESS";
  1747. icon_production_ware_3.repeatDelay = 0;
  1748. icon_production_ware_3.repeatRate = 0;
  1749. icon_production_ware_3.soundFocus = "";
  1750. icon_production_ware_3.soundPressNeg = "";
  1751. icon_production_ware_3.soundPressPos = "";
  1752. icon_production_ware_3.tooltipRes = "$GOODS";
  1753. icon_production_ware_3.unfocusedInput = false;
  1754. icon_production_ware_3.visible = true;
  1755. try {
  1756. icon_production_ware_3["componentInspectorSetting"] = false;
  1757. } catch(e:Error) {
  1758. };
  1759. }
  1760. function __setProp_icon_production_ware_4_Tab_TownInfo_icons_ware_0(){
  1761. try {
  1762. icon_production_ware_4["componentInspectorSetting"] = true;
  1763. } catch(e:Error) {
  1764. };
  1765. icon_production_ware_4.buttonType = "normal";
  1766. icon_production_ware_4.enabled = true;
  1767. icon_production_ware_4.instaPress = false;
  1768. icon_production_ware_4.isComponent = true;
  1769. icon_production_ware_4.mouseWheel = false;
  1770. icon_production_ware_4.navDown = "";
  1771. icon_production_ware_4.navLeft = "";
  1772. icon_production_ware_4.navRight = "";
  1773. icon_production_ware_4.navTabBackward = "";
  1774. icon_production_ware_4.navTabForward = "";
  1775. icon_production_ware_4.navUp = "";
  1776. icon_production_ware_4.pressAction = "PRESS";
  1777. icon_production_ware_4.repeatDelay = 0;
  1778. icon_production_ware_4.repeatRate = 0;
  1779. icon_production_ware_4.soundFocus = "";
  1780. icon_production_ware_4.soundPressNeg = "";
  1781. icon_production_ware_4.soundPressPos = "";
  1782. icon_production_ware_4.tooltipRes = "$GOODS";
  1783. icon_production_ware_4.unfocusedInput = false;
  1784. icon_production_ware_4.visible = true;
  1785. try {
  1786. icon_production_ware_4["componentInspectorSetting"] = false;
  1787. } catch(e:Error) {
  1788. };
  1789. }
  1790. function __setProp_tf_nationinfo_Tab_TownInfo_text_0(){
  1791. try {
  1792. tf_nationinfo["componentInspectorSetting"] = true;
  1793. } catch(e:Error) {
  1794. };
  1795. tf_nationinfo.autosizeX = false;
  1796. tf_nationinfo.autosizeY = false;
  1797. tf_nationinfo.bold = false;
  1798. tf_nationinfo.colorRes = "ID_GUI_DEF_COLOR_DEFAULT";
  1799. tf_nationinfo.enabled = true;
  1800. tf_nationinfo.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  1801. tf_nationinfo.fontSize = 0;
  1802. tf_nationinfo.htmlText = false;
  1803. tf_nationinfo.isComponent = true;
  1804. tf_nationinfo.italic = false;
  1805. tf_nationinfo.mouseWheel = false;
  1806. tf_nationinfo.navDown = "";
  1807. tf_nationinfo.navLeft = "";
  1808. tf_nationinfo.navRight = "";
  1809. tf_nationinfo.navTabBackward = "";
  1810. tf_nationinfo.navTabForward = "";
  1811. tf_nationinfo.navUp = "";
  1812. tf_nationinfo.pressAction = "PRESS";
  1813. tf_nationinfo.repeatDelay = 0;
  1814. tf_nationinfo.repeatRate = 0;
  1815. tf_nationinfo.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  1816. tf_nationinfo.textAlignH = "left";
  1817. tf_nationinfo.textAlignV = 0;
  1818. tf_nationinfo.textRes = "";
  1819. tf_nationinfo.tooltipRes = "";
  1820. tf_nationinfo.underline = false;
  1821. tf_nationinfo.unfocusedInput = false;
  1822. tf_nationinfo.visible = true;
  1823. try {
  1824. tf_nationinfo["componentInspectorSetting"] = false;
  1825. } catch(e:Error) {
  1826. };
  1827. }
  1828. function __setProp_tf_towndesc_Tab_TownInfo_text_0(){
  1829. try {
  1830. tf_towndesc["componentInspectorSetting"] = true;
  1831. } catch(e:Error) {
  1832. };
  1833. tf_towndesc.autosizeX = false;
  1834. tf_towndesc.autosizeY = false;
  1835. tf_towndesc.bold = false;
  1836. tf_towndesc.colorRes = "ID_GUI_DEF_COLOR_DEFAULT";
  1837. tf_towndesc.enabled = true;
  1838. tf_towndesc.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  1839. tf_towndesc.fontSize = 0;
  1840. tf_towndesc.htmlText = false;
  1841. tf_towndesc.isComponent = true;
  1842. tf_towndesc.italic = false;
  1843. tf_towndesc.mouseWheel = false;
  1844. tf_towndesc.navDown = "";
  1845. tf_towndesc.navLeft = "";
  1846. tf_towndesc.navRight = "";
  1847. tf_towndesc.navTabBackward = "";
  1848. tf_towndesc.navTabForward = "";
  1849. tf_towndesc.navUp = "";
  1850. tf_towndesc.pressAction = "PRESS";
  1851. tf_towndesc.repeatDelay = 0;
  1852. tf_towndesc.repeatRate = 0;
  1853. tf_towndesc.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  1854. tf_towndesc.textAlignH = "left";
  1855. tf_towndesc.textAlignV = 0;
  1856. tf_towndesc.textRes = "";
  1857. tf_towndesc.tooltipRes = "";
  1858. tf_towndesc.underline = false;
  1859. tf_towndesc.unfocusedInput = false;
  1860. tf_towndesc.visible = true;
  1861. try {
  1862. tf_towndesc["componentInspectorSetting"] = false;
  1863. } catch(e:Error) {
  1864. };
  1865. }
  1866. function __setProp_tf_subheadline_status_Tab_TownInfo_text_0(){
  1867. try {
  1868. tf_subheadline_status["componentInspectorSetting"] = true;
  1869. } catch(e:Error) {
  1870. };
  1871. tf_subheadline_status.autosizeX = false;
  1872. tf_subheadline_status.autosizeY = false;
  1873. tf_subheadline_status.bold = false;
  1874. tf_subheadline_status.colorRes = "ID_GUI_DEF_COLOR_DIALOG_SUBHEADLINE";
  1875. tf_subheadline_status.enabled = true;
  1876. tf_subheadline_status.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  1877. tf_subheadline_status.fontSize = 0;
  1878. tf_subheadline_status.htmlText = false;
  1879. tf_subheadline_status.isComponent = true;
  1880. tf_subheadline_status.italic = false;
  1881. tf_subheadline_status.mouseWheel = false;
  1882. tf_subheadline_status.navDown = "";
  1883. tf_subheadline_status.navLeft = "";
  1884. tf_subheadline_status.navRight = "";
  1885. tf_subheadline_status.navTabBackward = "";
  1886. tf_subheadline_status.navTabForward = "";
  1887. tf_subheadline_status.navUp = "";
  1888. tf_subheadline_status.pressAction = "PRESS";
  1889. tf_subheadline_status.repeatDelay = 0;
  1890. tf_subheadline_status.repeatRate = 0;
  1891. tf_subheadline_status.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  1892. tf_subheadline_status.textAlignH = "center";
  1893. tf_subheadline_status.textAlignV = 0;
  1894. tf_subheadline_status.textRes = "ID_GUI_TAB_TOWNINFO_STATUS";
  1895. tf_subheadline_status.tooltipRes = "";
  1896. tf_subheadline_status.underline = false;
  1897. tf_subheadline_status.unfocusedInput = false;
  1898. tf_subheadline_status.visible = true;
  1899. try {
  1900. tf_subheadline_status["componentInspectorSetting"] = false;
  1901. } catch(e:Error) {
  1902. };
  1903. }
  1904. function __setProp_tf_subheadline_production_Tab_TownInfo_text_0(){
  1905. try {
  1906. tf_subheadline_production["componentInspectorSetting"] = true;
  1907. } catch(e:Error) {
  1908. };
  1909. tf_subheadline_production.autosizeX = false;
  1910. tf_subheadline_production.autosizeY = false;
  1911. tf_subheadline_production.bold = false;
  1912. tf_subheadline_production.colorRes = "ID_GUI_DEF_COLOR_DIALOG_SUBHEADLINE";
  1913. tf_subheadline_production.enabled = true;
  1914. tf_subheadline_production.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  1915. tf_subheadline_production.fontSize = 0;
  1916. tf_subheadline_production.htmlText = false;
  1917. tf_subheadline_production.isComponent = true;
  1918. tf_subheadline_production.italic = false;
  1919. tf_subheadline_production.mouseWheel = false;
  1920. tf_subheadline_production.navDown = "";
  1921. tf_subheadline_production.navLeft = "";
  1922. tf_subheadline_production.navRight = "";
  1923. tf_subheadline_production.navTabBackward = "";
  1924. tf_subheadline_production.navTabForward = "";
  1925. tf_subheadline_production.navUp = "";
  1926. tf_subheadline_production.pressAction = "PRESS";
  1927. tf_subheadline_production.repeatDelay = 0;
  1928. tf_subheadline_production.repeatRate = 0;
  1929. tf_subheadline_production.soundFocus = "";
  1930. tf_subheadline_production.textAlignH = "center";
  1931. tf_subheadline_production.textAlignV = 0;
  1932. tf_subheadline_production.textRes = "ID_GUI_TAB_TOWNINFO_PRODUCTION";
  1933. tf_subheadline_production.tooltipRes = "";
  1934. tf_subheadline_production.underline = false;
  1935. tf_subheadline_production.unfocusedInput = false;
  1936. tf_subheadline_production.visible = true;
  1937. try {
  1938. tf_subheadline_production["componentInspectorSetting"] = false;
  1939. } catch(e:Error) {
  1940. };
  1941. }
  1942. function __setProp_tf_subheadline_player_Tab_TownInfo_text_0(){
  1943. try {
  1944. tf_subheadline_player["componentInspectorSetting"] = true;
  1945. } catch(e:Error) {
  1946. };
  1947. tf_subheadline_player.autosizeX = false;
  1948. tf_subheadline_player.autosizeY = false;
  1949. tf_subheadline_player.bold = false;
  1950. tf_subheadline_player.colorRes = "ID_GUI_DEF_COLOR_DIALOG_SUBHEADLINE";
  1951. tf_subheadline_player.enabled = true;
  1952. tf_subheadline_player.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  1953. tf_subheadline_player.fontSize = 0;
  1954. tf_subheadline_player.htmlText = false;
  1955. tf_subheadline_player.isComponent = true;
  1956. tf_subheadline_player.italic = false;
  1957. tf_subheadline_player.mouseWheel = false;
  1958. tf_subheadline_player.navDown = "";
  1959. tf_subheadline_player.navLeft = "";
  1960. tf_subheadline_player.navRight = "";
  1961. tf_subheadline_player.navTabBackward = "";
  1962. tf_subheadline_player.navTabForward = "";
  1963. tf_subheadline_player.navUp = "";
  1964. tf_subheadline_player.pressAction = "PRESS";
  1965. tf_subheadline_player.repeatDelay = 0;
  1966. tf_subheadline_player.repeatRate = 0;
  1967. tf_subheadline_player.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  1968. tf_subheadline_player.textAlignH = "center";
  1969. tf_subheadline_player.textAlignV = 0;
  1970. tf_subheadline_player.textRes = "ID_GUI_TAB_TOWNINFO_PLAYER";
  1971. tf_subheadline_player.tooltipRes = "";
  1972. tf_subheadline_player.underline = false;
  1973. tf_subheadline_player.unfocusedInput = false;
  1974. tf_subheadline_player.visible = true;
  1975. try {
  1976. tf_subheadline_player["componentInspectorSetting"] = false;
  1977. } catch(e:Error) {
  1978. };
  1979. }
  1980. function __setProp_icn_tt_3_Tab_TownInfo_text_0(){
  1981. try {
  1982. icn_tt_3["componentInspectorSetting"] = true;
  1983. } catch(e:Error) {
  1984. };
  1985. icn_tt_3.buttonType = "normal";
  1986. icn_tt_3.enabled = true;
  1987. icn_tt_3.instaPress = false;
  1988. icn_tt_3.isComponent = true;
  1989. icn_tt_3.mouseWheel = false;
  1990. icn_tt_3.navDown = "";
  1991. icn_tt_3.navLeft = "";
  1992. icn_tt_3.navRight = "";
  1993. icn_tt_3.navTabBackward = "";
  1994. icn_tt_3.navTabForward = "";
  1995. icn_tt_3.navUp = "";
  1996. icn_tt_3.pressAction = "PRESS";
  1997. icn_tt_3.repeatDelay = 0;
  1998. icn_tt_3.repeatRate = 0;
  1999. icn_tt_3.soundFocus = "";
  2000. icn_tt_3.soundPressNeg = "";
  2001. icn_tt_3.soundPressPos = "";
  2002. icn_tt_3.tooltipRes = "ID_GUI_TT_ICON_RESIDENTIAL_OCCUPANCY";
  2003. icn_tt_3.unfocusedInput = false;
  2004. icn_tt_3.visible = true;
  2005. try {
  2006. icn_tt_3["componentInspectorSetting"] = false;
  2007. } catch(e:Error) {
  2008. };
  2009. }
  2010. function __setProp_icn_tt_1_Tab_TownInfo_text_0(){
  2011. try {
  2012. icn_tt_1["componentInspectorSetting"] = true;
  2013. } catch(e:Error) {
  2014. };
  2015. icn_tt_1.buttonType = "normal";
  2016. icn_tt_1.enabled = true;
  2017. icn_tt_1.instaPress = false;
  2018. icn_tt_1.isComponent = true;
  2019. icn_tt_1.mouseWheel = false;
  2020. icn_tt_1.navDown = "";
  2021. icn_tt_1.navLeft = "";
  2022. icn_tt_1.navRight = "";
  2023. icn_tt_1.navTabBackward = "";
  2024. icn_tt_1.navTabForward = "";
  2025. icn_tt_1.navUp = "";
  2026. icn_tt_1.pressAction = "PRESS";
  2027. icn_tt_1.repeatDelay = 0;
  2028. icn_tt_1.repeatRate = 0;
  2029. icn_tt_1.soundFocus = "";
  2030. icn_tt_1.soundPressNeg = "";
  2031. icn_tt_1.soundPressPos = "";
  2032. icn_tt_1.tooltipRes = "ID_GUI_TT_ICON_PRODUCTION";
  2033. icn_tt_1.unfocusedInput = false;
  2034. icn_tt_1.visible = true;
  2035. try {
  2036. icn_tt_1["componentInspectorSetting"] = false;
  2037. } catch(e:Error) {
  2038. };
  2039. }
  2040. function __setProp_icn_tt_2_Tab_TownInfo_text_0(){
  2041. try {
  2042. icn_tt_2["componentInspectorSetting"] = true;
  2043. } catch(e:Error) {
  2044. };
  2045. icn_tt_2.buttonType = "normal";
  2046. icn_tt_2.enabled = true;
  2047. icn_tt_2.instaPress = false;
  2048. icn_tt_2.isComponent = true;
  2049. icn_tt_2.mouseWheel = false;
  2050. icn_tt_2.navDown = "";
  2051. icn_tt_2.navLeft = "";
  2052. icn_tt_2.navRight = "";
  2053. icn_tt_2.navTabBackward = "";
  2054. icn_tt_2.navTabForward = "";
  2055. icn_tt_2.navUp = "";
  2056. icn_tt_2.pressAction = "PRESS";
  2057. icn_tt_2.repeatDelay = 0;
  2058. icn_tt_2.repeatRate = 0;
  2059. icn_tt_2.soundFocus = "";
  2060. icn_tt_2.soundPressNeg = "";
  2061. icn_tt_2.soundPressPos = "";
  2062. icn_tt_2.tooltipRes = "ID_GUI_TT_ICON_RESIDENTIAL_NORMAL";
  2063. icn_tt_2.unfocusedInput = false;
  2064. icn_tt_2.visible = true;
  2065. try {
  2066. icn_tt_2["componentInspectorSetting"] = false;
  2067. } catch(e:Error) {
  2068. };
  2069. }
  2070. function __setProp_icon_info_Tab_TownInfo_text_0(){
  2071. try {
  2072. icon_info["componentInspectorSetting"] = true;
  2073. } catch(e:Error) {
  2074. };
  2075. icon_info.buttonType = "normal";
  2076. icon_info.enabled = true;
  2077. icon_info.instaPress = false;
  2078. icon_info.isComponent = true;
  2079. icon_info.mouseWheel = false;
  2080. icon_info.navDown = "";
  2081. icon_info.navLeft = "";
  2082. icon_info.navRight = "";
  2083. icon_info.navTabBackward = "";
  2084. icon_info.navTabForward = "";
  2085. icon_info.navUp = "";
  2086. icon_info.pressAction = "PRESS";
  2087. icon_info.repeatDelay = 0;
  2088. icon_info.repeatRate = 0;
  2089. icon_info.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  2090. icon_info.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  2091. icon_info.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  2092. icon_info.tooltipIsInfo = true;
  2093. icon_info.tooltipRes = "$WEALTH_INFO";
  2094. icon_info.unfocusedInput = false;
  2095. icon_info.visible = true;
  2096. try {
  2097. icon_info["componentInspectorSetting"] = false;
  2098. } catch(e:Error) {
  2099. };
  2100. }
  2101. function __setProp_icon_habitants_Tab_TownInfo_icons_0(){
  2102. try {
  2103. icon_habitants["componentInspectorSetting"] = true;
  2104. } catch(e:Error) {
  2105. };
  2106. icon_habitants.buttonType = "normal";
  2107. icon_habitants.enabled = true;
  2108. icon_habitants.instaPress = false;
  2109. icon_habitants.isComponent = true;
  2110. icon_habitants.mouseWheel = false;
  2111. icon_habitants.navDown = "";
  2112. icon_habitants.navLeft = "";
  2113. icon_habitants.navRight = "";
  2114. icon_habitants.navTabBackward = "";
  2115. icon_habitants.navTabForward = "";
  2116. icon_habitants.navUp = "";
  2117. icon_habitants.pressAction = "PRESS";
  2118. icon_habitants.repeatDelay = 0;
  2119. icon_habitants.repeatRate = 0;
  2120. icon_habitants.soundFocus = "";
  2121. icon_habitants.soundPressNeg = "";
  2122. icon_habitants.soundPressPos = "";
  2123. icon_habitants.tooltipRes = "ID_GUI_TT_ICON_HABITANTS";
  2124. icon_habitants.unfocusedInput = false;
  2125. icon_habitants.visible = true;
  2126. try {
  2127. icon_habitants["componentInspectorSetting"] = false;
  2128. } catch(e:Error) {
  2129. };
  2130. }
  2131. function __setProp_icon_townattack_Tab_TownInfo_icons_0(){
  2132. try {
  2133. icon_townattack["componentInspectorSetting"] = true;
  2134. } catch(e:Error) {
  2135. };
  2136. icon_townattack.buttonType = "normal";
  2137. icon_townattack.enabled = true;
  2138. icon_townattack.instaPress = false;
  2139. icon_townattack.isComponent = true;
  2140. icon_townattack.mouseWheel = false;
  2141. icon_townattack.navDown = "";
  2142. icon_townattack.navLeft = "";
  2143. icon_townattack.navRight = "";
  2144. icon_townattack.navTabBackward = "";
  2145. icon_townattack.navTabForward = "";
  2146. icon_townattack.navUp = "";
  2147. icon_townattack.pressAction = "PRESS";
  2148. icon_townattack.repeatDelay = 0;
  2149. icon_townattack.repeatRate = 0;
  2150. icon_townattack.soundFocus = "";
  2151. icon_townattack.soundPressNeg = "";
  2152. icon_townattack.soundPressPos = "";
  2153. icon_townattack.tooltipRes = "ID_GUI_TT_ICON_TOWNDEFENCE";
  2154. icon_townattack.unfocusedInput = false;
  2155. icon_townattack.visible = true;
  2156. try {
  2157. icon_townattack["componentInspectorSetting"] = false;
  2158. } catch(e:Error) {
  2159. };
  2160. }
  2161. function __setProp_icon_settler_Tab_TownInfo_icons_0(){
  2162. try {
  2163. icon_settler["componentInspectorSetting"] = true;
  2164. } catch(e:Error) {
  2165. };
  2166. icon_settler.buttonType = "normal";
  2167. icon_settler.enabled = true;
  2168. icon_settler.instaPress = false;
  2169. icon_settler.isComponent = true;
  2170. icon_settler.mouseWheel = false;
  2171. icon_settler.navDown = "";
  2172. icon_settler.navLeft = "";
  2173. icon_settler.navRight = "";
  2174. icon_settler.navTabBackward = "";
  2175. icon_settler.navTabForward = "";
  2176. icon_settler.navUp = "";
  2177. icon_settler.pressAction = "PRESS";
  2178. icon_settler.repeatDelay = 0;
  2179. icon_settler.repeatRate = 0;
  2180. icon_settler.soundFocus = "";
  2181. icon_settler.soundPressNeg = "";
  2182. icon_settler.soundPressPos = "";
  2183. icon_settler.tooltipRes = "ID_GUI_TT_ICON_SETTLER";
  2184. icon_settler.unfocusedInput = false;
  2185. icon_settler.visible = true;
  2186. try {
  2187. icon_settler["componentInspectorSetting"] = false;
  2188. } catch(e:Error) {
  2189. };
  2190. }
  2191. function __setProp_icn_tt_5_Tab_TownInfo_icons_0(){
  2192. try {
  2193. icn_tt_5["componentInspectorSetting"] = true;
  2194. } catch(e:Error) {
  2195. };
  2196. icn_tt_5.buttonType = "normal";
  2197. icn_tt_5.enabled = true;
  2198. icn_tt_5.instaPress = false;
  2199. icn_tt_5.isComponent = true;
  2200. icn_tt_5.mouseWheel = false;
  2201. icn_tt_5.navDown = "";
  2202. icn_tt_5.navLeft = "";
  2203. icn_tt_5.navRight = "";
  2204. icn_tt_5.navTabBackward = "";
  2205. icn_tt_5.navTabForward = "";
  2206. icn_tt_5.navUp = "";
  2207. icn_tt_5.pressAction = "PRESS";
  2208. icn_tt_5.repeatDelay = 0;
  2209. icn_tt_5.repeatRate = 0;
  2210. icn_tt_5.soundFocus = "";
  2211. icn_tt_5.soundPressNeg = "";
  2212. icn_tt_5.soundPressPos = "";
  2213. icn_tt_5.tooltipRes = "ID_GUI_TT_ICON_WAREHOUSES_COUNT";
  2214. icn_tt_5.unfocusedInput = false;
  2215. icn_tt_5.visible = true;
  2216. try {
  2217. icn_tt_5["componentInspectorSetting"] = false;
  2218. } catch(e:Error) {
  2219. };
  2220. }
  2221. function __setProp_icon_soldier01_Tab_TownInfo_icons_0(){
  2222. try {
  2223. icon_soldier01["componentInspectorSetting"] = true;
  2224. } catch(e:Error) {
  2225. };
  2226. icon_soldier01.buttonType = "normal";
  2227. icon_soldier01.enabled = true;
  2228. icon_soldier01.instaPress = false;
  2229. icon_soldier01.isComponent = true;
  2230. icon_soldier01.mouseWheel = false;
  2231. icon_soldier01.navDown = "";
  2232. icon_soldier01.navLeft = "";
  2233. icon_soldier01.navRight = "";
  2234. icon_soldier01.navTabBackward = "";
  2235. icon_soldier01.navTabForward = "";
  2236. icon_soldier01.navUp = "";
  2237. icon_soldier01.pressAction = "PRESS";
  2238. icon_soldier01.repeatDelay = 0;
  2239. icon_soldier01.repeatRate = 0;
  2240. icon_soldier01.soundFocus = "";
  2241. icon_soldier01.soundPressNeg = "";
  2242. icon_soldier01.soundPressPos = "";
  2243. icon_soldier01.tooltipRes = "ID_GUI_TT_ICON_SOLDIER";
  2244. icon_soldier01.unfocusedInput = false;
  2245. icon_soldier01.visible = true;
  2246. try {
  2247. icon_soldier01["componentInspectorSetting"] = false;
  2248. } catch(e:Error) {
  2249. };
  2250. }
  2251. function __setProp_icn_tt_0_Tab_TownInfo_icons_0(){
  2252. try {
  2253. icn_tt_0["componentInspectorSetting"] = true;
  2254. } catch(e:Error) {
  2255. };
  2256. icn_tt_0.buttonType = "normal";
  2257. icn_tt_0.enabled = true;
  2258. icn_tt_0.instaPress = false;
  2259. icn_tt_0.isComponent = true;
  2260. icn_tt_0.mouseWheel = false;
  2261. icn_tt_0.navDown = "";
  2262. icn_tt_0.navLeft = "";
  2263. icn_tt_0.navRight = "";
  2264. icn_tt_0.navTabBackward = "";
  2265. icn_tt_0.navTabForward = "";
  2266. icn_tt_0.navUp = "";
  2267. icn_tt_0.pressAction = "PRESS";
  2268. icn_tt_0.repeatDelay = 0;
  2269. icn_tt_0.repeatRate = 0;
  2270. icn_tt_0.soundFocus = "";
  2271. icn_tt_0.soundPressNeg = "";
  2272. icn_tt_0.soundPressPos = "";
  2273. icn_tt_0.tooltipRes = "ID_GUI_TT_VISUAL_ICONBUTTON_SETTLERSTATE";
  2274. icn_tt_0.unfocusedInput = false;
  2275. icn_tt_0.visible = true;
  2276. try {
  2277. icn_tt_0["componentInspectorSetting"] = false;
  2278. } catch(e:Error) {
  2279. };
  2280. }
  2281. function __setProp_icn_tt_6_Tab_TownInfo_icons_0(){
  2282. try {
  2283. icn_tt_6["componentInspectorSetting"] = true;
  2284. } catch(e:Error) {
  2285. };
  2286. icn_tt_6.buttonType = "normal";
  2287. icn_tt_6.enabled = true;
  2288. icn_tt_6.instaPress = false;
  2289. icn_tt_6.isComponent = true;
  2290. icn_tt_6.mouseWheel = false;
  2291. icn_tt_6.navDown = "";
  2292. icn_tt_6.navLeft = "";
  2293. icn_tt_6.navRight = "";
  2294. icn_tt_6.navTabBackward = "";
  2295. icn_tt_6.navTabForward = "";
  2296. icn_tt_6.navUp = "";
  2297. icn_tt_6.pressAction = "PRESS";
  2298. icn_tt_6.repeatDelay = 0;
  2299. icn_tt_6.repeatRate = 0;
  2300. icn_tt_6.soundFocus = "";
  2301. icn_tt_6.soundPressNeg = "";
  2302. icn_tt_6.soundPressPos = "";
  2303. icn_tt_6.tooltipRes = "ID_GUI_TT_ICON_PRODUCTION";
  2304. icn_tt_6.unfocusedInput = false;
  2305. icn_tt_6.visible = true;
  2306. try {
  2307. icn_tt_6["componentInspectorSetting"] = false;
  2308. } catch(e:Error) {
  2309. };
  2310. }
  2311. function __setProp_icn_tt_7_Tab_TownInfo_icons_0(){
  2312. try {
  2313. icn_tt_7["componentInspectorSetting"] = true;
  2314. } catch(e:Error) {
  2315. };
  2316. icn_tt_7.buttonType = "normal";
  2317. icn_tt_7.enabled = true;
  2318. icn_tt_7.instaPress = false;
  2319. icn_tt_7.isComponent = true;
  2320. icn_tt_7.mouseWheel = false;
  2321. icn_tt_7.navDown = "";
  2322. icn_tt_7.navLeft = "";
  2323. icn_tt_7.navRight = "";
  2324. icn_tt_7.navTabBackward = "";
  2325. icn_tt_7.navTabForward = "";
  2326. icn_tt_7.navUp = "";
  2327. icn_tt_7.pressAction = "PRESS";
  2328. icn_tt_7.repeatDelay = 0;
  2329. icn_tt_7.repeatRate = 0;
  2330. icn_tt_7.soundFocus = "";
  2331. icn_tt_7.soundPressNeg = "";
  2332. icn_tt_7.soundPressPos = "";
  2333. icn_tt_7.tooltipRes = "ID_GUI_TT_ICON_RESIDENTIAL_NORMAL";
  2334. icn_tt_7.unfocusedInput = false;
  2335. icn_tt_7.visible = true;
  2336. try {
  2337. icn_tt_7["componentInspectorSetting"] = false;
  2338. } catch(e:Error) {
  2339. };
  2340. }
  2341. function __setProp_icn_tt_4_Tab_TownInfo_icons_0(){
  2342. try {
  2343. icn_tt_4["componentInspectorSetting"] = true;
  2344. } catch(e:Error) {
  2345. };
  2346. icn_tt_4.buttonType = "normal";
  2347. icn_tt_4.enabled = true;
  2348. icn_tt_4.instaPress = false;
  2349. icn_tt_4.isComponent = true;
  2350. icn_tt_4.mouseWheel = false;
  2351. icn_tt_4.navDown = "";
  2352. icn_tt_4.navLeft = "";
  2353. icn_tt_4.navRight = "";
  2354. icn_tt_4.navTabBackward = "";
  2355. icn_tt_4.navTabForward = "";
  2356. icn_tt_4.navUp = "";
  2357. icn_tt_4.pressAction = "PRESS";
  2358. icn_tt_4.repeatDelay = 0;
  2359. icn_tt_4.repeatRate = 0;
  2360. icn_tt_4.soundFocus = "";
  2361. icn_tt_4.soundPressNeg = "";
  2362. icn_tt_4.soundPressPos = "";
  2363. icn_tt_4.tooltipRes = "ID_GUI_TT_ICON_REPUTATION";
  2364. icn_tt_4.unfocusedInput = false;
  2365. icn_tt_4.visible = true;
  2366. try {
  2367. icn_tt_4["componentInspectorSetting"] = false;
  2368. } catch(e:Error) {
  2369. };
  2370. }
  2371. function __setProp_icon_arrow_habitants_Tab_TownInfo_icons_0(){
  2372. try {
  2373. icon_arrow_habitants["componentInspectorSetting"] = true;
  2374. } catch(e:Error) {
  2375. };
  2376. icon_arrow_habitants.buttonType = "normal";
  2377. icon_arrow_habitants.enabled = true;
  2378. icon_arrow_habitants.instaPress = false;
  2379. icon_arrow_habitants.isComponent = true;
  2380. icon_arrow_habitants.mouseWheel = false;
  2381. icon_arrow_habitants.navDown = "";
  2382. icon_arrow_habitants.navLeft = "";
  2383. icon_arrow_habitants.navRight = "";
  2384. icon_arrow_habitants.navTabBackward = "";
  2385. icon_arrow_habitants.navTabForward = "";
  2386. icon_arrow_habitants.navUp = "";
  2387. icon_arrow_habitants.pressAction = "PRESS";
  2388. icon_arrow_habitants.repeatDelay = 0;
  2389. icon_arrow_habitants.repeatRate = 0;
  2390. icon_arrow_habitants.soundFocus = "";
  2391. icon_arrow_habitants.soundPressNeg = "";
  2392. icon_arrow_habitants.soundPressPos = "";
  2393. icon_arrow_habitants.tooltipRes = "ID_GUI_TT_VISUAL_ICONBUTTON_ARROWUPDOWN";
  2394. icon_arrow_habitants.unfocusedInput = false;
  2395. icon_arrow_habitants.visible = true;
  2396. try {
  2397. icon_arrow_habitants["componentInspectorSetting"] = false;
  2398. } catch(e:Error) {
  2399. };
  2400. }
  2401. function __setProp_icon_rep_Tab_TownInfo_rep_ani_0(){
  2402. try {
  2403. icon_rep["componentInspectorSetting"] = true;
  2404. } catch(e:Error) {
  2405. };
  2406. icon_rep.begin = 0;
  2407. icon_rep.duration = 1;
  2408. icon_rep.durationTypeSeconds = true;
  2409. icon_rep.easing = "linear";
  2410. icon_rep.enabled = true;
  2411. icon_rep.finish = 1;
  2412. icon_rep.isComponent = true;
  2413. icon_rep.mouseWheel = false;
  2414. icon_rep.navDown = "";
  2415. icon_rep.navLeft = "";
  2416. icon_rep.navRight = "";
  2417. icon_rep.navTabBackward = "";
  2418. icon_rep.navTabForward = "";
  2419. icon_rep.navUp = "";
  2420. icon_rep.pressAction = "PRESS";
  2421. icon_rep.property = "";
  2422. icon_rep.repeatDelay = 0;
  2423. icon_rep.repeatRate = 0;
  2424. icon_rep.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  2425. icon_rep.tooltipRes = "ID_GUI_TT_ICON_REPUTATION_NATION";
  2426. icon_rep.unfocusedInput = false;
  2427. icon_rep.visible = true;
  2428. try {
  2429. icon_rep["componentInspectorSetting"] = false;
  2430. } catch(e:Error) {
  2431. };
  2432. }
  2433.  
  2434. }
  2435. }//package exports
  2436. package exports {
  2437.  
  2438. public class Visual_Trade_Overlay extends Visual_Trade_Overlay_Base {
  2439.  
  2440. }
  2441. }//package exports
  2442. package exports {
  2443. import flash.display.*;
  2444. import gm.textfield.*;
  2445. import pr3.helpers.simplehorizontalcenterlayout.*;
  2446.  
  2447. public class Visual_Trade_Overlay_Base extends MovieClip {
  2448.  
  2449. private var m_TradeInfoLayout:SimpleHorizontalCenterLayout;
  2450. private var m_TFGold:Textfield;
  2451.  
  2452. public function Visual_Trade_Overlay_Base(){
  2453. m_TradeInfoLayout = new SimpleHorizontalCenterLayout();
  2454. super();
  2455. m_TFGold = (getChildByName("tf_gold") as Textfield);
  2456. m_TradeInfoLayout.addElement(getChildByName("tf_title"));
  2457. m_TradeInfoLayout.addElement(getChildByName("tf_gold"));
  2458. m_TradeInfoLayout.addElement(getChildByName("tf_direction"));
  2459. if (m_TFGold){
  2460. m_TFGold.addEventListener(TextfieldEvent.RESIZE_DONE, onTextUpdate);
  2461. };
  2462. }
  2463. private function onTextUpdate(_arg1:TextfieldEvent):void{
  2464. m_TradeInfoLayout.doLayout();
  2465. }
  2466.  
  2467. }
  2468. }//package exports
  2469. package exports {
  2470. import flash.display.*;
  2471. import gm.*;
  2472. import flash.events.*;
  2473. import components.button.*;
  2474. import pr3.dialog.*;
  2475. import components.list.*;
  2476.  
  2477. public class Tab_TownGoods extends DialogPage {
  2478.  
  2479. public var li_trade:Visual_List_Town_Goods;
  2480. public var infotext:MovieClip;
  2481. public var icon_production:Visual_IconButton_Barrels_Production;
  2482. public var icon_barrel:Visual_IconButton_Town_Storage;
  2483. public var icon_consumption:Visual_IconButton_Barrels_Consumption;
  2484.  
  2485. public function Tab_TownGoods(){
  2486. __setProp_li_trade_Tab_TownGoods_li_towngoods_0();
  2487. __setProp_icon_consumption_Tab_TownGoods_legend_0();
  2488. __setProp_icon_production_Tab_TownGoods_legend_0();
  2489. __setProp_icon_barrel_Tab_TownGoods_legend_0();
  2490. }
  2491. function __setProp_li_trade_Tab_TownGoods_li_towngoods_0(){
  2492. try {
  2493. li_trade["componentInspectorSetting"] = true;
  2494. } catch(e:Error) {
  2495. };
  2496. li_trade.allowDeselect = true;
  2497. li_trade.columns = 1;
  2498. li_trade.dragMarker = false;
  2499. li_trade.dragType = "none";
  2500. li_trade.enabled = true;
  2501. li_trade.enableMouseWheel = true;
  2502. li_trade.isComponent = true;
  2503. li_trade.mouseWheel = true;
  2504. li_trade.navDown = "";
  2505. li_trade.navLeft = "";
  2506. li_trade.navRight = "";
  2507. li_trade.navTabBackward = "";
  2508. li_trade.navTabForward = "";
  2509. li_trade.navUp = "";
  2510. li_trade.noElementButtons = true;
  2511. li_trade.open = false;
  2512. li_trade.pageScroll = true;
  2513. li_trade.pressAction = "PRESS";
  2514. li_trade.repeatDelay = 0;
  2515. li_trade.repeatRate = 0;
  2516. li_trade.resizeableBackground = false;
  2517. li_trade.rows = 9;
  2518. li_trade.selectionType = "none";
  2519. li_trade.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  2520. li_trade.tooltipRes = "";
  2521. li_trade.unfocusedInput = false;
  2522. li_trade.visible = true;
  2523. li_trade.warp = false;
  2524. try {
  2525. li_trade["componentInspectorSetting"] = false;
  2526. } catch(e:Error) {
  2527. };
  2528. }
  2529. function __setProp_icon_consumption_Tab_TownGoods_legend_0(){
  2530. try {
  2531. icon_consumption["componentInspectorSetting"] = true;
  2532. } catch(e:Error) {
  2533. };
  2534. icon_consumption.buttonType = "normal";
  2535. icon_consumption.enabled = true;
  2536. icon_consumption.instaPress = false;
  2537. icon_consumption.isComponent = true;
  2538. icon_consumption.mouseWheel = false;
  2539. icon_consumption.navDown = "";
  2540. icon_consumption.navLeft = "";
  2541. icon_consumption.navRight = "";
  2542. icon_consumption.navTabBackward = "";
  2543. icon_consumption.navTabForward = "";
  2544. icon_consumption.navUp = "";
  2545. icon_consumption.pressAction = "PRESS";
  2546. icon_consumption.repeatDelay = 0;
  2547. icon_consumption.repeatRate = 0;
  2548. icon_consumption.soundFocus = "";
  2549. icon_consumption.soundPressNeg = "";
  2550. icon_consumption.soundPressPos = "";
  2551. icon_consumption.tooltipRes = "ID_GUI_TT_BARRELS_MINUS";
  2552. icon_consumption.unfocusedInput = false;
  2553. icon_consumption.visible = true;
  2554. try {
  2555. icon_consumption["componentInspectorSetting"] = false;
  2556. } catch(e:Error) {
  2557. };
  2558. }
  2559. function __setProp_icon_production_Tab_TownGoods_legend_0(){
  2560. try {
  2561. icon_production["componentInspectorSetting"] = true;
  2562. } catch(e:Error) {
  2563. };
  2564. icon_production.buttonType = "normal";
  2565. icon_production.enabled = true;
  2566. icon_production.instaPress = false;
  2567. icon_production.isComponent = true;
  2568. icon_production.mouseWheel = false;
  2569. icon_production.navDown = "";
  2570. icon_production.navLeft = "";
  2571. icon_production.navRight = "";
  2572. icon_production.navTabBackward = "";
  2573. icon_production.navTabForward = "";
  2574. icon_production.navUp = "";
  2575. icon_production.pressAction = "PRESS";
  2576. icon_production.repeatDelay = 0;
  2577. icon_production.repeatRate = 0;
  2578. icon_production.soundFocus = "";
  2579. icon_production.soundPressNeg = "";
  2580. icon_production.soundPressPos = "";
  2581. icon_production.tooltipRes = "ID_GUI_TT_BARRELS_PLUS";
  2582. icon_production.unfocusedInput = false;
  2583. icon_production.visible = true;
  2584. try {
  2585. icon_production["componentInspectorSetting"] = false;
  2586. } catch(e:Error) {
  2587. };
  2588. }
  2589. function __setProp_icon_barrel_Tab_TownGoods_legend_0(){
  2590. try {
  2591. icon_barrel["componentInspectorSetting"] = true;
  2592. } catch(e:Error) {
  2593. };
  2594. icon_barrel.buttonType = "normal";
  2595. icon_barrel.enabled = true;
  2596. icon_barrel.instaPress = false;
  2597. icon_barrel.isComponent = true;
  2598. icon_barrel.mouseWheel = false;
  2599. icon_barrel.navDown = "";
  2600. icon_barrel.navLeft = "";
  2601. icon_barrel.navRight = "";
  2602. icon_barrel.navTabBackward = "";
  2603. icon_barrel.navTabForward = "";
  2604. icon_barrel.navUp = "";
  2605. icon_barrel.pressAction = "PRESS";
  2606. icon_barrel.repeatDelay = 0;
  2607. icon_barrel.repeatRate = 0;
  2608. icon_barrel.soundFocus = "";
  2609. icon_barrel.soundPressNeg = "";
  2610. icon_barrel.soundPressPos = "";
  2611. icon_barrel.tooltipRes = "ID_GUI_TT_BARRELS_TOWN";
  2612. icon_barrel.unfocusedInput = false;
  2613. icon_barrel.visible = true;
  2614. try {
  2615. icon_barrel["componentInspectorSetting"] = false;
  2616. } catch(e:Error) {
  2617. };
  2618. }
  2619.  
  2620. }
  2621. }//package exports
  2622. package exports {
  2623. import flash.display.*;
  2624. import gm.*;
  2625. import flash.events.*;
  2626. import caurina.transitions.*;
  2627. import gm.textfield.*;
  2628. import gm.element.*;
  2629. import pr3.helpers.simplehorizontalcenterlayout.*;
  2630. import pr3.dialog.*;
  2631.  
  2632. public class Dialog_Tabbed extends Dialog {
  2633.  
  2634. public static const MODE_CONSOLE:uint = 0;
  2635. public static const MODE_PC:uint = 1;
  2636.  
  2637. private var m_HeadlineLayout:SimpleHorizontalCenterLayout;
  2638. private var m_Headline:Textfield;
  2639. private var m_EmptyText:Textfield;
  2640. private var m_TabPad:DisplayObjectContainer;
  2641. private var m_TabMouse:DisplayObjectContainer;
  2642. private var m_BGOneLine:DisplayObjectContainer;
  2643. private var m_BGTwoLine:DisplayObjectContainer;
  2644. private var m_BuTabBackward:DisplayObject;
  2645. private var m_BuTabForward:DisplayObject;
  2646. private var m_TabButtons:Array;
  2647. private var m_TabOffsets:Array;
  2648. private var m_TabOffsetsOrig:Array;
  2649. private var m_CurTab:int = -1;
  2650. private var m_InTransition:Boolean = false;
  2651. private var dir:int = 1;
  2652. private var m_BounceWidth:int = 45;
  2653. private var m_Bounceduration:Number = 0.3;
  2654. private var m_SnapBackDuration:Number = 0.2;
  2655. private var m_MoveDuration:Number = 0.3;
  2656. private var m_ScaleDuration:Number = 0.2;
  2657. private var m_Scale:Number = 1.2;
  2658. private var m_EmptyTextBottomY:int = 0;
  2659.  
  2660. public function Dialog_Tabbed(){
  2661. var mc:* = null;
  2662. var idx:* = 0;
  2663. m_HeadlineLayout = new SimpleHorizontalCenterLayout();
  2664. m_TabButtons = new Array();
  2665. m_TabOffsets = new Array();
  2666. m_TabOffsetsOrig = new Array();
  2667. super();
  2668. m_Headline = (getChildByName("tf_headline") as Textfield);
  2669. m_HeadlineLayout.addElement(getChildByName("mc_ornament_left"));
  2670. m_HeadlineLayout.addElement(getChildByName("tf_headline"));
  2671. m_HeadlineLayout.addElement(getChildByName("mc_ornament_right"));
  2672. if (m_Headline){
  2673. m_Headline.addEventListener(TextfieldEvent.RESIZE_DONE, onHeadlineTextUpdated);
  2674. };
  2675. m_EmptyText = (DisplayObjectContainer(getChildByName("picture_bg")).getChildByName("mctext") as Textfield);
  2676. if (m_EmptyText){
  2677. m_EmptyText.addEventListener(TextfieldEvent.RESIZE_DONE, onEmptyTextUpdated);
  2678. m_EmptyTextBottomY = (m_EmptyText.y + m_EmptyText.height);
  2679. trace("foundtext");
  2680. };
  2681. m_TabPad = ((getChildByName("el_tab_buttons_pad")) ? (getChildByName("el_tab_buttons_pad") as DisplayObjectContainer) : null);
  2682. m_TabMouse = ((getChildByName("el_tab_buttons_mouse")) ? (getChildByName("el_tab_buttons_mouse") as DisplayObjectContainer) : null);
  2683. m_BGTwoLine = ((getChildByName("mc_tab_bg_twoline")) ? (getChildByName("mc_tab_bg_twoline") as DisplayObjectContainer) : null);
  2684. m_BGOneLine = ((getChildByName("mc_tab_bg_oneline")) ? (getChildByName("mc_tab_bg_oneline") as DisplayObjectContainer) : null);
  2685. m_BuTabBackward = ((getChildByName("bu_tab_backward_pad")) ? (getChildByName("bu_tab_backward_pad") as DisplayObject) : null);
  2686. m_BuTabForward = ((getChildByName("bu_tab_forward_pad")) ? (getChildByName("bu_tab_forward_pad") as DisplayObject) : null);
  2687. if (m_TabPad){
  2688. mc = null;
  2689. idx = 0;
  2690. do {
  2691. mc = (m_TabPad.getChildByName(("bt_tab_" + idx)) as DisplayObject);
  2692. if (mc){
  2693. m_TabButtons.push(mc);
  2694. m_TabOffsets.push(mc.x);
  2695. m_TabOffsetsOrig.push(mc.x);
  2696. mc.addEventListener(ElementEvent.SHOW, onShowButtonPad);
  2697. mc.addEventListener(ElementEvent.HIDE, onHideButtonPad);
  2698. };
  2699. idx = (idx + 1);
  2700. } while (mc != null);
  2701. };
  2702. if (!IggyFunctions.inIggy){
  2703. this["el_tab_buttons_pad"].visible = true;
  2704. this["el_tab_buttons_mouse"].visible = false;
  2705. this["el_tab_buttons_pad"]["bt_tab_0"]["button_set"]["mctext"]["textfeld"].text = "One 1+";
  2706. this["el_tab_buttons_pad"]["bt_tab_1"]["button_set"]["mctext"]["textfeld"].text = "One 2+";
  2707. this["el_tab_buttons_pad"]["bt_tab_2"]["button_set"]["mctext"]["textfeld"].text = "One 3+";
  2708. this["el_tab_buttons_pad"]["bt_tab_3"]["button_set"]["mctext"]["textfeld"].text = "One 4+";
  2709. this["el_tab_buttons_pad"]["bt_tab_4"]["button_set"]["mctext"]["textfeld"].text = "One 5+";
  2710. Textfield.simulateUpdate(this["el_tab_buttons_pad"]["bt_tab_0"]["button_set"].mctext, Textfield.GTA_CENTER);
  2711. Textfield.simulateUpdate(this["el_tab_buttons_pad"]["bt_tab_1"]["button_set"].mctext, Textfield.GTA_CENTER);
  2712. Textfield.simulateUpdate(this["el_tab_buttons_pad"]["bt_tab_2"]["button_set"].mctext, Textfield.GTA_CENTER);
  2713. Textfield.simulateUpdate(this["el_tab_buttons_pad"]["bt_tab_3"]["button_set"].mctext, Textfield.GTA_CENTER);
  2714. Textfield.simulateUpdate(this["el_tab_buttons_pad"]["bt_tab_4"]["button_set"].mctext, Textfield.GTA_CENTER);
  2715. Textfield.simulateUpdate(this["el_tab_buttons_pad"]["bt_tab_5"]["button_set"].mctext, Textfield.GTA_CENTER);
  2716. addEventListener(MouseEvent.CLICK, function (_arg1:MouseEvent){
  2717. var _local2:int;
  2718. if (m_CurTab < 0){
  2719. transitionTo(0);
  2720. } else {
  2721. _local2 = (m_CurTab + dir);
  2722. transitionTo(_local2);
  2723. if ((((_local2 < 0)) || ((_local2 >= m_TabButtons.length)))){
  2724. dir = -(dir);
  2725. };
  2726. };
  2727. });
  2728. };
  2729. }
  2730. public function setMode(_arg1:uint){
  2731. if (m_BGOneLine){
  2732. m_BGOneLine.visible = (MODE_CONSOLE == _arg1);
  2733. };
  2734. if (m_BGTwoLine){
  2735. m_BGTwoLine.visible = !((MODE_CONSOLE == _arg1));
  2736. };
  2737. if (m_TabMouse){
  2738. m_TabMouse.visible = !((MODE_CONSOLE == _arg1));
  2739. };
  2740. if (m_TabPad){
  2741. m_TabPad.visible = (MODE_CONSOLE == _arg1);
  2742. };
  2743. var _local2:MovieClip = (getChildByName("bg") as MovieClip);
  2744. if (_local2){
  2745. _local2.gotoAndStop((((MODE_CONSOLE == _arg1)) ? "console" : "pc"));
  2746. m_HeadlineLayout.changeElementsY(_local2.y);
  2747. };
  2748. }
  2749. public function onHeadlineTextUpdated():void{
  2750. m_HeadlineLayout.doLayout();
  2751. }
  2752. public function onEmptyTextUpdated():void{
  2753. m_EmptyText.y = (m_EmptyTextBottomY - m_EmptyText.height);
  2754. trace("foundtext_update");
  2755. }
  2756. public function onShowButtonPad(_arg1:ElementEvent){
  2757. cancelTransition();
  2758. var _local2:Number = 0;
  2759. var _local3:int;
  2760. var _local4:int;
  2761. while (m_TabButtons.length > _local4) {
  2762. m_TabButtons[_local4].x = m_TabOffsetsOrig[_local3];
  2763. m_TabOffsets[_local4] = m_TabOffsetsOrig[_local3];
  2764. if (m_TabButtons[_local4].visible){
  2765. _local3++;
  2766. };
  2767. _local4++;
  2768. };
  2769. _transitionTo(m_CurTab, false);
  2770. }
  2771. public function onHideButtonPad(_arg1:ElementEvent){
  2772. var _local2:int = m_CurTab;
  2773. var _local3:int;
  2774. var _local4:int;
  2775. while (m_TabButtons.length > _local4) {
  2776. m_TabButtons[_local4].x = m_TabOffsetsOrig[_local3];
  2777. m_TabOffsets[_local4] = m_TabOffsetsOrig[_local3];
  2778. if (m_TabButtons[_local4].visible){
  2779. _local3++;
  2780. };
  2781. _local4++;
  2782. };
  2783. _transitionTo(m_CurTab, false);
  2784. }
  2785. private function _transitionTo(_arg1:int, _arg2:Boolean):void{
  2786. var _local3:Number;
  2787. var _local4:uint;
  2788. var _local5:DisplayObject;
  2789. if ((((_arg1 >= 0)) && ((_arg1 < m_TabButtons.length)))){
  2790. m_InTransition = true;
  2791. if (m_BuTabBackward){
  2792. m_BuTabBackward.visible = !((_arg1 == 0));
  2793. };
  2794. if (m_BuTabForward){
  2795. m_BuTabForward.visible = !((_arg1 == (m_TabButtons.length - 1)));
  2796. };
  2797. _local3 = (m_TabOffsets[0] - m_TabOffsets[_arg1]);
  2798. _local4 = 0;
  2799. while (m_TabButtons.length > _local4) {
  2800. _local5 = (m_TabButtons[_local4] as DisplayObject);
  2801. if (_arg2){
  2802. Tweener.removeTweens(_local5);
  2803. if (m_CurTab == _local4){
  2804. Tweener.addTween(m_TabButtons[m_CurTab], {
  2805. scaleX:1,
  2806. time:m_ScaleDuration
  2807. });
  2808. Tweener.addTween(m_TabButtons[m_CurTab], {
  2809. scaleY:1,
  2810. time:m_ScaleDuration
  2811. });
  2812. };
  2813. if (_arg1 == _local4){
  2814. m_TabPad.setChildIndex(m_TabButtons[_arg1], (m_TabPad.numChildren - 1));
  2815. Tweener.removeTweens(m_TabButtons[_arg1]);
  2816. Tweener.addTween(m_TabButtons[_arg1], {
  2817. scaleX:m_Scale,
  2818. delay:(m_MoveDuration - m_ScaleDuration),
  2819. time:m_ScaleDuration
  2820. });
  2821. Tweener.addTween(m_TabButtons[_arg1], {
  2822. scaleY:m_Scale,
  2823. delay:(m_MoveDuration - m_ScaleDuration),
  2824. time:m_ScaleDuration
  2825. });
  2826. };
  2827. if (0 == _local4){
  2828. Tweener.addTween(_local5, {
  2829. x:(m_TabOffsets[_local4] + _local3),
  2830. time:m_MoveDuration,
  2831. onComplete:onComplete,
  2832. onCompleteParams:[null]
  2833. });
  2834. } else {
  2835. Tweener.addTween(_local5, {
  2836. x:(m_TabOffsets[_local4] + _local3),
  2837. time:m_MoveDuration
  2838. });
  2839. };
  2840. } else {
  2841. _local5.x = (m_TabOffsets[_local4] + _local3);
  2842. };
  2843. _local4++;
  2844. };
  2845. m_CurTab = _arg1;
  2846. if (!_arg2){
  2847. onComplete(undefined);
  2848. };
  2849. } else {
  2850. if ((((_arg1 < 0)) && ((m_CurTab >= 0)))){
  2851. m_InTransition = true;
  2852. if (_arg2){
  2853. _local3 = (m_TabOffsets[0] - m_TabOffsets[m_CurTab]);
  2854. _local4 = 0;
  2855. while (m_TabButtons.length > _local4) {
  2856. _local5 = (m_TabButtons[_local4] as DisplayObject);
  2857. Tweener.removeTweens(_local5);
  2858. Tweener.addTween(_local5, {
  2859. x:((m_TabOffsets[_local4] + _local3) + m_BounceWidth),
  2860. time:m_Bounceduration,
  2861. transition:"easeOutQuart"
  2862. });
  2863. Tweener.addTween(_local5, {
  2864. x:(m_TabOffsets[_local4] + _local3),
  2865. delay:m_Bounceduration,
  2866. time:m_SnapBackDuration,
  2867. onComplete:onComplete,
  2868. onCompleteParams:[null]
  2869. });
  2870. _local4++;
  2871. };
  2872. } else {
  2873. onComplete(undefined);
  2874. };
  2875. } else {
  2876. if ((((_arg1 >= m_TabButtons.length)) && ((m_CurTab >= 0)))){
  2877. m_InTransition = true;
  2878. if (_arg2){
  2879. _local3 = (m_TabOffsets[0] - m_TabOffsets[m_CurTab]);
  2880. _local4 = 0;
  2881. while (m_TabButtons.length > _local4) {
  2882. _local5 = (m_TabButtons[_local4] as DisplayObject);
  2883. Tweener.removeTweens(_local5);
  2884. Tweener.addTween(_local5, {
  2885. x:((m_TabOffsets[_local4] + _local3) - m_BounceWidth),
  2886. time:m_Bounceduration,
  2887. transition:"easeOutQuart"
  2888. });
  2889. Tweener.addTween(_local5, {
  2890. x:(m_TabOffsets[_local4] + _local3),
  2891. delay:m_Bounceduration,
  2892. time:m_SnapBackDuration,
  2893. onComplete:onComplete,
  2894. onCompleteParams:[null]
  2895. });
  2896. _local4++;
  2897. };
  2898. } else {
  2899. onComplete(undefined);
  2900. };
  2901. };
  2902. };
  2903. };
  2904. }
  2905. public function cancelTransition():void{
  2906. _transitionTo(m_CurTab, false);
  2907. }
  2908. public function transitionTo(_arg1:int):void{
  2909. _transitionTo(_arg1, true);
  2910. }
  2911. private function onComplete(_arg1):void{
  2912. m_InTransition = false;
  2913. reportFrame("EndTransition");
  2914. }
  2915.  
  2916. }
  2917. }//package exports
  2918. package exports {
  2919. import flash.display.*;
  2920. import gm.*;
  2921. import flash.events.*;
  2922. import components.button.*;
  2923. import pr3.dialog.*;
  2924. import components.list.*;
  2925.  
  2926. public class Tab_Trade extends DialogPage {
  2927.  
  2928. public var li_trade:Visual_List_Trade;
  2929. public var icn_tt_2:Visual_IconButton_Ship_Storage;
  2930. public var icn_tt_3:Visual_IconButton_Town_Storage;
  2931. public var icn_tt_0:Visual_IconButton_goods_price;
  2932. public var icn_tt_1:Visual_IconButton_Goods_Price_Average;
  2933.  
  2934. public function Tab_Trade(){
  2935. __setProp_icn_tt_0_Tab_Trade_legend_0();
  2936. __setProp_icn_tt_1_Tab_Trade_legend_0();
  2937. __setProp_icn_tt_2_Tab_Trade_legend_0();
  2938. __setProp_icn_tt_3_Tab_Trade_legend_0();
  2939. __setProp_li_trade_Tab_Trade_li_trade_0();
  2940. }
  2941. function __setProp_icn_tt_0_Tab_Trade_legend_0(){
  2942. try {
  2943. icn_tt_0["componentInspectorSetting"] = true;
  2944. } catch(e:Error) {
  2945. };
  2946. icn_tt_0.buttonType = "normal";
  2947. icn_tt_0.enabled = true;
  2948. icn_tt_0.instaPress = false;
  2949. icn_tt_0.isComponent = true;
  2950. icn_tt_0.mouseWheel = false;
  2951. icn_tt_0.navDown = "";
  2952. icn_tt_0.navLeft = "";
  2953. icn_tt_0.navRight = "";
  2954. icn_tt_0.navTabBackward = "";
  2955. icn_tt_0.navTabForward = "";
  2956. icn_tt_0.navUp = "";
  2957. icn_tt_0.pressAction = "PRESS";
  2958. icn_tt_0.repeatDelay = 0;
  2959. icn_tt_0.repeatRate = 0;
  2960. icn_tt_0.soundFocus = "";
  2961. icn_tt_0.soundPressNeg = "";
  2962. icn_tt_0.soundPressPos = "";
  2963. icn_tt_0.tooltipRes = "ID_GUI_TT_ICON_PRICE";
  2964. icn_tt_0.unfocusedInput = false;
  2965. icn_tt_0.visible = true;
  2966. try {
  2967. icn_tt_0["componentInspectorSetting"] = false;
  2968. } catch(e:Error) {
  2969. };
  2970. }
  2971. function __setProp_icn_tt_1_Tab_Trade_legend_0(){
  2972. try {
  2973. icn_tt_1["componentInspectorSetting"] = true;
  2974. } catch(e:Error) {
  2975. };
  2976. icn_tt_1.buttonType = "normal";
  2977. icn_tt_1.enabled = true;
  2978. icn_tt_1.instaPress = false;
  2979. icn_tt_1.isComponent = true;
  2980. icn_tt_1.mouseWheel = false;
  2981. icn_tt_1.navDown = "";
  2982. icn_tt_1.navLeft = "";
  2983. icn_tt_1.navRight = "";
  2984. icn_tt_1.navTabBackward = "";
  2985. icn_tt_1.navTabForward = "";
  2986. icn_tt_1.navUp = "";
  2987. icn_tt_1.pressAction = "PRESS";
  2988. icn_tt_1.repeatDelay = 0;
  2989. icn_tt_1.repeatRate = 0;
  2990. icn_tt_1.soundFocus = "";
  2991. icn_tt_1.soundPressNeg = "";
  2992. icn_tt_1.soundPressPos = "";
  2993. icn_tt_1.tooltipRes = "ID_GUI_TT_CONVOY_ICON_AVERAGE_GOLD";
  2994. icn_tt_1.unfocusedInput = false;
  2995. icn_tt_1.visible = true;
  2996. try {
  2997. icn_tt_1["componentInspectorSetting"] = false;
  2998. } catch(e:Error) {
  2999. };
  3000. }
  3001. function __setProp_icn_tt_2_Tab_Trade_legend_0(){
  3002. try {
  3003. icn_tt_2["componentInspectorSetting"] = true;
  3004. } catch(e:Error) {
  3005. };
  3006. icn_tt_2.buttonType = "normal";
  3007. icn_tt_2.enabled = true;
  3008. icn_tt_2.instaPress = false;
  3009. icn_tt_2.isComponent = true;
  3010. icn_tt_2.mouseWheel = false;
  3011. icn_tt_2.navDown = "";
  3012. icn_tt_2.navLeft = "";
  3013. icn_tt_2.navRight = "";
  3014. icn_tt_2.navTabBackward = "";
  3015. icn_tt_2.navTabForward = "";
  3016. icn_tt_2.navUp = "";
  3017. icn_tt_2.pressAction = "PRESS";
  3018. icn_tt_2.repeatDelay = 0;
  3019. icn_tt_2.repeatRate = 0;
  3020. icn_tt_2.soundFocus = "";
  3021. icn_tt_2.soundPressNeg = "";
  3022. icn_tt_2.soundPressPos = "";
  3023. icn_tt_2.tooltipRes = "ID_GUI_TT_ICON_BARRELS_CONVOY";
  3024. icn_tt_2.unfocusedInput = false;
  3025. icn_tt_2.visible = true;
  3026. try {
  3027. icn_tt_2["componentInspectorSetting"] = false;
  3028. } catch(e:Error) {
  3029. };
  3030. }
  3031. function __setProp_icn_tt_3_Tab_Trade_legend_0(){
  3032. try {
  3033. icn_tt_3["componentInspectorSetting"] = true;
  3034. } catch(e:Error) {
  3035. };
  3036. icn_tt_3.buttonType = "normal";
  3037. icn_tt_3.enabled = true;
  3038. icn_tt_3.instaPress = false;
  3039. icn_tt_3.isComponent = true;
  3040. icn_tt_3.mouseWheel = false;
  3041. icn_tt_3.navDown = "";
  3042. icn_tt_3.navLeft = "";
  3043. icn_tt_3.navRight = "";
  3044. icn_tt_3.navTabBackward = "";
  3045. icn_tt_3.navTabForward = "";
  3046. icn_tt_3.navUp = "";
  3047. icn_tt_3.pressAction = "PRESS";
  3048. icn_tt_3.repeatDelay = 0;
  3049. icn_tt_3.repeatRate = 0;
  3050. icn_tt_3.soundFocus = "";
  3051. icn_tt_3.soundPressNeg = "";
  3052. icn_tt_3.soundPressPos = "";
  3053. icn_tt_3.tooltipRes = "ID_GUI_TT_BARRELS_TOWN";
  3054. icn_tt_3.unfocusedInput = false;
  3055. icn_tt_3.visible = true;
  3056. try {
  3057. icn_tt_3["componentInspectorSetting"] = false;
  3058. } catch(e:Error) {
  3059. };
  3060. }
  3061. function __setProp_li_trade_Tab_Trade_li_trade_0(){
  3062. try {
  3063. li_trade["componentInspectorSetting"] = true;
  3064. } catch(e:Error) {
  3065. };
  3066. li_trade.allowDeselect = true;
  3067. li_trade.columns = 1;
  3068. li_trade.dragMarker = false;
  3069. li_trade.dragType = "none";
  3070. li_trade.enabled = true;
  3071. li_trade.enableMouseWheel = true;
  3072. li_trade.isComponent = true;
  3073. li_trade.mouseWheel = true;
  3074. li_trade.navDown = "";
  3075. li_trade.navLeft = "";
  3076. li_trade.navRight = "";
  3077. li_trade.navTabBackward = "";
  3078. li_trade.navTabForward = "";
  3079. li_trade.navUp = "";
  3080. li_trade.noElementButtons = false;
  3081. li_trade.open = false;
  3082. li_trade.pageScroll = true;
  3083. li_trade.pressAction = "PRESS";
  3084. li_trade.repeatDelay = 0;
  3085. li_trade.repeatRate = 0;
  3086. li_trade.resizeableBackground = false;
  3087. li_trade.rows = 10;
  3088. li_trade.selectionType = "single";
  3089. li_trade.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  3090. li_trade.tooltipRes = "";
  3091. li_trade.unfocusedInput = false;
  3092. li_trade.visible = true;
  3093. li_trade.warp = false;
  3094. try {
  3095. li_trade["componentInspectorSetting"] = false;
  3096. } catch(e:Error) {
  3097. };
  3098. }
  3099.  
  3100. }
  3101. }//package exports
  3102. package exports {
  3103. import flash.display.*;
  3104. import gm.*;
  3105. import flash.events.*;
  3106. import components.button.*;
  3107. import pr3.dialog.*;
  3108. import components.list.*;
  3109.  
  3110. public class Tab_Trade_Office_Convoy extends DialogPage {
  3111.  
  3112. public var li_trade:Visual_List_Trade;
  3113. public var icn_tt_4:Visual_IconButton_Goods_Price_Average;
  3114. public var icn_tt_2:Visual_IconButton_Ship_Storage;
  3115. public var icn_tt_3:Visual_IconButton_Office_Storage;
  3116. public var icn_tt_0:Visual_IconButton_goods_price;
  3117. public var icn_tt_1:Visual_IconButton_Goods_Price_Average;
  3118.  
  3119. public function Tab_Trade_Office_Convoy(){
  3120. __setProp_icn_tt_0_Tab_Trade_Office_Convoy_legend_0();
  3121. __setProp_icn_tt_1_Tab_Trade_Office_Convoy_legend_0();
  3122. __setProp_icn_tt_2_Tab_Trade_Office_Convoy_legend_0();
  3123. __setProp_icn_tt_3_Tab_Trade_Office_Convoy_legend_0();
  3124. __setProp_icn_tt_4_Tab_Trade_Office_Convoy_legend_0();
  3125. __setProp_li_trade_Tab_Trade_Office_Convoy_li_trade_0();
  3126. }
  3127. function __setProp_icn_tt_0_Tab_Trade_Office_Convoy_legend_0(){
  3128. try {
  3129. icn_tt_0["componentInspectorSetting"] = true;
  3130. } catch(e:Error) {
  3131. };
  3132. icn_tt_0.buttonType = "normal";
  3133. icn_tt_0.enabled = true;
  3134. icn_tt_0.instaPress = false;
  3135. icn_tt_0.isComponent = true;
  3136. icn_tt_0.mouseWheel = false;
  3137. icn_tt_0.navDown = "";
  3138. icn_tt_0.navLeft = "";
  3139. icn_tt_0.navRight = "";
  3140. icn_tt_0.navTabBackward = "";
  3141. icn_tt_0.navTabForward = "";
  3142. icn_tt_0.navUp = "";
  3143. icn_tt_0.pressAction = "PRESS";
  3144. icn_tt_0.repeatDelay = 0;
  3145. icn_tt_0.repeatRate = 0;
  3146. icn_tt_0.soundFocus = "";
  3147. icn_tt_0.soundPressNeg = "";
  3148. icn_tt_0.soundPressPos = "";
  3149. icn_tt_0.tooltipRes = "ID_GUI_TT_ICON_PRICE";
  3150. icn_tt_0.unfocusedInput = false;
  3151. icn_tt_0.visible = true;
  3152. try {
  3153. icn_tt_0["componentInspectorSetting"] = false;
  3154. } catch(e:Error) {
  3155. };
  3156. }
  3157. function __setProp_icn_tt_1_Tab_Trade_Office_Convoy_legend_0(){
  3158. try {
  3159. icn_tt_1["componentInspectorSetting"] = true;
  3160. } catch(e:Error) {
  3161. };
  3162. icn_tt_1.buttonType = "normal";
  3163. icn_tt_1.enabled = true;
  3164. icn_tt_1.instaPress = false;
  3165. icn_tt_1.isComponent = true;
  3166. icn_tt_1.mouseWheel = false;
  3167. icn_tt_1.navDown = "";
  3168. icn_tt_1.navLeft = "";
  3169. icn_tt_1.navRight = "";
  3170. icn_tt_1.navTabBackward = "";
  3171. icn_tt_1.navTabForward = "";
  3172. icn_tt_1.navUp = "";
  3173. icn_tt_1.pressAction = "PRESS";
  3174. icn_tt_1.repeatDelay = 0;
  3175. icn_tt_1.repeatRate = 0;
  3176. icn_tt_1.soundFocus = "";
  3177. icn_tt_1.soundPressNeg = "";
  3178. icn_tt_1.soundPressPos = "";
  3179. icn_tt_1.tooltipRes = "ID_GUI_TT_CONVOY_ICON_AVERAGE_GOLD";
  3180. icn_tt_1.unfocusedInput = false;
  3181. icn_tt_1.visible = true;
  3182. try {
  3183. icn_tt_1["componentInspectorSetting"] = false;
  3184. } catch(e:Error) {
  3185. };
  3186. }
  3187. function __setProp_icn_tt_2_Tab_Trade_Office_Convoy_legend_0(){
  3188. try {
  3189. icn_tt_2["componentInspectorSetting"] = true;
  3190. } catch(e:Error) {
  3191. };
  3192. icn_tt_2.buttonType = "normal";
  3193. icn_tt_2.enabled = true;
  3194. icn_tt_2.instaPress = false;
  3195. icn_tt_2.isComponent = true;
  3196. icn_tt_2.mouseWheel = false;
  3197. icn_tt_2.navDown = "";
  3198. icn_tt_2.navLeft = "";
  3199. icn_tt_2.navRight = "";
  3200. icn_tt_2.navTabBackward = "";
  3201. icn_tt_2.navTabForward = "";
  3202. icn_tt_2.navUp = "";
  3203. icn_tt_2.pressAction = "PRESS";
  3204. icn_tt_2.repeatDelay = 0;
  3205. icn_tt_2.repeatRate = 0;
  3206. icn_tt_2.soundFocus = "";
  3207. icn_tt_2.soundPressNeg = "";
  3208. icn_tt_2.soundPressPos = "";
  3209. icn_tt_2.tooltipRes = "ID_GUI_TT_ICON_BARRELS_CONVOY";
  3210. icn_tt_2.unfocusedInput = false;
  3211. icn_tt_2.visible = true;
  3212. try {
  3213. icn_tt_2["componentInspectorSetting"] = false;
  3214. } catch(e:Error) {
  3215. };
  3216. }
  3217. function __setProp_icn_tt_3_Tab_Trade_Office_Convoy_legend_0(){
  3218. try {
  3219. icn_tt_3["componentInspectorSetting"] = true;
  3220. } catch(e:Error) {
  3221. };
  3222. icn_tt_3.buttonType = "normal";
  3223. icn_tt_3.enabled = true;
  3224. icn_tt_3.instaPress = false;
  3225. icn_tt_3.isComponent = true;
  3226. icn_tt_3.mouseWheel = false;
  3227. icn_tt_3.navDown = "";
  3228. icn_tt_3.navLeft = "";
  3229. icn_tt_3.navRight = "";
  3230. icn_tt_3.navTabBackward = "";
  3231. icn_tt_3.navTabForward = "";
  3232. icn_tt_3.navUp = "";
  3233. icn_tt_3.pressAction = "PRESS";
  3234. icn_tt_3.repeatDelay = 0;
  3235. icn_tt_3.repeatRate = 0;
  3236. icn_tt_3.soundFocus = "";
  3237. icn_tt_3.soundPressNeg = "";
  3238. icn_tt_3.soundPressPos = "";
  3239. icn_tt_3.tooltipRes = "ID_GUI_TT_ICON_DEPOT";
  3240. icn_tt_3.unfocusedInput = false;
  3241. icn_tt_3.visible = true;
  3242. try {
  3243. icn_tt_3["componentInspectorSetting"] = false;
  3244. } catch(e:Error) {
  3245. };
  3246. }
  3247. function __setProp_icn_tt_4_Tab_Trade_Office_Convoy_legend_0(){
  3248. try {
  3249. icn_tt_4["componentInspectorSetting"] = true;
  3250. } catch(e:Error) {
  3251. };
  3252. icn_tt_4.buttonType = "normal";
  3253. icn_tt_4.enabled = true;
  3254. icn_tt_4.instaPress = false;
  3255. icn_tt_4.isComponent = true;
  3256. icn_tt_4.mouseWheel = false;
  3257. icn_tt_4.navDown = "";
  3258. icn_tt_4.navLeft = "";
  3259. icn_tt_4.navRight = "";
  3260. icn_tt_4.navTabBackward = "";
  3261. icn_tt_4.navTabForward = "";
  3262. icn_tt_4.navUp = "";
  3263. icn_tt_4.pressAction = "PRESS";
  3264. icn_tt_4.repeatDelay = 0;
  3265. icn_tt_4.repeatRate = 0;
  3266. icn_tt_4.soundFocus = "";
  3267. icn_tt_4.soundPressNeg = "";
  3268. icn_tt_4.soundPressPos = "";
  3269. icn_tt_4.tooltipRes = "ID_GUI_TT_CONVOY_ICON_AVERAGE_GOLD";
  3270. icn_tt_4.unfocusedInput = false;
  3271. icn_tt_4.visible = true;
  3272. try {
  3273. icn_tt_4["componentInspectorSetting"] = false;
  3274. } catch(e:Error) {
  3275. };
  3276. }
  3277. function __setProp_li_trade_Tab_Trade_Office_Convoy_li_trade_0(){
  3278. try {
  3279. li_trade["componentInspectorSetting"] = true;
  3280. } catch(e:Error) {
  3281. };
  3282. li_trade.allowDeselect = true;
  3283. li_trade.columns = 1;
  3284. li_trade.dragMarker = false;
  3285. li_trade.dragType = "none";
  3286. li_trade.enabled = true;
  3287. li_trade.enableMouseWheel = true;
  3288. li_trade.isComponent = true;
  3289. li_trade.mouseWheel = true;
  3290. li_trade.navDown = "";
  3291. li_trade.navLeft = "";
  3292. li_trade.navRight = "";
  3293. li_trade.navTabBackward = "";
  3294. li_trade.navTabForward = "";
  3295. li_trade.navUp = "";
  3296. li_trade.noElementButtons = false;
  3297. li_trade.open = false;
  3298. li_trade.pageScroll = true;
  3299. li_trade.pressAction = "PRESS";
  3300. li_trade.repeatDelay = 0;
  3301. li_trade.repeatRate = 0;
  3302. li_trade.resizeableBackground = false;
  3303. li_trade.rows = 10;
  3304. li_trade.selectionType = "single";
  3305. li_trade.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  3306. li_trade.tooltipRes = "";
  3307. li_trade.unfocusedInput = false;
  3308. li_trade.visible = true;
  3309. li_trade.warp = false;
  3310. try {
  3311. li_trade["componentInspectorSetting"] = false;
  3312. } catch(e:Error) {
  3313. };
  3314. }
  3315.  
  3316. }
  3317. }//package exports
  3318. package caurina.transitions {
  3319.  
  3320. public class PropertyInfoObj {
  3321.  
  3322. public var valueStart:Number;
  3323. public var valueComplete:Number;
  3324. public var originalValueComplete:Object;
  3325. public var arrayIndex:Number;
  3326. public var extra:Object;
  3327. public var isSpecialProperty:Boolean;
  3328. public var hasModifier:Boolean;
  3329. public var modifierFunction:Function;
  3330. public var modifierParameters:Array;
  3331.  
  3332. public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){
  3333. valueStart = _arg1;
  3334. valueComplete = _arg2;
  3335. originalValueComplete = _arg3;
  3336. arrayIndex = _arg4;
  3337. extra = _arg5;
  3338. isSpecialProperty = _arg6;
  3339. hasModifier = Boolean(_arg7);
  3340. modifierFunction = _arg7;
  3341. modifierParameters = _arg8;
  3342. }
  3343. public function clone():PropertyInfoObj{
  3344. var _local1:PropertyInfoObj = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters);
  3345. return (_local1);
  3346. }
  3347. public function toString():String{
  3348. var _local1 = "\n[PropertyInfoObj ";
  3349. _local1 = (_local1 + ("valueStart:" + String(valueStart)));
  3350. _local1 = (_local1 + ", ");
  3351. _local1 = (_local1 + ("valueComplete:" + String(valueComplete)));
  3352. _local1 = (_local1 + ", ");
  3353. _local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete)));
  3354. _local1 = (_local1 + ", ");
  3355. _local1 = (_local1 + ("arrayIndex:" + String(arrayIndex)));
  3356. _local1 = (_local1 + ", ");
  3357. _local1 = (_local1 + ("extra:" + String(extra)));
  3358. _local1 = (_local1 + ", ");
  3359. _local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty)));
  3360. _local1 = (_local1 + ", ");
  3361. _local1 = (_local1 + ("hasModifier:" + String(hasModifier)));
  3362. _local1 = (_local1 + ", ");
  3363. _local1 = (_local1 + ("modifierFunction:" + String(modifierFunction)));
  3364. _local1 = (_local1 + ", ");
  3365. _local1 = (_local1 + ("modifierParameters:" + String(modifierParameters)));
  3366. _local1 = (_local1 + "]\n");
  3367. return (_local1);
  3368. }
  3369.  
  3370. }
  3371. }//package caurina.transitions
  3372. package caurina.transitions {
  3373.  
  3374. public class SpecialPropertyModifier {
  3375.  
  3376. public var modifyValues:Function;
  3377. public var getValue:Function;
  3378.  
  3379. public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){
  3380. modifyValues = _arg1;
  3381. getValue = _arg2;
  3382. }
  3383. public function toString():String{
  3384. var _local1 = "";
  3385. _local1 = (_local1 + "[SpecialPropertyModifier ");
  3386. _local1 = (_local1 + ("modifyValues:" + String(modifyValues)));
  3387. _local1 = (_local1 + ", ");
  3388. _local1 = (_local1 + ("getValue:" + String(getValue)));
  3389. _local1 = (_local1 + "]");
  3390. return (_local1);
  3391. }
  3392.  
  3393. }
  3394. }//package caurina.transitions
  3395. package caurina.transitions {
  3396.  
  3397. public class AuxFunctions {
  3398.  
  3399. public static function numberToR(_arg1:Number):Number{
  3400. return (((_arg1 & 0xFF0000) >> 16));
  3401. }
  3402. public static function numberToG(_arg1:Number):Number{
  3403. return (((_arg1 & 0xFF00) >> 8));
  3404. }
  3405. public static function numberToB(_arg1:Number):Number{
  3406. return ((_arg1 & 0xFF));
  3407. }
  3408. public static function getObjectLength(_arg1:Object):uint{
  3409. var _local3:String;
  3410. var _local2:uint;
  3411. for (_local3 in _arg1) {
  3412. _local2++;
  3413. };
  3414. return (_local2);
  3415. }
  3416. public static function concatObjects(... _args):Object{
  3417. var _local3:Object;
  3418. var _local5:String;
  3419. var _local2:Object = {};
  3420. var _local4:int;
  3421. while (_local4 < _args.length) {
  3422. _local3 = _args[_local4];
  3423. for (_local5 in _local3) {
  3424. if (_local3[_local5] == null){
  3425. delete _local2[_local5];
  3426. } else {
  3427. _local2[_local5] = _local3[_local5];
  3428. };
  3429. };
  3430. _local4++;
  3431. };
  3432. return (_local2);
  3433. }
  3434.  
  3435. }
  3436. }//package caurina.transitions
  3437. package caurina.transitions {
  3438. import flash.display.*;
  3439. import flash.events.*;
  3440. import flash.utils.*;
  3441.  
  3442. public class Tweener {
  3443.  
  3444. private static var __tweener_controller__:MovieClip;
  3445. private static var _engineExists:Boolean = false;
  3446. private static var _inited:Boolean = false;
  3447. private static var _currentTime:Number;
  3448. private static var _currentTimeFrame:Number;
  3449. private static var _tweenList:Array;
  3450. private static var _timeScale:Number = 1;
  3451. private static var _transitionList:Object;
  3452. private static var _specialPropertyList:Object;
  3453. private static var _specialPropertyModifierList:Object;
  3454. private static var _specialPropertySplitterList:Object;
  3455. public static var autoOverwrite:Boolean = true;
  3456.  
  3457. public function Tweener(){
  3458. trace("Tweener is a static class and should not be instantiated.");
  3459. }
  3460. public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{
  3461. var _local3:Number;
  3462. var _local4:Number;
  3463. var _local5:String;
  3464. var _local6:Array;
  3465. var _local13:Function;
  3466. var _local14:Object;
  3467. var _local15:TweenListObj;
  3468. var _local16:Number;
  3469. var _local17:Array;
  3470. var _local18:Array;
  3471. var _local19:Array;
  3472. var _local20:String;
  3473. if (!Boolean(_arg1)){
  3474. return (false);
  3475. };
  3476. if ((_arg1 is Array)){
  3477. _local6 = _arg1.concat();
  3478. } else {
  3479. _local6 = [_arg1];
  3480. };
  3481. var _local7:Object = TweenListObj.makePropertiesChain(_arg2);
  3482. if (!_inited){
  3483. init();
  3484. };
  3485. if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
  3486. startEngine();
  3487. };
  3488. var _local8:Number = ((isNaN(_local7.time)) ? 0 : _local7.time);
  3489. var _local9:Number = ((isNaN(_local7.delay)) ? 0 : _local7.delay);
  3490. var _local10:Array = new Array();
  3491. var _local11:Object = {
  3492. overwrite:true,
  3493. time:true,
  3494. delay:true,
  3495. useFrames:true,
  3496. skipUpdates:true,
  3497. transition:true,
  3498. transitionParams:true,
  3499. onStart:true,
  3500. onUpdate:true,
  3501. onComplete:true,
  3502. onOverwrite:true,
  3503. onError:true,
  3504. rounded:true,
  3505. onStartParams:true,
  3506. onUpdateParams:true,
  3507. onCompleteParams:true,
  3508. onOverwriteParams:true,
  3509. onStartScope:true,
  3510. onUpdateScope:true,
  3511. onCompleteScope:true,
  3512. onOverwriteScope:true,
  3513. onErrorScope:true
  3514. };
  3515. var _local12:Object = new Object();
  3516. for (_local5 in _local7) {
  3517. if (!_local11[_local5]){
  3518. if (_specialPropertySplitterList[_local5]){
  3519. _local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters);
  3520. _local3 = 0;
  3521. while (_local3 < _local17.length) {
  3522. if (_specialPropertySplitterList[_local17[_local3].name]){
  3523. _local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters);
  3524. _local4 = 0;
  3525. while (_local4 < _local18.length) {
  3526. _local10[_local18[_local4].name] = {
  3527. valueStart:undefined,
  3528. valueComplete:_local18[_local4].value,
  3529. arrayIndex:_local18[_local4].arrayIndex,
  3530. isSpecialProperty:false
  3531. };
  3532. _local4++;
  3533. };
  3534. } else {
  3535. _local10[_local17[_local3].name] = {
  3536. valueStart:undefined,
  3537. valueComplete:_local17[_local3].value,
  3538. arrayIndex:_local17[_local3].arrayIndex,
  3539. isSpecialProperty:false
  3540. };
  3541. };
  3542. _local3++;
  3543. };
  3544. } else {
  3545. if (_specialPropertyModifierList[_local5] != undefined){
  3546. _local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]);
  3547. _local3 = 0;
  3548. while (_local3 < _local19.length) {
  3549. _local12[_local19[_local3].name] = {
  3550. modifierParameters:_local19[_local3].parameters,
  3551. modifierFunction:_specialPropertyModifierList[_local5].getValue
  3552. };
  3553. _local3++;
  3554. };
  3555. } else {
  3556. _local10[_local5] = {
  3557. valueStart:undefined,
  3558. valueComplete:_local7[_local5]
  3559. };
  3560. };
  3561. };
  3562. };
  3563. };
  3564. for (_local5 in _local10) {
  3565. if (_specialPropertyList[_local5] != undefined){
  3566. _local10[_local5].isSpecialProperty = true;
  3567. } else {
  3568. if (_local6[0][_local5] == undefined){
  3569. printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property."));
  3570. };
  3571. };
  3572. };
  3573. for (_local5 in _local12) {
  3574. if (_local10[_local5] != undefined){
  3575. _local10[_local5].modifierParameters = _local12[_local5].modifierParameters;
  3576. _local10[_local5].modifierFunction = _local12[_local5].modifierFunction;
  3577. };
  3578. };
  3579. if (typeof(_local7.transition) == "string"){
  3580. _local20 = _local7.transition.toLowerCase();
  3581. _local13 = _transitionList[_local20];
  3582. } else {
  3583. _local13 = _local7.transition;
  3584. };
  3585. if (!Boolean(_local13)){
  3586. _local13 = _transitionList["easeoutexpo"];
  3587. };
  3588. _local3 = 0;
  3589. while (_local3 < _local6.length) {
  3590. _local14 = new Object();
  3591. for (_local5 in _local10) {
  3592. _local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters);
  3593. };
  3594. if (_local7.useFrames == true){
  3595. _local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams);
  3596. } else {
  3597. _local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams);
  3598. };
  3599. _local15.properties = _local14;
  3600. _local15.onStart = _local7.onStart;
  3601. _local15.onUpdate = _local7.onUpdate;
  3602. _local15.onComplete = _local7.onComplete;
  3603. _local15.onOverwrite = _local7.onOverwrite;
  3604. _local15.onError = _local7.onError;
  3605. _local15.onStartParams = _local7.onStartParams;
  3606. _local15.onUpdateParams = _local7.onUpdateParams;
  3607. _local15.onCompleteParams = _local7.onCompleteParams;
  3608. _local15.onOverwriteParams = _local7.onOverwriteParams;
  3609. _local15.onStartScope = _local7.onStartScope;
  3610. _local15.onUpdateScope = _local7.onUpdateScope;
  3611. _local15.onCompleteScope = _local7.onCompleteScope;
  3612. _local15.onOverwriteScope = _local7.onOverwriteScope;
  3613. _local15.onErrorScope = _local7.onErrorScope;
  3614. _local15.rounded = _local7.rounded;
  3615. _local15.skipUpdates = _local7.skipUpdates;
  3616. if ((((_local7.overwrite == undefined)) ? autoOverwrite : _local7.overwrite)){
  3617. removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete);
  3618. };
  3619. _tweenList.push(_local15);
  3620. if ((((_local8 == 0)) && ((_local9 == 0)))){
  3621. _local16 = (_tweenList.length - 1);
  3622. updateTweenByIndex(_local16);
  3623. removeTweenByIndex(_local16);
  3624. };
  3625. _local3++;
  3626. };
  3627. return (true);
  3628. }
  3629. public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{
  3630. var _local3:Number;
  3631. var _local4:Array;
  3632. var _local8:Function;
  3633. var _local9:TweenListObj;
  3634. var _local10:Number;
  3635. var _local11:String;
  3636. if (!Boolean(_arg1)){
  3637. return (false);
  3638. };
  3639. if ((_arg1 is Array)){
  3640. _local4 = _arg1.concat();
  3641. } else {
  3642. _local4 = [_arg1];
  3643. };
  3644. var _local5:Object = _arg2;
  3645. if (!_inited){
  3646. init();
  3647. };
  3648. if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){
  3649. startEngine();
  3650. };
  3651. var _local6:Number = ((isNaN(_local5.time)) ? 0 : _local5.time);
  3652. var _local7:Number = ((isNaN(_local5.delay)) ? 0 : _local5.delay);
  3653. if (typeof(_local5.transition) == "string"){
  3654. _local11 = _local5.transition.toLowerCase();
  3655. _local8 = _transitionList[_local11];
  3656. } else {
  3657. _local8 = _local5.transition;
  3658. };
  3659. if (!Boolean(_local8)){
  3660. _local8 = _transitionList["easeoutexpo"];
  3661. };
  3662. _local3 = 0;
  3663. while (_local3 < _local4.length) {
  3664. if (_local5.useFrames == true){
  3665. _local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams);
  3666. } else {
  3667. _local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams);
  3668. };
  3669. _local9.properties = null;
  3670. _local9.onStart = _local5.onStart;
  3671. _local9.onUpdate = _local5.onUpdate;
  3672. _local9.onComplete = _local5.onComplete;
  3673. _local9.onOverwrite = _local5.onOverwrite;
  3674. _local9.onStartParams = _local5.onStartParams;
  3675. _local9.onUpdateParams = _local5.onUpdateParams;
  3676. _local9.onCompleteParams = _local5.onCompleteParams;
  3677. _local9.onOverwriteParams = _local5.onOverwriteParams;
  3678. _local9.onStartScope = _local5.onStartScope;
  3679. _local9.onUpdateScope = _local5.onUpdateScope;
  3680. _local9.onCompleteScope = _local5.onCompleteScope;
  3681. _local9.onOverwriteScope = _local5.onOverwriteScope;
  3682. _local9.onErrorScope = _local5.onErrorScope;
  3683. _local9.isCaller = true;
  3684. _local9.count = _local5.count;
  3685. _local9.waitFrames = _local5.waitFrames;
  3686. _tweenList.push(_local9);
  3687. if ((((_local6 == 0)) && ((_local7 == 0)))){
  3688. _local10 = (_tweenList.length - 1);
  3689. updateTweenByIndex(_local10);
  3690. removeTweenByIndex(_local10);
  3691. };
  3692. _local3++;
  3693. };
  3694. return (true);
  3695. }
  3696. public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{
  3697. var removedLocally:* = false;
  3698. var i:* = 0;
  3699. var pName:* = null;
  3700. var eventScope:* = null;
  3701. var p_scope:* = _arg1;
  3702. var p_properties:* = _arg2;
  3703. var p_timeStart:* = _arg3;
  3704. var p_timeComplete:* = _arg4;
  3705. var removed:* = false;
  3706. var tl:* = _tweenList.length;
  3707. i = 0;
  3708. while (i < tl) {
  3709. if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){
  3710. if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){
  3711. removedLocally = false;
  3712. for (pName in _tweenList[i].properties) {
  3713. if (Boolean(p_properties[pName])){
  3714. if (Boolean(_tweenList[i].onOverwrite)){
  3715. eventScope = ((Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope);
  3716. try {
  3717. _tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams);
  3718. } catch(e:Error) {
  3719. handleError(_tweenList[i], e, "onOverwrite");
  3720. };
  3721. };
  3722. _tweenList[i].properties[pName] = undefined;
  3723. delete _tweenList[i].properties[pName];
  3724. removedLocally = true;
  3725. removed = true;
  3726. };
  3727. };
  3728. if (removedLocally){
  3729. if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){
  3730. removeTweenByIndex(i);
  3731. };
  3732. };
  3733. };
  3734. };
  3735. i = (i + 1);
  3736. };
  3737. return (removed);
  3738. }
  3739. public static function removeTweens(_arg1:Object, ... _args):Boolean{
  3740. var _local4:uint;
  3741. var _local5:SpecialPropertySplitter;
  3742. var _local6:Array;
  3743. var _local7:uint;
  3744. var _local3:Array = new Array();
  3745. _local4 = 0;
  3746. while (_local4 < _args.length) {
  3747. if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
  3748. if (((_specialPropertySplitterList) && (_specialPropertySplitterList[_args[_local4]]))){
  3749. _local5 = _specialPropertySplitterList[_args[_local4]];
  3750. _local6 = _local5.splitValues(_arg1, null);
  3751. _local7 = 0;
  3752. while (_local7 < _local6.length) {
  3753. _local3.push(_local6[_local7].name);
  3754. _local7++;
  3755. };
  3756. } else {
  3757. _local3.push(_args[_local4]);
  3758. };
  3759. };
  3760. _local4++;
  3761. };
  3762. return (affectTweens(removeTweenByIndex, _arg1, _local3));
  3763. }
  3764. public static function removeAllTweens():Boolean{
  3765. var _local2:uint;
  3766. if (!Boolean(_tweenList)){
  3767. return (false);
  3768. };
  3769. var _local1:Boolean;
  3770. _local2 = 0;
  3771. while (_local2 < _tweenList.length) {
  3772. removeTweenByIndex(_local2);
  3773. _local1 = true;
  3774. _local2++;
  3775. };
  3776. return (_local1);
  3777. }
  3778. public static function pauseTweens(_arg1:Object, ... _args):Boolean{
  3779. var _local4:uint;
  3780. var _local3:Array = new Array();
  3781. _local4 = 0;
  3782. while (_local4 < _args.length) {
  3783. if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
  3784. _local3.push(_args[_local4]);
  3785. };
  3786. _local4++;
  3787. };
  3788. return (affectTweens(pauseTweenByIndex, _arg1, _local3));
  3789. }
  3790. public static function pauseAllTweens():Boolean{
  3791. var _local2:uint;
  3792. if (!Boolean(_tweenList)){
  3793. return (false);
  3794. };
  3795. var _local1:Boolean;
  3796. _local2 = 0;
  3797. while (_local2 < _tweenList.length) {
  3798. pauseTweenByIndex(_local2);
  3799. _local1 = true;
  3800. _local2++;
  3801. };
  3802. return (_local1);
  3803. }
  3804. public static function resumeTweens(_arg1:Object, ... _args):Boolean{
  3805. var _local4:uint;
  3806. var _local3:Array = new Array();
  3807. _local4 = 0;
  3808. while (_local4 < _args.length) {
  3809. if ((((typeof(_args[_local4]) == "string")) && ((_local3.indexOf(_args[_local4]) == -1)))){
  3810. _local3.push(_args[_local4]);
  3811. };
  3812. _local4++;
  3813. };
  3814. return (affectTweens(resumeTweenByIndex, _arg1, _local3));
  3815. }
  3816. public static function resumeAllTweens():Boolean{
  3817. var _local2:uint;
  3818. if (!Boolean(_tweenList)){
  3819. return (false);
  3820. };
  3821. var _local1:Boolean;
  3822. _local2 = 0;
  3823. while (_local2 < _tweenList.length) {
  3824. resumeTweenByIndex(_local2);
  3825. _local1 = true;
  3826. _local2++;
  3827. };
  3828. return (_local1);
  3829. }
  3830. private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{
  3831. var _local5:uint;
  3832. var _local6:Array;
  3833. var _local7:uint;
  3834. var _local8:uint;
  3835. var _local9:uint;
  3836. var _local4:Boolean;
  3837. if (!Boolean(_tweenList)){
  3838. return (false);
  3839. };
  3840. _local5 = 0;
  3841. while (_local5 < _tweenList.length) {
  3842. if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){
  3843. if (_arg3.length == 0){
  3844. _arg1(_local5);
  3845. _local4 = true;
  3846. } else {
  3847. _local6 = new Array();
  3848. _local7 = 0;
  3849. while (_local7 < _arg3.length) {
  3850. if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){
  3851. _local6.push(_arg3[_local7]);
  3852. };
  3853. _local7++;
  3854. };
  3855. if (_local6.length > 0){
  3856. _local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties);
  3857. if (_local8 == _local6.length){
  3858. _arg1(_local5);
  3859. _local4 = true;
  3860. } else {
  3861. _local9 = splitTweens(_local5, _local6);
  3862. _arg1(_local9);
  3863. _local4 = true;
  3864. };
  3865. };
  3866. };
  3867. };
  3868. _local5++;
  3869. };
  3870. return (_local4);
  3871. }
  3872. public static function splitTweens(_arg1:Number, _arg2:Array):uint{
  3873. var _local5:uint;
  3874. var _local6:String;
  3875. var _local7:Boolean;
  3876. var _local3:TweenListObj = _tweenList[_arg1];
  3877. var _local4:TweenListObj = _local3.clone(false);
  3878. _local5 = 0;
  3879. while (_local5 < _arg2.length) {
  3880. _local6 = _arg2[_local5];
  3881. if (Boolean(_local3.properties[_local6])){
  3882. _local3.properties[_local6] = undefined;
  3883. delete _local3.properties[_local6];
  3884. };
  3885. _local5++;
  3886. };
  3887. for (_local6 in _local4.properties) {
  3888. _local7 = false;
  3889. _local5 = 0;
  3890. while (_local5 < _arg2.length) {
  3891. if (_arg2[_local5] == _local6){
  3892. _local7 = true;
  3893. break;
  3894. };
  3895. _local5++;
  3896. };
  3897. if (!_local7){
  3898. _local4.properties[_local6] = undefined;
  3899. delete _local4.properties[_local6];
  3900. };
  3901. };
  3902. _tweenList.push(_local4);
  3903. return ((_tweenList.length - 1));
  3904. }
  3905. private static function updateTweens():Boolean{
  3906. var _local1:int;
  3907. if (_tweenList.length == 0){
  3908. return (false);
  3909. };
  3910. _local1 = 0;
  3911. while (_local1 < _tweenList.length) {
  3912. if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){
  3913. if (!updateTweenByIndex(_local1)){
  3914. removeTweenByIndex(_local1);
  3915. };
  3916. if (_tweenList[_local1] == null){
  3917. removeTweenByIndex(_local1, true);
  3918. _local1--;
  3919. };
  3920. };
  3921. _local1++;
  3922. };
  3923. return (true);
  3924. }
  3925. public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{
  3926. _tweenList[_arg1] = null;
  3927. if (_arg2){
  3928. _tweenList.splice(_arg1, 1);
  3929. };
  3930. return (true);
  3931. }
  3932. public static function pauseTweenByIndex(_arg1:Number):Boolean{
  3933. var _local2:TweenListObj = _tweenList[_arg1];
  3934. if ((((_local2 == null)) || (_local2.isPaused))){
  3935. return (false);
  3936. };
  3937. _local2.timePaused = getCurrentTweeningTime(_local2);
  3938. _local2.isPaused = true;
  3939. return (true);
  3940. }
  3941. public static function resumeTweenByIndex(_arg1:Number):Boolean{
  3942. var _local2:TweenListObj = _tweenList[_arg1];
  3943. if ((((_local2 == null)) || (!(_local2.isPaused)))){
  3944. return (false);
  3945. };
  3946. var _local3:Number = getCurrentTweeningTime(_local2);
  3947. _local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused));
  3948. _local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused));
  3949. _local2.timePaused = undefined;
  3950. _local2.isPaused = false;
  3951. return (true);
  3952. }
  3953. private static function updateTweenByIndex(_arg1:Number):Boolean{
  3954. var tTweening:* = null;
  3955. var mustUpdate:* = false;
  3956. var nv:* = NaN;
  3957. var t:* = NaN;
  3958. var b:* = NaN;
  3959. var c:* = NaN;
  3960. var d:* = NaN;
  3961. var pName:* = null;
  3962. var eventScope:* = null;
  3963. var tScope:* = null;
  3964. var tProperty:* = null;
  3965. var pv:* = NaN;
  3966. var i:* = _arg1;
  3967. tTweening = _tweenList[i];
  3968. if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){
  3969. return (false);
  3970. };
  3971. var isOver:* = false;
  3972. var cTime:* = getCurrentTweeningTime(tTweening);
  3973. if (cTime >= tTweening.timeStart){
  3974. tScope = tTweening.scope;
  3975. if (tTweening.isCaller){
  3976. do {
  3977. t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1));
  3978. b = tTweening.timeStart;
  3979. c = (tTweening.timeComplete - tTweening.timeStart);
  3980. d = (tTweening.timeComplete - tTweening.timeStart);
  3981. nv = tTweening.transition(t, b, c, d);
  3982. if (cTime >= nv){
  3983. if (Boolean(tTweening.onUpdate)){
  3984. eventScope = ((Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope);
  3985. try {
  3986. tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
  3987. } catch(e1:Error) {
  3988. handleError(tTweening, e1, "onUpdate");
  3989. };
  3990. };
  3991. tTweening.timesCalled++;
  3992. if (tTweening.timesCalled >= tTweening.count){
  3993. isOver = true;
  3994. break;
  3995. };
  3996. if (tTweening.waitFrames){
  3997. break;
  3998. };
  3999. };
  4000. } while (cTime >= nv);
  4001. } else {
  4002. mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates)));
  4003. if (cTime >= tTweening.timeComplete){
  4004. isOver = true;
  4005. mustUpdate = true;
  4006. };
  4007. if (!tTweening.hasStarted){
  4008. if (Boolean(tTweening.onStart)){
  4009. eventScope = ((Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope);
  4010. try {
  4011. tTweening.onStart.apply(eventScope, tTweening.onStartParams);
  4012. } catch(e2:Error) {
  4013. handleError(tTweening, e2, "onStart");
  4014. };
  4015. };
  4016. for (pName in tTweening.properties) {
  4017. if (tTweening.properties[pName].isSpecialProperty){
  4018. if (Boolean(_specialPropertyList[pName].preProcess)){
  4019. tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra);
  4020. };
  4021. pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
  4022. } else {
  4023. pv = tScope[pName];
  4024. };
  4025. tTweening.properties[pName].valueStart = ((isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv);
  4026. };
  4027. mustUpdate = true;
  4028. tTweening.hasStarted = true;
  4029. };
  4030. if (mustUpdate){
  4031. for (pName in tTweening.properties) {
  4032. tProperty = tTweening.properties[pName];
  4033. if (isOver){
  4034. nv = tProperty.valueComplete;
  4035. } else {
  4036. if (tProperty.hasModifier){
  4037. t = (cTime - tTweening.timeStart);
  4038. d = (tTweening.timeComplete - tTweening.timeStart);
  4039. nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams);
  4040. nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters);
  4041. } else {
  4042. t = (cTime - tTweening.timeStart);
  4043. b = tProperty.valueStart;
  4044. c = (tProperty.valueComplete - tProperty.valueStart);
  4045. d = (tTweening.timeComplete - tTweening.timeStart);
  4046. nv = tTweening.transition(t, b, c, d, tTweening.transitionParams);
  4047. };
  4048. };
  4049. if (tTweening.rounded){
  4050. nv = Math.round(nv);
  4051. };
  4052. if (tProperty.isSpecialProperty){
  4053. _specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra);
  4054. } else {
  4055. tScope[pName] = nv;
  4056. };
  4057. };
  4058. tTweening.updatesSkipped = 0;
  4059. if (Boolean(tTweening.onUpdate)){
  4060. eventScope = ((Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope);
  4061. try {
  4062. tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams);
  4063. } catch(e3:Error) {
  4064. handleError(tTweening, e3, "onUpdate");
  4065. };
  4066. };
  4067. } else {
  4068. tTweening.updatesSkipped++;
  4069. };
  4070. };
  4071. if (((isOver) && (Boolean(tTweening.onComplete)))){
  4072. eventScope = ((Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope);
  4073. try {
  4074. tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams);
  4075. } catch(e4:Error) {
  4076. handleError(tTweening, e4, "onComplete");
  4077. };
  4078. };
  4079. return (!(isOver));
  4080. };
  4081. return (true);
  4082. }
  4083. public static function init(... _args):void{
  4084. _inited = true;
  4085. _transitionList = new Object();
  4086. Equations.init();
  4087. _specialPropertyList = new Object();
  4088. _specialPropertyModifierList = new Object();
  4089. _specialPropertySplitterList = new Object();
  4090. }
  4091. public static function registerTransition(_arg1:String, _arg2:Function):void{
  4092. if (!_inited){
  4093. init();
  4094. };
  4095. _transitionList[_arg1] = _arg2;
  4096. }
  4097. public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{
  4098. if (!_inited){
  4099. init();
  4100. };
  4101. var _local6:SpecialProperty = new SpecialProperty(_arg2, _arg3, _arg4, _arg5);
  4102. _specialPropertyList[_arg1] = _local6;
  4103. }
  4104. public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{
  4105. if (!_inited){
  4106. init();
  4107. };
  4108. var _local4:SpecialPropertyModifier = new SpecialPropertyModifier(_arg2, _arg3);
  4109. _specialPropertyModifierList[_arg1] = _local4;
  4110. }
  4111. public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{
  4112. if (!_inited){
  4113. init();
  4114. };
  4115. var _local4:SpecialPropertySplitter = new SpecialPropertySplitter(_arg2, _arg3);
  4116. _specialPropertySplitterList[_arg1] = _local4;
  4117. }
  4118. private static function startEngine():void{
  4119. _engineExists = true;
  4120. _tweenList = new Array();
  4121. __tweener_controller__ = new MovieClip();
  4122. __tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
  4123. _currentTimeFrame = 0;
  4124. updateTime();
  4125. }
  4126. private static function stopEngine():void{
  4127. _engineExists = false;
  4128. _tweenList = null;
  4129. _currentTime = 0;
  4130. _currentTimeFrame = 0;
  4131. __tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame);
  4132. __tweener_controller__ = null;
  4133. }
  4134. public static function updateTime():void{
  4135. _currentTime = getTimer();
  4136. }
  4137. public static function updateFrame():void{
  4138. _currentTimeFrame++;
  4139. }
  4140. public static function onEnterFrame(_arg1:Event):void{
  4141. updateTime();
  4142. updateFrame();
  4143. var _local2:Boolean;
  4144. _local2 = updateTweens();
  4145. if (!_local2){
  4146. stopEngine();
  4147. };
  4148. }
  4149. public static function setTimeScale(_arg1:Number):void{
  4150. var _local2:Number;
  4151. var _local3:Number;
  4152. if (isNaN(_arg1)){
  4153. _arg1 = 1;
  4154. };
  4155. if (_arg1 < 1E-5){
  4156. _arg1 = 1E-5;
  4157. };
  4158. if (_arg1 != _timeScale){
  4159. if (_tweenList != null){
  4160. _local2 = 0;
  4161. while (_local2 < _tweenList.length) {
  4162. _local3 = getCurrentTweeningTime(_tweenList[_local2]);
  4163. _tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1));
  4164. _tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1));
  4165. if (_tweenList[_local2].timePaused != undefined){
  4166. _tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1));
  4167. };
  4168. _local2++;
  4169. };
  4170. };
  4171. _timeScale = _arg1;
  4172. };
  4173. }
  4174. public static function isTweening(_arg1:Object):Boolean{
  4175. var _local2:uint;
  4176. if (!Boolean(_tweenList)){
  4177. return (false);
  4178. };
  4179. _local2 = 0;
  4180. while (_local2 < _tweenList.length) {
  4181. if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
  4182. return (true);
  4183. };
  4184. _local2++;
  4185. };
  4186. return (false);
  4187. }
  4188. public static function getTweens(_arg1:Object):Array{
  4189. var _local2:uint;
  4190. var _local3:String;
  4191. if (!Boolean(_tweenList)){
  4192. return ([]);
  4193. };
  4194. var _local4:Array = new Array();
  4195. _local2 = 0;
  4196. while (_local2 < _tweenList.length) {
  4197. if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
  4198. for (_local3 in _tweenList[_local2].properties) {
  4199. _local4.push(_local3);
  4200. };
  4201. };
  4202. _local2++;
  4203. };
  4204. return (_local4);
  4205. }
  4206. public static function getTweenCount(_arg1:Object):Number{
  4207. var _local2:uint;
  4208. if (!Boolean(_tweenList)){
  4209. return (0);
  4210. };
  4211. var _local3:Number = 0;
  4212. _local2 = 0;
  4213. while (_local2 < _tweenList.length) {
  4214. if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){
  4215. _local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties));
  4216. };
  4217. _local2++;
  4218. };
  4219. return (_local3);
  4220. }
  4221. private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{
  4222. var eventScope:* = null;
  4223. var pTweening:* = _arg1;
  4224. var pError:* = _arg2;
  4225. var pCallBackName:* = _arg3;
  4226. if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){
  4227. eventScope = ((Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope);
  4228. try {
  4229. pTweening.onError.apply(eventScope, [pTweening.scope, pError]);
  4230. } catch(metaError:Error) {
  4231. printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace()));
  4232. };
  4233. } else {
  4234. if (!Boolean(pTweening.onError)){
  4235. printError(((((((String(pTweening.scope) + " raised an error (") + pError.message) + ") while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace()));
  4236. };
  4237. };
  4238. }
  4239. public static function getCurrentTweeningTime(_arg1:Object):Number{
  4240. return (((_arg1.useFrames) ? _currentTimeFrame : _currentTime));
  4241. }
  4242. public static function getVersion():String{
  4243. return ("AS3 1.33.74");
  4244. }
  4245. public static function printError(_arg1:String):void{
  4246. trace(("## [Tweener] Error: " + _arg1));
  4247. }
  4248.  
  4249. }
  4250. }//package caurina.transitions
  4251. package caurina.transitions {
  4252.  
  4253. public class Equations {
  4254.  
  4255. public function Equations(){
  4256. trace("Equations is a static class and should not be instantiated.");
  4257. }
  4258. public static function init():void{
  4259. Tweener.registerTransition("easenone", easeNone);
  4260. Tweener.registerTransition("linear", easeNone);
  4261. Tweener.registerTransition("easeinquad", easeInQuad);
  4262. Tweener.registerTransition("easeoutquad", easeOutQuad);
  4263. Tweener.registerTransition("easeinoutquad", easeInOutQuad);
  4264. Tweener.registerTransition("easeoutinquad", easeOutInQuad);
  4265. Tweener.registerTransition("easeincubic", easeInCubic);
  4266. Tweener.registerTransition("easeoutcubic", easeOutCubic);
  4267. Tweener.registerTransition("easeinoutcubic", easeInOutCubic);
  4268. Tweener.registerTransition("easeoutincubic", easeOutInCubic);
  4269. Tweener.registerTransition("easeinquart", easeInQuart);
  4270. Tweener.registerTransition("easeoutquart", easeOutQuart);
  4271. Tweener.registerTransition("easeinoutquart", easeInOutQuart);
  4272. Tweener.registerTransition("easeoutinquart", easeOutInQuart);
  4273. Tweener.registerTransition("easeinquint", easeInQuint);
  4274. Tweener.registerTransition("easeoutquint", easeOutQuint);
  4275. Tweener.registerTransition("easeinoutquint", easeInOutQuint);
  4276. Tweener.registerTransition("easeoutinquint", easeOutInQuint);
  4277. Tweener.registerTransition("easeinsine", easeInSine);
  4278. Tweener.registerTransition("easeoutsine", easeOutSine);
  4279. Tweener.registerTransition("easeinoutsine", easeInOutSine);
  4280. Tweener.registerTransition("easeoutinsine", easeOutInSine);
  4281. Tweener.registerTransition("easeincirc", easeInCirc);
  4282. Tweener.registerTransition("easeoutcirc", easeOutCirc);
  4283. Tweener.registerTransition("easeinoutcirc", easeInOutCirc);
  4284. Tweener.registerTransition("easeoutincirc", easeOutInCirc);
  4285. Tweener.registerTransition("easeinexpo", easeInExpo);
  4286. Tweener.registerTransition("easeoutexpo", easeOutExpo);
  4287. Tweener.registerTransition("easeinoutexpo", easeInOutExpo);
  4288. Tweener.registerTransition("easeoutinexpo", easeOutInExpo);
  4289. Tweener.registerTransition("easeinelastic", easeInElastic);
  4290. Tweener.registerTransition("easeoutelastic", easeOutElastic);
  4291. Tweener.registerTransition("easeinoutelastic", easeInOutElastic);
  4292. Tweener.registerTransition("easeoutinelastic", easeOutInElastic);
  4293. Tweener.registerTransition("easeinback", easeInBack);
  4294. Tweener.registerTransition("easeoutback", easeOutBack);
  4295. Tweener.registerTransition("easeinoutback", easeInOutBack);
  4296. Tweener.registerTransition("easeoutinback", easeOutInBack);
  4297. Tweener.registerTransition("easeinbounce", easeInBounce);
  4298. Tweener.registerTransition("easeoutbounce", easeOutBounce);
  4299. Tweener.registerTransition("easeinoutbounce", easeInOutBounce);
  4300. Tweener.registerTransition("easeoutinbounce", easeOutInBounce);
  4301. }
  4302. public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4303. return ((((_arg3 * _arg1) / _arg4) + _arg2));
  4304. }
  4305. public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4306. _arg1 = (_arg1 / _arg4);
  4307. return ((((_arg3 * _arg1) * _arg1) + _arg2));
  4308. }
  4309. public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4310. _arg1 = (_arg1 / _arg4);
  4311. return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
  4312. }
  4313. public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4314. _arg1 = (_arg1 / (_arg4 / 2));
  4315. if (_arg1 < 1){
  4316. return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
  4317. };
  4318. --_arg1;
  4319. return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
  4320. }
  4321. public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4322. if (_arg1 < (_arg4 / 2)){
  4323. return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
  4324. };
  4325. return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
  4326. }
  4327. public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4328. _arg1 = (_arg1 / _arg4);
  4329. return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2));
  4330. }
  4331. public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4332. _arg1 = ((_arg1 / _arg4) - 1);
  4333. return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2));
  4334. }
  4335. public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4336. _arg1 = (_arg1 / (_arg4 / 2));
  4337. if (_arg1 < 1){
  4338. return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2));
  4339. };
  4340. _arg1 = (_arg1 - 2);
  4341. return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2));
  4342. }
  4343. public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4344. if (_arg1 < (_arg4 / 2)){
  4345. return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
  4346. };
  4347. return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
  4348. }
  4349. public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4350. _arg1 = (_arg1 / _arg4);
  4351. return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
  4352. }
  4353. public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4354. _arg1 = ((_arg1 / _arg4) - 1);
  4355. return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2));
  4356. }
  4357. public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4358. _arg1 = (_arg1 / (_arg4 / 2));
  4359. if (_arg1 < 1){
  4360. return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
  4361. };
  4362. _arg1 = (_arg1 - 2);
  4363. return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2));
  4364. }
  4365. public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4366. if (_arg1 < (_arg4 / 2)){
  4367. return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
  4368. };
  4369. return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
  4370. }
  4371. public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4372. _arg1 = (_arg1 / _arg4);
  4373. return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
  4374. }
  4375. public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4376. _arg1 = ((_arg1 / _arg4) - 1);
  4377. return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2));
  4378. }
  4379. public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4380. _arg1 = (_arg1 / (_arg4 / 2));
  4381. if (_arg1 < 1){
  4382. return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2));
  4383. };
  4384. _arg1 = (_arg1 - 2);
  4385. return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2));
  4386. }
  4387. public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4388. if (_arg1 < (_arg4 / 2)){
  4389. return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
  4390. };
  4391. return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
  4392. }
  4393. public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4394. return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2));
  4395. }
  4396. public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4397. return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2));
  4398. }
  4399. public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4400. return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2));
  4401. }
  4402. public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4403. if (_arg1 < (_arg4 / 2)){
  4404. return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
  4405. };
  4406. return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
  4407. }
  4408. public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4409. return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001)));
  4410. }
  4411. public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4412. return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2));
  4413. }
  4414. public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4415. if (_arg1 == 0){
  4416. return (_arg2);
  4417. };
  4418. if (_arg1 == _arg4){
  4419. return ((_arg2 + _arg3));
  4420. };
  4421. _arg1 = (_arg1 / (_arg4 / 2));
  4422. if (_arg1 < 1){
  4423. return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005)));
  4424. };
  4425. --_arg1;
  4426. return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2));
  4427. }
  4428. public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4429. if (_arg1 < (_arg4 / 2)){
  4430. return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
  4431. };
  4432. return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
  4433. }
  4434. public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4435. _arg1 = (_arg1 / _arg4);
  4436. return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
  4437. }
  4438. public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4439. _arg1 = ((_arg1 / _arg4) - 1);
  4440. return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2));
  4441. }
  4442. public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4443. _arg1 = (_arg1 / (_arg4 / 2));
  4444. if (_arg1 < 1){
  4445. return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2));
  4446. };
  4447. _arg1 = (_arg1 - 2);
  4448. return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2));
  4449. }
  4450. public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4451. if (_arg1 < (_arg4 / 2)){
  4452. return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
  4453. };
  4454. return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
  4455. }
  4456. public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4457. var _local7:Number;
  4458. if (_arg1 == 0){
  4459. return (_arg2);
  4460. };
  4461. _arg1 = (_arg1 / _arg4);
  4462. if (_arg1 == 1){
  4463. return ((_arg2 + _arg3));
  4464. };
  4465. var _local6:Number = ((((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period);
  4466. var _local8:Number = ((((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude);
  4467. if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
  4468. _local8 = _arg3;
  4469. _local7 = (_local6 / 4);
  4470. } else {
  4471. _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
  4472. };
  4473. --_arg1;
  4474. return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
  4475. }
  4476. public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4477. var _local7:Number;
  4478. if (_arg1 == 0){
  4479. return (_arg2);
  4480. };
  4481. _arg1 = (_arg1 / _arg4);
  4482. if (_arg1 == 1){
  4483. return ((_arg2 + _arg3));
  4484. };
  4485. var _local6:Number = ((((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period);
  4486. var _local8:Number = ((((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude);
  4487. if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
  4488. _local8 = _arg3;
  4489. _local7 = (_local6 / 4);
  4490. } else {
  4491. _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
  4492. };
  4493. return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2));
  4494. }
  4495. public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4496. var _local7:Number;
  4497. if (_arg1 == 0){
  4498. return (_arg2);
  4499. };
  4500. _arg1 = (_arg1 / (_arg4 / 2));
  4501. if (_arg1 == 2){
  4502. return ((_arg2 + _arg3));
  4503. };
  4504. var _local6:Number = ((((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period);
  4505. var _local8:Number = ((((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude);
  4506. if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){
  4507. _local8 = _arg3;
  4508. _local7 = (_local6 / 4);
  4509. } else {
  4510. _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8)));
  4511. };
  4512. if (_arg1 < 1){
  4513. --_arg1;
  4514. return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2));
  4515. };
  4516. --_arg1;
  4517. return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2));
  4518. }
  4519. public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4520. if (_arg1 < (_arg4 / 2)){
  4521. return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
  4522. };
  4523. return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
  4524. }
  4525. public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4526. var _local6:Number = ((((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot);
  4527. _arg1 = (_arg1 / _arg4);
  4528. return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2));
  4529. }
  4530. public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4531. var _local6:Number = ((((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot);
  4532. _arg1 = ((_arg1 / _arg4) - 1);
  4533. return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2));
  4534. }
  4535. public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4536. var _local6:Number = ((((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot);
  4537. _arg1 = (_arg1 / (_arg4 / 2));
  4538. if (_arg1 < 1){
  4539. _local6 = (_local6 * 1.525);
  4540. return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2));
  4541. };
  4542. _arg1 = (_arg1 - 2);
  4543. _local6 = (_local6 * 1.525);
  4544. return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2));
  4545. }
  4546. public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4547. if (_arg1 < (_arg4 / 2)){
  4548. return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
  4549. };
  4550. return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
  4551. }
  4552. public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4553. return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2));
  4554. }
  4555. public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4556. _arg1 = (_arg1 / _arg4);
  4557. if (_arg1 < (1 / 2.75)){
  4558. return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2));
  4559. };
  4560. if (_arg1 < (2 / 2.75)){
  4561. _arg1 = (_arg1 - (1.5 / 2.75));
  4562. return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2));
  4563. };
  4564. if (_arg1 < (2.5 / 2.75)){
  4565. _arg1 = (_arg1 - (2.25 / 2.75));
  4566. return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2));
  4567. };
  4568. _arg1 = (_arg1 - (2.625 / 2.75));
  4569. return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2));
  4570. }
  4571. public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4572. if (_arg1 < (_arg4 / 2)){
  4573. return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2));
  4574. };
  4575. return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2));
  4576. }
  4577. public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{
  4578. if (_arg1 < (_arg4 / 2)){
  4579. return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5));
  4580. };
  4581. return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5));
  4582. }
  4583.  
  4584. }
  4585. }//package caurina.transitions
  4586. package caurina.transitions {
  4587.  
  4588. public class TweenListObj {
  4589.  
  4590. public var scope:Object;
  4591. public var properties:Object;
  4592. public var timeStart:Number;
  4593. public var timeComplete:Number;
  4594. public var useFrames:Boolean;
  4595. public var transition:Function;
  4596. public var transitionParams:Object;
  4597. public var onStart:Function;
  4598. public var onUpdate:Function;
  4599. public var onComplete:Function;
  4600. public var onOverwrite:Function;
  4601. public var onError:Function;
  4602. public var onStartParams:Array;
  4603. public var onUpdateParams:Array;
  4604. public var onCompleteParams:Array;
  4605. public var onOverwriteParams:Array;
  4606. public var onStartScope:Object;
  4607. public var onUpdateScope:Object;
  4608. public var onCompleteScope:Object;
  4609. public var onOverwriteScope:Object;
  4610. public var onErrorScope:Object;
  4611. public var rounded:Boolean;
  4612. public var isPaused:Boolean;
  4613. public var timePaused:Number;
  4614. public var isCaller:Boolean;
  4615. public var count:Number;
  4616. public var timesCalled:Number;
  4617. public var waitFrames:Boolean;
  4618. public var skipUpdates:Number;
  4619. public var updatesSkipped:Number;
  4620. public var hasStarted:Boolean;
  4621.  
  4622. public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){
  4623. scope = _arg1;
  4624. timeStart = _arg2;
  4625. timeComplete = _arg3;
  4626. useFrames = _arg4;
  4627. transition = _arg5;
  4628. transitionParams = _arg6;
  4629. properties = new Object();
  4630. isPaused = false;
  4631. timePaused = undefined;
  4632. isCaller = false;
  4633. updatesSkipped = 0;
  4634. timesCalled = 0;
  4635. skipUpdates = 0;
  4636. hasStarted = false;
  4637. }
  4638. public static function makePropertiesChain(_arg1:Object):Object{
  4639. var _local3:Object;
  4640. var _local4:Object;
  4641. var _local5:Object;
  4642. var _local6:Number;
  4643. var _local7:Number;
  4644. var _local8:Number;
  4645. var _local2:Object = _arg1.base;
  4646. if (_local2){
  4647. _local3 = {};
  4648. if ((_local2 is Array)){
  4649. _local4 = [];
  4650. _local8 = 0;
  4651. while (_local8 < _local2.length) {
  4652. _local4.push(_local2[_local8]);
  4653. _local8++;
  4654. };
  4655. } else {
  4656. _local4 = [_local2];
  4657. };
  4658. _local4.push(_arg1);
  4659. _local6 = _local4.length;
  4660. _local7 = 0;
  4661. while (_local7 < _local6) {
  4662. if (_local4[_local7]["base"]){
  4663. _local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]);
  4664. } else {
  4665. _local5 = _local4[_local7];
  4666. };
  4667. _local3 = AuxFunctions.concatObjects(_local3, _local5);
  4668. _local7++;
  4669. };
  4670. if (_local3["base"]){
  4671. delete _local3["base"];
  4672. };
  4673. return (_local3);
  4674. };
  4675. return (_arg1);
  4676. }
  4677.  
  4678. public function clone(_arg1:Boolean):TweenListObj{
  4679. var _local3:String;
  4680. var _local2:TweenListObj = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams);
  4681. _local2.properties = new Array();
  4682. for (_local3 in properties) {
  4683. _local2.properties[_local3] = properties[_local3].clone();
  4684. };
  4685. _local2.skipUpdates = skipUpdates;
  4686. _local2.updatesSkipped = updatesSkipped;
  4687. if (!_arg1){
  4688. _local2.onStart = onStart;
  4689. _local2.onUpdate = onUpdate;
  4690. _local2.onComplete = onComplete;
  4691. _local2.onOverwrite = onOverwrite;
  4692. _local2.onError = onError;
  4693. _local2.onStartParams = onStartParams;
  4694. _local2.onUpdateParams = onUpdateParams;
  4695. _local2.onCompleteParams = onCompleteParams;
  4696. _local2.onOverwriteParams = onOverwriteParams;
  4697. _local2.onStartScope = onStartScope;
  4698. _local2.onUpdateScope = onUpdateScope;
  4699. _local2.onCompleteScope = onCompleteScope;
  4700. _local2.onOverwriteScope = onOverwriteScope;
  4701. _local2.onErrorScope = onErrorScope;
  4702. };
  4703. _local2.rounded = rounded;
  4704. _local2.isPaused = isPaused;
  4705. _local2.timePaused = timePaused;
  4706. _local2.isCaller = isCaller;
  4707. _local2.count = count;
  4708. _local2.timesCalled = timesCalled;
  4709. _local2.waitFrames = waitFrames;
  4710. _local2.hasStarted = hasStarted;
  4711. return (_local2);
  4712. }
  4713. public function toString():String{
  4714. var _local3:String;
  4715. var _local1 = "\n[TweenListObj ";
  4716. _local1 = (_local1 + ("scope:" + String(scope)));
  4717. _local1 = (_local1 + ", properties:");
  4718. var _local2:Boolean;
  4719. for (_local3 in properties) {
  4720. if (!_local2){
  4721. _local1 = (_local1 + ",");
  4722. };
  4723. _local1 = (_local1 + ("[name:" + properties[_local3].name));
  4724. _local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart));
  4725. _local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete));
  4726. _local1 = (_local1 + "]");
  4727. _local2 = false;
  4728. };
  4729. _local1 = (_local1 + (", timeStart:" + String(timeStart)));
  4730. _local1 = (_local1 + (", timeComplete:" + String(timeComplete)));
  4731. _local1 = (_local1 + (", useFrames:" + String(useFrames)));
  4732. _local1 = (_local1 + (", transition:" + String(transition)));
  4733. _local1 = (_local1 + (", transitionParams:" + String(transitionParams)));
  4734. if (skipUpdates){
  4735. _local1 = (_local1 + (", skipUpdates:" + String(skipUpdates)));
  4736. };
  4737. if (updatesSkipped){
  4738. _local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped)));
  4739. };
  4740. if (Boolean(onStart)){
  4741. _local1 = (_local1 + (", onStart:" + String(onStart)));
  4742. };
  4743. if (Boolean(onUpdate)){
  4744. _local1 = (_local1 + (", onUpdate:" + String(onUpdate)));
  4745. };
  4746. if (Boolean(onComplete)){
  4747. _local1 = (_local1 + (", onComplete:" + String(onComplete)));
  4748. };
  4749. if (Boolean(onOverwrite)){
  4750. _local1 = (_local1 + (", onOverwrite:" + String(onOverwrite)));
  4751. };
  4752. if (Boolean(onError)){
  4753. _local1 = (_local1 + (", onError:" + String(onError)));
  4754. };
  4755. if (onStartParams){
  4756. _local1 = (_local1 + (", onStartParams:" + String(onStartParams)));
  4757. };
  4758. if (onUpdateParams){
  4759. _local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams)));
  4760. };
  4761. if (onCompleteParams){
  4762. _local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams)));
  4763. };
  4764. if (onOverwriteParams){
  4765. _local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams)));
  4766. };
  4767. if (onStartScope){
  4768. _local1 = (_local1 + (", onStartScope:" + String(onStartScope)));
  4769. };
  4770. if (onUpdateScope){
  4771. _local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope)));
  4772. };
  4773. if (onCompleteScope){
  4774. _local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope)));
  4775. };
  4776. if (onOverwriteScope){
  4777. _local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope)));
  4778. };
  4779. if (onErrorScope){
  4780. _local1 = (_local1 + (", onErrorScope:" + String(onErrorScope)));
  4781. };
  4782. if (rounded){
  4783. _local1 = (_local1 + (", rounded:" + String(rounded)));
  4784. };
  4785. if (isPaused){
  4786. _local1 = (_local1 + (", isPaused:" + String(isPaused)));
  4787. };
  4788. if (timePaused){
  4789. _local1 = (_local1 + (", timePaused:" + String(timePaused)));
  4790. };
  4791. if (isCaller){
  4792. _local1 = (_local1 + (", isCaller:" + String(isCaller)));
  4793. };
  4794. if (count){
  4795. _local1 = (_local1 + (", count:" + String(count)));
  4796. };
  4797. if (timesCalled){
  4798. _local1 = (_local1 + (", timesCalled:" + String(timesCalled)));
  4799. };
  4800. if (waitFrames){
  4801. _local1 = (_local1 + (", waitFrames:" + String(waitFrames)));
  4802. };
  4803. if (hasStarted){
  4804. _local1 = (_local1 + (", hasStarted:" + String(hasStarted)));
  4805. };
  4806. _local1 = (_local1 + "]\n");
  4807. return (_local1);
  4808. }
  4809.  
  4810. }
  4811. }//package caurina.transitions
  4812. package caurina.transitions {
  4813.  
  4814. public class SpecialPropertySplitter {
  4815.  
  4816. public var parameters:Array;
  4817. public var splitValues:Function;
  4818.  
  4819. public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){
  4820. splitValues = _arg1;
  4821. parameters = _arg2;
  4822. }
  4823. public function toString():String{
  4824. var _local1 = "";
  4825. _local1 = (_local1 + "[SpecialPropertySplitter ");
  4826. _local1 = (_local1 + ("splitValues:" + String(splitValues)));
  4827. _local1 = (_local1 + ", ");
  4828. _local1 = (_local1 + ("parameters:" + String(parameters)));
  4829. _local1 = (_local1 + "]");
  4830. return (_local1);
  4831. }
  4832.  
  4833. }
  4834. }//package caurina.transitions
  4835. package caurina.transitions {
  4836.  
  4837. public class SpecialProperty {
  4838.  
  4839. public var getValue:Function;
  4840. public var setValue:Function;
  4841. public var parameters:Array;
  4842. public var preProcess:Function;
  4843.  
  4844. public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){
  4845. getValue = _arg1;
  4846. setValue = _arg2;
  4847. parameters = _arg3;
  4848. preProcess = _arg4;
  4849. }
  4850. public function toString():String{
  4851. var _local1 = "";
  4852. _local1 = (_local1 + "[SpecialProperty ");
  4853. _local1 = (_local1 + ("getValue:" + String(getValue)));
  4854. _local1 = (_local1 + ", ");
  4855. _local1 = (_local1 + ("setValue:" + String(setValue)));
  4856. _local1 = (_local1 + ", ");
  4857. _local1 = (_local1 + ("parameters:" + String(parameters)));
  4858. _local1 = (_local1 + ", ");
  4859. _local1 = (_local1 + ("preProcess:" + String(preProcess)));
  4860. _local1 = (_local1 + "]");
  4861. return (_local1);
  4862. }
  4863.  
  4864. }
  4865. }//package caurina.transitions
  4866. package gm.textbutton {
  4867. import flash.display.*;
  4868. import gm.textfield.*;
  4869. import gm.button.*;
  4870.  
  4871. public class TextButton extends Button {
  4872.  
  4873. private var m_ButtonSet:DisplayObjectContainer = null;
  4874. private var m_Textfield:Textfield = null;
  4875. public var m_TextRes:String = "";
  4876. public var m_HtmlText:Boolean = false;
  4877. public var m_Bold:Boolean = false;
  4878. public var m_Italic:Boolean = false;
  4879. public var m_Underline:Boolean = false;
  4880. public var m_TextAlignH:String = "center";
  4881. public var m_TextAlignV:uint = 0;
  4882. public var m_AutosizeX:String = "none";
  4883. public var m_ColorRes:String = "ID_GUI_DEF_COLOR_DEFAULT";
  4884. public var m_FilterColorRes:String = "ID_GUI_DEF_COLOR_FILTER";
  4885. public var m_FontSize:uint = 0;
  4886.  
  4887. public function TextButton(){
  4888. m_HasTextfield = true;
  4889. m_ButtonSet = (getChildByName("button_set") as DisplayObjectContainer);
  4890. m_Textfield = (((m_ButtonSet) ? m_ButtonSet.getChildByName("mctext") : null) as Textfield);
  4891. }
  4892. public function get textRes():String{
  4893. return (m_TextRes);
  4894. }
  4895. public function set textRes(_arg1:String):void{
  4896. if (m_TextRes != _arg1){
  4897. m_TextRes = _arg1;
  4898. };
  4899. }
  4900. public function get htmlText():Boolean{
  4901. return (m_HtmlText);
  4902. }
  4903. public function set htmlText(_arg1:Boolean):void{
  4904. m_HtmlText = _arg1;
  4905. }
  4906. public function get bold():Boolean{
  4907. return (m_Bold);
  4908. }
  4909. public function set bold(_arg1:Boolean):void{
  4910. m_Bold = _arg1;
  4911. }
  4912. public function get italic():Boolean{
  4913. return (m_Italic);
  4914. }
  4915. public function set italic(_arg1:Boolean):void{
  4916. m_Italic = _arg1;
  4917. }
  4918. public function get underline():Boolean{
  4919. return (m_Underline);
  4920. }
  4921. public function set underline(_arg1:Boolean):void{
  4922. m_Underline = _arg1;
  4923. }
  4924. public function get textAlignH():String{
  4925. return (m_TextAlignH);
  4926. }
  4927. public function set textAlignH(_arg1:String):void{
  4928. m_TextAlignH = _arg1;
  4929. }
  4930. public function get textAlignV():uint{
  4931. return (m_TextAlignV);
  4932. }
  4933. public function set textAlignV(_arg1:uint):void{
  4934. m_TextAlignV = _arg1;
  4935. }
  4936. public function get autoSizeX():String{
  4937. return (m_AutosizeX);
  4938. }
  4939. public function set autoSizeX(_arg1:String):void{
  4940. if (_arg1 == m_AutosizeX){
  4941. return;
  4942. };
  4943. m_AutosizeX = _arg1;
  4944. if (m_Textfield){
  4945. if (m_AutosizeX != "none"){
  4946. m_Textfield.addEventListener(TextfieldEvent.RESIZE_DONE, onTextfieldResizeDone);
  4947. } else {
  4948. m_Textfield.removeEventListener(TextfieldEvent.RESIZE_DONE, onTextfieldResizeDone);
  4949. };
  4950. };
  4951. }
  4952. public function get colorRes():String{
  4953. return (m_ColorRes);
  4954. }
  4955. public function set colorRes(_arg1:String):void{
  4956. m_ColorRes = _arg1;
  4957. }
  4958. public function get fontSize():uint{
  4959. return (m_FontSize);
  4960. }
  4961. public function set fontSize(_arg1:uint):void{
  4962. m_FontSize = _arg1;
  4963. }
  4964. public function get filterColorRes():String{
  4965. return (m_FilterColorRes);
  4966. }
  4967. public function set filterColorRes(_arg1:String):void{
  4968. m_FilterColorRes = _arg1;
  4969. }
  4970. private function onTextfieldResizeDone(_arg1:TextfieldEvent):void{
  4971. if (m_Textfield){
  4972. width = (m_Textfield.width + m_Textfield.x);
  4973. if (m_ButtonSet.getChildByName("hitmask")){
  4974. m_ButtonSet.getChildByName("hitmask").width = width;
  4975. };
  4976. dispatchEvent(new TextButtonEvent(TextButtonEvent.RESIZE_DONE));
  4977. };
  4978. }
  4979. public function getTextfield():Textfield{
  4980. return (m_Textfield);
  4981. }
  4982.  
  4983. }
  4984. }//package gm.textbutton
  4985. package gm.textbutton {
  4986. import flash.events.*;
  4987.  
  4988. public class TextButtonEvent extends Event {
  4989.  
  4990. public static const RESIZE_DONE:String = "textbuttonresizedone";
  4991.  
  4992. public function TextButtonEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
  4993. super(_arg1, _arg2, _arg3);
  4994. }
  4995. override public function clone():Event{
  4996. return (new TextButtonEvent(type, bubbles, cancelable));
  4997. }
  4998. override public function toString():String{
  4999. return (formatToString("TextButtonEvent", "type", "bubbles", "cancelable", "eventPhase"));
  5000. }
  5001.  
  5002. }
  5003. }//package gm.textbutton
  5004. package gm {
  5005. import flash.display.*;
  5006. import flash.utils.*;
  5007.  
  5008. public final class logging {
  5009.  
  5010. public static const VERBOSE:uint = 4;
  5011. public static const INFO:uint = 3;
  5012. public static const WARNING:uint = 2;
  5013. public static const ERROR:uint = 1;
  5014. public static const NONE:uint = 0;
  5015.  
  5016. public static var level:uint = 0;
  5017.  
  5018. public static function log(... _args){
  5019. trace(_args.join(""));
  5020. }
  5021. public static function logArgs(_arg1:String, _arg2:Object){
  5022. var _local3:String = new String();
  5023. var _local4:* = 0;
  5024. while (_arg2.length > _local4) {
  5025. if (_local4 > 0){
  5026. _local3 = (_local3 + ", ");
  5027. };
  5028. _local3 = (_local3 + ((_arg2[_local4].toString() + ":") + typeof(_arg2[_local4])));
  5029. _local4++;
  5030. };
  5031. trace((((("called " + _arg1) + "( ") + _local3) + " )"));
  5032. }
  5033. public static function traceImmediateChildren(_arg1:DisplayObjectContainer){
  5034. var _local2:int;
  5035. var _local3:Object;
  5036. if (_arg1){
  5037. _local2 = 0;
  5038. while (_arg1.numChildren > _local2) {
  5039. _local3 = _arg1.getChildAt(_local2);
  5040. if ((_local3 is DisplayObject)){
  5041. trace(((((("child[" + _local2) + "]:") + typeof(_local3)) + " name:") + (_local3 as DisplayObject).name));
  5042. } else {
  5043. trace(((("child[" + _local2) + "]:") + typeof(_local3)));
  5044. };
  5045. _local2++;
  5046. };
  5047. };
  5048. }
  5049.  
  5050. }
  5051. }//package gm
  5052. package gm.animatedelement {
  5053. import flash.display.*;
  5054. import flash.events.*;
  5055. import caurina.transitions.*;
  5056. import gm.data.customdrawfunctions.*;
  5057. import gm.focuselement.*;
  5058. import fl.transitions.easing.*;
  5059.  
  5060. public class AnimatedElement extends FocusElement {
  5061.  
  5062. public var m_Property:String = "";
  5063. public var m_ElementPath:String = "";
  5064. public var m_Easing:String = "linear";
  5065. public var m_Begin:Number = 0;
  5066. public var m_Finish:Number = 1;
  5067. public var m_Duration:Number = 1;
  5068. public var m_DurationTypeSeconds:Boolean = true;
  5069. public var m_Playing:Boolean = false;
  5070. public var m_LogicTweenVal:Number = 0xFFFFFF;
  5071.  
  5072. public function AnimatedElement(){
  5073. addEventListener(Event.ACTIVATE, onActivate);
  5074. }
  5075. public function get property():String{
  5076. return (m_Property);
  5077. }
  5078. public function set property(_arg1:String):void{
  5079. m_Property = _arg1;
  5080. }
  5081. public function get elementPath():String{
  5082. return (m_ElementPath);
  5083. }
  5084. public function set elementPath(_arg1:String):void{
  5085. m_ElementPath = _arg1;
  5086. }
  5087. public function get easing():String{
  5088. return (m_Easing);
  5089. }
  5090. public function set easing(_arg1:String):void{
  5091. m_Easing = _arg1;
  5092. }
  5093. public function get begin():Number{
  5094. return (m_Begin);
  5095. }
  5096. public function set begin(_arg1:Number):void{
  5097. m_Begin = _arg1;
  5098. }
  5099. public function get finish():Number{
  5100. return (m_Finish);
  5101. }
  5102. public function set finish(_arg1:Number):void{
  5103. m_Finish = _arg1;
  5104. }
  5105. public function get duration():Number{
  5106. return (m_Duration);
  5107. }
  5108. public function set duration(_arg1:Number):void{
  5109. m_Duration = _arg1;
  5110. }
  5111. public function get durationTypeSeconds():Boolean{
  5112. return (m_DurationTypeSeconds);
  5113. }
  5114. public function set durationTypeSeconds(_arg1:Boolean):void{
  5115. m_DurationTypeSeconds = _arg1;
  5116. }
  5117. public function onActivate(_arg1:Event){
  5118. var _local2:MovieClip;
  5119. if (property){
  5120. if (0 < m_ElementPath.length){
  5121. _local2 = MovieClip(getChildByName(m_ElementPath));
  5122. _local2[property] = begin;
  5123. } else {
  5124. this[property] = begin;
  5125. };
  5126. };
  5127. }
  5128. public function continueTo(_arg1:Number, _arg2:Number=0){
  5129. var _to:* = _arg1;
  5130. var _duration:int = _arg2;
  5131. var tweeningParameters:* = new Object();
  5132. tweeningParameters[property] = _to;
  5133. if (this.visible == false){
  5134. tweeningParameters.onStart = function (_arg1){
  5135. this.visible = true;
  5136. reportFrame("startContinueTo");
  5137. };
  5138. tweeningParameters.onStartParams = [null];
  5139. };
  5140. if ((((0 == _to)) && (("alpha" == property)))){
  5141. tweeningParameters.onComplete = function (_arg1){
  5142. this.visible = false;
  5143. reportFrame("endContinueTo");
  5144. };
  5145. tweeningParameters.onCompleteParams = [null];
  5146. };
  5147. tweeningParameters.time = duration;
  5148. Tweener.removeTweens(this);
  5149. Tweener.addTween(this, tweeningParameters);
  5150. }
  5151. public function directTo(_arg1:Number){
  5152. Tweener.removeTweens(this);
  5153. if ((((0 == _arg1)) && (("alpha" == property)))){
  5154. this.visible = false;
  5155. } else {
  5156. if (this.visible == false){
  5157. this.visible = true;
  5158. };
  5159. };
  5160. this[property] = _arg1;
  5161. }
  5162. public function logicToDirect(_arg1:Number){
  5163. var _local2:MovieClip;
  5164. Tweener.removeTweens(this);
  5165. m_LogicTweenVal = (((finish - begin) * _arg1) + begin);
  5166. if (0 < m_ElementPath.length){
  5167. _local2 = MovieClip(getChildByName(m_ElementPath));
  5168. Tweener.removeTweens(_local2);
  5169. _local2[property] = m_LogicTweenVal;
  5170. } else {
  5171. this[property] = m_LogicTweenVal;
  5172. };
  5173. }
  5174. public function logicToTween(_arg1:Number){
  5175. var _local3:Object;
  5176. m_LogicTweenVal = (((finish - begin) * _arg1) + begin);
  5177. var _local2:MovieClip;
  5178. if (0 < m_ElementPath.length){
  5179. _local2 = MovieClip(getChildByName(m_ElementPath));
  5180. } else {
  5181. _local2 = this;
  5182. };
  5183. Tweener.removeTweens(this);
  5184. if (_local2){
  5185. Tweener.removeTweens(_local2);
  5186. _local3 = new Object();
  5187. _local3[property] = m_LogicTweenVal;
  5188. _local3.time = duration;
  5189. Tweener.addTween(_local2, _local3);
  5190. };
  5191. }
  5192. public function logicToDirectRotate(_arg1:Number){
  5193. var _local2:MovieClip;
  5194. var _local3:MovieClip;
  5195. if (m_LogicTweenVal != _arg1){
  5196. m_LogicTweenVal = _arg1;
  5197. Tweener.removeTweens(this);
  5198. _local2 = MovieClip(getChildByName("mcmask"));
  5199. _local3 = MovieClip(getChildByName("mcchild"));
  5200. CustomDrawFunctions.drawCircleMask(_local2, (_local3.width / 2), _arg1);
  5201. IggyFunctions.setObjectAntialiasingEnable(Shape(_local2.getChildAt(0)), false);
  5202. _local3.mask = _local2;
  5203. };
  5204. }
  5205. public function logicTweenVal():Number{
  5206. return (m_LogicTweenVal);
  5207. }
  5208. public function get playing():Boolean{
  5209. return (m_Playing);
  5210. }
  5211. public function set playing(_arg1:Boolean):void{
  5212. m_Playing = _arg1;
  5213. }
  5214.  
  5215. }
  5216. }//package gm.animatedelement
  5217. package gm.screen {
  5218. import gm.*;
  5219. import flash.events.*;
  5220. import flash.geom.*;
  5221. import gm.focuselement.*;
  5222.  
  5223. public dynamic class Screen extends FocusElement {
  5224.  
  5225. private var m_WaitFrames:uint = 3;
  5226. private var m_ComponentPropertiesLoaded:Boolean = false;
  5227. public var m_Platform:String = "pc";
  5228. public var m_DefaultFocus:String = "";
  5229. public var m_ScreenClass:String = "";
  5230. public var m_FocusSavePolicy:String = "reinit";
  5231. public var m_MinWidth:uint = 0;
  5232. public var m_MinHeight:uint = 0;
  5233. private var m_FullRect:Rectangle;
  5234. private var m_SafeRect:Rectangle;
  5235.  
  5236. public function Screen(){
  5237. m_FullRect = new Rectangle();
  5238. m_SafeRect = new Rectangle();
  5239. super();
  5240. if (logging.level >= logging.INFO){
  5241. logging.log("Screen.Screen");
  5242. };
  5243. addEventListener(Event.ENTER_FRAME, onEnterFrame);
  5244. m_FullRect.x = 0;
  5245. m_FullRect.y = 0;
  5246. m_FullRect.width = minWidth;
  5247. m_FullRect.height = minHeight;
  5248. m_SafeRect.x = 0;
  5249. m_SafeRect.y = 0;
  5250. m_SafeRect.width = minWidth;
  5251. m_SafeRect.height = minHeight;
  5252. this.alpha = 0;
  5253. }
  5254. public function get platform():String{
  5255. return (m_Platform);
  5256. }
  5257. public function set platform(_arg1:String):void{
  5258. m_Platform = _arg1;
  5259. }
  5260. public function get defaultFocus():String{
  5261. return (m_DefaultFocus);
  5262. }
  5263. public function set defaultFocus(_arg1:String):void{
  5264. m_DefaultFocus = _arg1;
  5265. }
  5266. public function get screenClass():String{
  5267. return (m_ScreenClass);
  5268. }
  5269. public function set screenClass(_arg1:String):void{
  5270. m_ScreenClass = _arg1;
  5271. }
  5272. public function get focusSavePolicy():String{
  5273. return (m_FocusSavePolicy);
  5274. }
  5275. public function set focusSavePolicy(_arg1:String):void{
  5276. m_FocusSavePolicy = _arg1;
  5277. }
  5278. public function get minWidth():uint{
  5279. return (m_MinWidth);
  5280. }
  5281. public function set minWidth(_arg1:uint):void{
  5282. m_MinWidth = _arg1;
  5283. }
  5284. public function get minHeight():uint{
  5285. return (m_MinHeight);
  5286. }
  5287. public function set minHeight(_arg1:uint):void{
  5288. m_MinHeight = _arg1;
  5289. }
  5290. public function get waitFramesTillVisible():uint{
  5291. return (m_WaitFrames);
  5292. }
  5293. public function set waitFramesTillVisible(_arg1:uint):void{
  5294. m_WaitFrames = _arg1;
  5295. }
  5296. function onEnterFrame(_arg1:Event):void{
  5297. if (logging.level >= logging.INFO){
  5298. logging.logArgs("onEnterFrame", arguments);
  5299. };
  5300. if (!m_ComponentPropertiesLoaded){
  5301. m_ComponentPropertiesLoaded = true;
  5302. if (m_ScreenClass.length > 0){
  5303. callHelper.init(this, m_ScreenClass);
  5304. };
  5305. dispatchEvent(new ScreenEvent(ScreenEvent.COMPONENT_PROPERTIES_LOADED));
  5306. m_WaitFrames = waitFramesTillVisible;
  5307. };
  5308. this.alpha = 0;
  5309. if (0 == m_WaitFrames){
  5310. removeEventListener(Event.ENTER_FRAME, onEnterFrame);
  5311. this.alpha = 1;
  5312. };
  5313. m_WaitFrames--;
  5314. }
  5315. public function get fullArea():Rectangle{
  5316. return (m_FullRect);
  5317. }
  5318. public function get safeArea():Rectangle{
  5319. return (m_SafeRect);
  5320. }
  5321. function setFullArea(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
  5322. m_FullRect.left = _arg1;
  5323. m_FullRect.top = _arg2;
  5324. m_FullRect.right = _arg3;
  5325. m_FullRect.bottom = _arg4;
  5326. dispatchEvent(new ScreenEvent(ScreenEvent.FULL_AREA_RESIZE));
  5327. }
  5328. function setSafeArea(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number):void{
  5329. m_SafeRect.left = _arg1;
  5330. m_SafeRect.top = _arg2;
  5331. m_SafeRect.right = _arg3;
  5332. m_SafeRect.bottom = _arg4;
  5333. dispatchEvent(new ScreenEvent(ScreenEvent.SAFE_AREA_RESIZE));
  5334. }
  5335.  
  5336. }
  5337. }//package gm.screen
  5338. package gm.screen {
  5339. import flash.events.*;
  5340.  
  5341. public class ScreenEvent extends Event {
  5342.  
  5343. public static const SAFE_AREA_RESIZE:String = "screensafearearesize";
  5344. public static const FULL_AREA_RESIZE:String = "screenfullarearesize";
  5345. public static const COMPONENT_PROPERTIES_LOADED:String = "componentpropertiesloaded";
  5346.  
  5347. public function ScreenEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
  5348. super(_arg1, _arg2, _arg3);
  5349. }
  5350. override public function clone():Event{
  5351. return (new ScreenEvent(type, bubbles, cancelable));
  5352. }
  5353. override public function toString():String{
  5354. return (formatToString("ScreenEvent", "type", "bubbles", "cancelable", "eventPhase"));
  5355. }
  5356.  
  5357. }
  5358. }//package gm.screen
  5359. package gm {
  5360. import flash.display.*;
  5361. import flash.events.*;
  5362.  
  5363. public final class focusListener {
  5364.  
  5365. var m_Element:DisplayObject;
  5366. var m_RollOver:Boolean;
  5367. var m_Root:iRootElement;
  5368.  
  5369. public function focusListener(_arg1:DisplayObject, _arg2:iRootElement){
  5370. m_Element = _arg1;
  5371. m_Root = _arg2;
  5372. m_RollOver = false;
  5373. }
  5374. public function onIn(_arg1:FocusEvent){
  5375. if (logging.level >= logging.INFO){
  5376. logging.log("focusListener.onIn");
  5377. };
  5378. m_Root.callExternal(m_Element, callbackCodes.g_ulCallbackCodeSetFocus);
  5379. }
  5380. public function onOut(_arg1:FocusEvent){
  5381. if (logging.level >= logging.INFO){
  5382. logging.log("focusListener.onOut");
  5383. };
  5384. m_Root.callExternal(m_Element, callbackCodes.g_ulCallbackCodeKillFocus);
  5385. }
  5386.  
  5387. }
  5388. }//package gm
  5389. package gm.scrollbar {
  5390. import gm.focuselement.*;
  5391.  
  5392. public class Scrollbar extends FocusElement {
  5393.  
  5394. public var m_ScaleBar:Boolean = true;
  5395. public var m_MaxValue:int = 0;
  5396. public var m_Step:uint = 0;
  5397. public var m_PageSize:uint = 0;
  5398. public var m_SoundStep:String = "";
  5399. public var m_SoundNegative:String = "";
  5400.  
  5401. public function get scaleBar():Boolean{
  5402. return (m_ScaleBar);
  5403. }
  5404. public function set scaleBar(_arg1:Boolean):void{
  5405. m_ScaleBar = _arg1;
  5406. }
  5407. public function get maxValue():int{
  5408. return (m_MaxValue);
  5409. }
  5410. public function set maxValue(_arg1:int):void{
  5411. m_MaxValue = _arg1;
  5412. }
  5413. public function get step():uint{
  5414. return (m_Step);
  5415. }
  5416. public function set step(_arg1:uint):void{
  5417. m_Step = _arg1;
  5418. }
  5419. public function get pageSize():int{
  5420. return (m_PageSize);
  5421. }
  5422. public function set pageSize(_arg1:int):void{
  5423. m_PageSize = _arg1;
  5424. }
  5425. public function get soundStep():String{
  5426. return (m_SoundStep);
  5427. }
  5428. public function set soundStep(_arg1:String):void{
  5429. m_SoundStep = _arg1;
  5430. }
  5431. public function get soundNegative():String{
  5432. return (m_SoundNegative);
  5433. }
  5434. public function set soundNegative(_arg1:String):void{
  5435. m_SoundNegative = _arg1;
  5436. }
  5437.  
  5438. }
  5439. }//package gm.scrollbar
  5440. package gm.textfield {
  5441. import flash.events.*;
  5442.  
  5443. public class TextfieldEvent extends Event {
  5444.  
  5445. public static const TEXT_UPDATED:String = "textupdated";
  5446. public static const RESIZE_DONE:String = "textresizedone";
  5447.  
  5448. public function TextfieldEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
  5449. super(_arg1, _arg2, _arg3);
  5450. }
  5451. override public function clone():Event{
  5452. return (new TextfieldEvent(type, bubbles, cancelable));
  5453. }
  5454. override public function toString():String{
  5455. return ((("[TextfieldEvent (type=" + type) + ")]"));
  5456. }
  5457.  
  5458. }
  5459. }//package gm.textfield
  5460. package gm.textfield {
  5461. import flash.display.*;
  5462. import gm.*;
  5463. import flash.text.*;
  5464. import gm.focuselement.*;
  5465. import flash.utils.*;
  5466. import flash.filters.*;
  5467.  
  5468. public class Textfield extends FocusElement {
  5469.  
  5470. public static const GTA_LEFT:uint = 0;
  5471. public static const GTA_BLOCK:uint = 1;
  5472. public static const GTA_CENTER:uint = 2;
  5473. public static const GTA_RIGHT:uint = 3;
  5474.  
  5475. private static var s_TextVariables:Dictionary = new Dictionary(true);
  5476.  
  5477. public var m_Textfield:TextField;
  5478. public var m_TextRes:String = "";
  5479. public var m_HtmlText:Boolean = false;
  5480. public var m_Bold:Boolean = false;
  5481. public var m_Italic:Boolean = false;
  5482. public var m_Underline:Boolean = false;
  5483. public var m_AutosizeX:Boolean = false;
  5484. public var m_AutosizeY:Boolean = false;
  5485. public var m_TextAlignH:String = "center";
  5486. public var m_TextAlignV:uint = 0;
  5487. public var m_ColorRes:String = "ID_GUI_DEF_COLOR_DEFAULT";
  5488. public var m_FilterColorRes:String = "ID_GUI_DEF_COLOR_FILTER";
  5489. public var m_FontSize:uint = 0;
  5490.  
  5491. public function Textfield(){
  5492. m_Textfield = (getChildByName("textfeld") as TextField);
  5493. }
  5494. public static function simulateUpdate(_arg1:Textfield, _arg2:uint, _arg3:Boolean=false, _arg4:Boolean=false){
  5495. var _local5:MovieClip = (_arg1 as MovieClip);
  5496. if (!s_TextVariables[_arg1]){
  5497. s_TextVariables[_arg1] = new Object();
  5498. };
  5499. var _local6:* = s_TextVariables[_arg1];
  5500. if (!_local6.hasOwnProperty("m_DefaultX")){
  5501. _local6["m_DefaultX"] = _arg1.x;
  5502. _local6["m_DefaultY"] = _arg1.y;
  5503. _local6["m_ActualWidth"] = _arg1.width;
  5504. _local6["m_ActualHeight"] = _arg1.height;
  5505. _local6["m_DefaultWidth"] = _local6["m_ActualWidth"];
  5506. _local6["m_DefaultHeight"] = _local6["m_ActualHeight"];
  5507. _local6["m_DefaultX"] = _arg1.x;
  5508. _local6["m_DefaultX"] = _arg1.x;
  5509. _local6["m_DefaultX"] = _arg1.x;
  5510. _local6["m_TFX"] = _arg1.m_Textfield.x;
  5511. _local6["m_TFY"] = _arg1.m_Textfield.y;
  5512. };
  5513. if (_arg3){
  5514. _local6.m_ActualWidth = _arg1.m_Textfield.textWidth;
  5515. _local6.m_ActualWidth = (_local6.m_ActualWidth + 8);
  5516. _arg1.width = _local6.m_ActualWidth;
  5517. };
  5518. var _local7:TextFormat = _arg1.m_Textfield.defaultTextFormat;
  5519. if (_arg4){
  5520. if (_arg1.m_Textfield.multiline){
  5521. _local6.m_ActualHeight = (_arg1.m_Textfield.textHeight + _local7.size);
  5522. };
  5523. };
  5524. _arg1.m_Textfield.width = _local6.m_ActualWidth;
  5525. _arg1.m_Textfield.height = _local6.m_ActualHeight;
  5526. _arg1.m_Textfield.scaleX = 1;
  5527. _arg1.m_Textfield.scaleY = 1;
  5528. _arg1.scaleX = 1;
  5529. _arg1.scaleY = 1;
  5530. var _local8:Number = _arg1.m_Textfield.width;
  5531. var _local9:Number = (_local6.m_DefaultWidth - _local8);
  5532. switch (_arg2){
  5533. case GTA_LEFT:
  5534. case GTA_BLOCK:
  5535. _arg1.x = _local6.m_DefaultX;
  5536. break;
  5537. case GTA_CENTER:
  5538. _arg1.x = (_local6.m_DefaultX + (_local9 * 0.5));
  5539. break;
  5540. case GTA_RIGHT:
  5541. _arg1.x = (_local6.m_DefaultX + _local9);
  5542. break;
  5543. };
  5544. var _local10:Number = 0.15;
  5545. _arg1.m_Textfield.y = (_local6.m_TFY + (Number(_local7.size) * _local10));
  5546. _arg1.m_Textfield.x = (_local6.m_TFX + 2);
  5547. _arg1.fireResizeDoneEvent();
  5548. var _local11:String = _arg1.m_Textfield.text;
  5549. _arg1.m_Textfield.text = _local11;
  5550. }
  5551. public static function setTextSimple(_arg1:DisplayObject, _arg2:String, _arg3:Boolean=false):void{
  5552. _arg1["textfeld"].text = _arg2;
  5553. _arg1.height = _arg1["textfeld"].textHeight;
  5554. _arg1.scaleX = 1;
  5555. _arg1.scaleY = 1;
  5556. _arg1["textfeld"].height = (_arg1["textfeld"].textHeight + 4);
  5557. if (_arg3){
  5558. _arg1["textfeld"].width = (_arg1["textfeld"].textWidth + 4);
  5559. };
  5560. _arg1["textfeld"].scaleX = 1;
  5561. _arg1["textfeld"].scaleY = 1;
  5562. _arg1.scaleX = 1;
  5563. _arg1.scaleY = 1;
  5564. Object(_arg1).fireResizeDoneEvent();
  5565. }
  5566.  
  5567. public function get textRes():String{
  5568. return (m_TextRes);
  5569. }
  5570. public function set textRes(_arg1:String):void{
  5571. if (m_TextRes != _arg1){
  5572. m_TextRes = _arg1;
  5573. };
  5574. }
  5575. public function get htmlText():Boolean{
  5576. return (m_HtmlText);
  5577. }
  5578. public function set htmlText(_arg1:Boolean):void{
  5579. m_HtmlText = _arg1;
  5580. }
  5581. public function get bold():Boolean{
  5582. return (m_Bold);
  5583. }
  5584. public function set bold(_arg1:Boolean):void{
  5585. m_Bold = _arg1;
  5586. }
  5587. public function get italic():Boolean{
  5588. return (m_Italic);
  5589. }
  5590. public function set italic(_arg1:Boolean):void{
  5591. m_Italic = _arg1;
  5592. }
  5593. public function get underline():Boolean{
  5594. return (m_Underline);
  5595. }
  5596. public function set underline(_arg1:Boolean):void{
  5597. m_Underline = _arg1;
  5598. }
  5599. public function get autosizeX():Boolean{
  5600. return (m_AutosizeX);
  5601. }
  5602. public function set autosizeX(_arg1:Boolean):void{
  5603. m_AutosizeX = _arg1;
  5604. }
  5605. public function get autosizeY():Boolean{
  5606. return (m_AutosizeY);
  5607. }
  5608. public function set autosizeY(_arg1:Boolean):void{
  5609. m_AutosizeY = _arg1;
  5610. }
  5611. public function get textAlignH():String{
  5612. return (m_TextAlignH);
  5613. }
  5614. public function set textAlignH(_arg1:String):void{
  5615. if (_arg1 == m_TextAlignH){
  5616. return;
  5617. };
  5618. m_TextAlignH = _arg1;
  5619. }
  5620. public function get textAlignV():uint{
  5621. return (m_TextAlignV);
  5622. }
  5623. public function set textAlignV(_arg1:uint):void{
  5624. m_TextAlignV = _arg1;
  5625. }
  5626. public function get colorRes():String{
  5627. return (m_ColorRes);
  5628. }
  5629. public function set colorRes(_arg1:String):void{
  5630. m_ColorRes = _arg1;
  5631. }
  5632. public function get fontSize():uint{
  5633. return (m_FontSize);
  5634. }
  5635. public function set fontSize(_arg1:uint):void{
  5636. m_FontSize = _arg1;
  5637. }
  5638. public function get filterColorRes():String{
  5639. return (m_FilterColorRes);
  5640. }
  5641. public function set filterColorRes(_arg1:String):void{
  5642. m_FilterColorRes = _arg1;
  5643. }
  5644. public function isEmpty():Boolean{
  5645. return ((m_Textfield.text == ""));
  5646. }
  5647. public function getDefaultTextFormatValue(_arg1:String){
  5648. var _local2:TextFormat = m_Textfield.defaultTextFormat;
  5649. return (_local2[_arg1]);
  5650. }
  5651. public function setDefaultTextFormatValue(_arg1:String, _arg2:Object):void{
  5652. var _local3:TextFormat = m_Textfield.defaultTextFormat;
  5653. _local3[_arg1] = _arg2;
  5654. m_Textfield.defaultTextFormat = _local3;
  5655. }
  5656. public function applyFilterColor(_arg1:uint){
  5657. var _local3:Array;
  5658. var _local4:Boolean;
  5659. var _local5:Object;
  5660. var _local6:Object;
  5661. var _local7:DropShadowFilter;
  5662. var _local8:GlowFilter;
  5663. if (logging.level >= logging.INFO){
  5664. logging.logArgs("applyFilterColor", arguments);
  5665. };
  5666. if (m_Textfield.filters.length > 0){
  5667. if (logging.level >= logging.VERBOSE){
  5668. logging.log("applyFilterColor: object has filters");
  5669. };
  5670. _local3 = m_Textfield.filters;
  5671. _local4 = false;
  5672. for (_local5 in _local3) {
  5673. _local6 = _local3[_local5];
  5674. if (logging.level >= logging.VERBOSE){
  5675. logging.log(("applyFilterColor: enumerating filter:" + _local6));
  5676. };
  5677. if ((_local6 is DropShadowFilter)){
  5678. if (logging.level >= logging.VERBOSE){
  5679. logging.log(("applying DropShadowFilter color:" + _arg1));
  5680. };
  5681. _local7 = (_local6 as DropShadowFilter);
  5682. _local4 = ((_local4) || (!((_local7.color == _arg1))));
  5683. _local7.color = _arg1;
  5684. } else {
  5685. if ((_local6 is GlowFilter)){
  5686. if (logging.level >= logging.VERBOSE){
  5687. logging.log(("applying GlowFilter color:" + _arg1));
  5688. };
  5689. _local8 = (_local6 as GlowFilter);
  5690. _local4 = ((_local4) || (!((_local8.color == _arg1))));
  5691. _local8.color = _arg1;
  5692. } else {
  5693. if ((_local6 is BlurFilter)){
  5694. } else {
  5695. if ((_local6 is BevelFilter)){
  5696. } else {
  5697. if ((_local6 is ColorMatrixFilter)){
  5698. } else {
  5699. if ((_local6 is GradientBevelFilter)){
  5700. } else {
  5701. if ((_local6 is GradientGlowFilter)){
  5702. };
  5703. };
  5704. };
  5705. };
  5706. };
  5707. };
  5708. };
  5709. };
  5710. if (_local4){
  5711. m_Textfield.filters = _local3;
  5712. };
  5713. };
  5714. }
  5715. public function getTextFormatValue(_arg1:String){
  5716. var _local2:TextFormat = m_Textfield.getTextFormat();
  5717. return (_local2[_arg1]);
  5718. }
  5719. public function setTextFormatValue(_arg1:String, _arg2:Object):void{
  5720. var _local3:TextFormat = m_Textfield.getTextFormat();
  5721. _local3[_arg1] = _arg2;
  5722. m_Textfield.setTextFormat(_local3);
  5723. }
  5724. public function fireTextUpdatedEvent(){
  5725. dispatchEvent(new TextfieldEvent(TextfieldEvent.TEXT_UPDATED));
  5726. }
  5727. public function fireResizeDoneEvent(){
  5728. dispatchEvent(new TextfieldEvent(TextfieldEvent.RESIZE_DONE));
  5729. }
  5730.  
  5731. }
  5732. }//package gm.textfield
  5733. package gm.element {
  5734. import flash.events.*;
  5735.  
  5736. public class ElementEvent extends Event {
  5737.  
  5738. public static const SHOW:String = "show";
  5739. public static const HIDE:String = "hide";
  5740.  
  5741. public function ElementEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
  5742. super(_arg1, _arg2, _arg3);
  5743. }
  5744. override public function clone():Event{
  5745. return (new ElementEvent(type, bubbles, cancelable));
  5746. }
  5747. override public function toString():String{
  5748. return ((("[ElementEventEvent (type=" + type) + ")]"));
  5749. }
  5750.  
  5751. }
  5752. }//package gm.element
  5753. package gm.element {
  5754. import flash.events.*;
  5755.  
  5756. public class GotoEvent extends Event {
  5757.  
  5758. public static const GOTO:String = "goto";
  5759.  
  5760. private var m_Frame:Object;
  5761. private var m_Play:Boolean;
  5762.  
  5763. public function GotoEvent(_arg1:Object, _arg2:Boolean, _arg3:Boolean=false, _arg4:Boolean=false){
  5764. m_Frame = _arg1;
  5765. m_Play = _arg2;
  5766. super(GotoEvent.GOTO, _arg3, _arg4);
  5767. }
  5768. override public function clone():Event{
  5769. return (new GotoEvent(type, frame, bubbles, cancelable));
  5770. }
  5771. override public function toString():String{
  5772. return (formatToString("GotoEvent", "type", "bubbles", "cancelable", "eventPhase", "frame", "play"));
  5773. }
  5774. public function get frame():Object{
  5775. return (m_Frame);
  5776. }
  5777. public function get play():Boolean{
  5778. return (m_Play);
  5779. }
  5780.  
  5781. }
  5782. }//package gm.element
  5783. package gm.element {
  5784. import flash.display.*;
  5785. import gm.*;
  5786.  
  5787. public class Element extends MovieClip {
  5788.  
  5789. public var m_Component:Boolean = true;
  5790.  
  5791. override public function get visible():Boolean{
  5792. return (super.visible);
  5793. }
  5794. override public function set visible(_arg1:Boolean):void{
  5795. if (super.visible == _arg1){
  5796. return;
  5797. };
  5798. super.visible = _arg1;
  5799. var _local2:String = ((_arg1) ? ElementEvent.SHOW : ElementEvent.HIDE);
  5800. dispatchEvent(new ElementEvent(_local2, true));
  5801. }
  5802. public function get isComponent():Boolean{
  5803. return (m_Component);
  5804. }
  5805. public function set isComponent(_arg1:Boolean):void{
  5806. m_Component = _arg1;
  5807. }
  5808. override public function gotoAndPlay(_arg1:Object, _arg2:String=null):void{
  5809. dispatchEvent(new GotoEvent(_arg1, true));
  5810. super.gotoAndPlay(_arg1, _arg2);
  5811. }
  5812. override public function gotoAndStop(_arg1:Object, _arg2:String=null):void{
  5813. dispatchEvent(new GotoEvent(_arg1, false));
  5814. super.gotoAndStop(_arg1, _arg2);
  5815. }
  5816. public function reportFrame(_arg1:String=null, _arg2:int=-1){
  5817. var _local5:Array;
  5818. var _local6:int;
  5819. var _local3:iRootElement = (root as iRootElement);
  5820. var _local4:String = _arg1;
  5821. if (_local3){
  5822. if (_local4 == null){
  5823. _local4 = "";
  5824. _local5 = currentLabels;
  5825. _local6 = 0;
  5826. while (_local5.length > _local6) {
  5827. if (_local5[_local6].frame == currentFrame){
  5828. _local4 = _local5[_local6].name;
  5829. break;
  5830. };
  5831. _local6++;
  5832. };
  5833. };
  5834. if (_arg2 == -1){
  5835. _arg2 = currentFrame;
  5836. };
  5837. _local3.callExternal(this, callbackCodes.g_ulCallbackCodeReportFrame, _arg2, _local4);
  5838. };
  5839. }
  5840. public function triggerSound(_arg1:String){
  5841. if (logging.level >= logging.INFO){
  5842. logging.log((((name + ".triggerSound( ") + _arg1) + " )"));
  5843. };
  5844. var _local2:iRootElement = (root as iRootElement);
  5845. if (_local2){
  5846. _local2.callExternal(this, callbackCodes.g_ulCallbackCodeTriggerSound, _arg1);
  5847. };
  5848. }
  5849.  
  5850. }
  5851. }//package gm.element
  5852. package gm {
  5853.  
  5854. public class callbackCodes {
  5855.  
  5856. public static const g_ulCallbackCodeNone:uint = 0;
  5857. public static const g_ulCallbackCodeInit:uint = 1;
  5858. public static const g_ulCallbackCodeKeyDown:uint = 2;
  5859. public static const g_ulCallbackCodeKeyUp:uint = 3;
  5860. public static const g_ulCallbackCodePressedAniDone:uint = 4;
  5861. public static const g_ulCallbackCodeSetFrame:uint = 5;
  5862. public static const g_ulCallbackCodeMouseDown:uint = 6;
  5863. public static const g_ulCallbackCodeMouseUp:uint = 7;
  5864. public static const g_ulCallbackCodeMouseMove:uint = 8;
  5865. public static const g_ulCallbackCodeMouseOver:uint = 9;
  5866. public static const g_ulCallbackCodeMouseOut:uint = 10;
  5867. public static const g_ulCallbackCodeMouseWheel:uint = 11;
  5868. public static const g_ulCallbackCodePressed:uint = 12;
  5869. public static const g_ulCallbackCodeReleased:uint = 13;
  5870. public static const g_ulCallbackCodeReleasedOutside:uint = 14;
  5871. public static const g_ulCallbackCodeMouseMoveGlobal:uint = 15;
  5872. public static const g_ulCallbackCodeEnterFrame:uint = 16;
  5873. public static const g_ulCallbackCodeSetFocus:uint = 17;
  5874. public static const g_ulCallbackCodeKillFocus:uint = 18;
  5875. public static const g_ulCallbackCodeTextChanged:uint = 19;
  5876. public static const g_ulCallbackCodeVideoCuePoint:uint = 20;
  5877. public static const g_ulCallbackCodeVideoSubtitle:uint = 21;
  5878. public static const g_ulCallbackCodeVideoInfo:uint = 22;
  5879. public static const g_ulCallbackCodeVideoStatus:uint = 23;
  5880. public static const g_ulCallbackCodeReportFrame:uint = 24;
  5881. public static const g_ulCallbackCodeSubmit:uint = 25;
  5882. public static const g_ulCallbackCodeRevert:uint = 26;
  5883. public static const g_ulCallbackCodeLayoutChanged:uint = hash.crc32("GCC_LAYOUT_CHANGED");
  5884. public static const g_ulCallbackCodeTriggerSound:uint = hash.crc32("GCC_TRIGGER_SOUND");
  5885. public static const g_ulMouseInputTypeNone:uint = 0;
  5886. public static const g_ulMouseInputTypePress:uint = 1;
  5887. public static const g_ulMouseInputTypeMove:uint = 2;
  5888. public static const g_ulMouseInputTypeRoll:uint = 4;
  5889. public static const g_ulMouseInputTypeReleaseOutside:uint = 8;
  5890. public static const g_ulMouseInputTypeWheel:uint = 16;
  5891.  
  5892. }
  5893. }//package gm
  5894. package gm {
  5895. import flash.display.*;
  5896. import flash.events.*;
  5897.  
  5898. public final class changeListener {
  5899.  
  5900. var m_Element:DisplayObject;
  5901. var m_Root:iRootElement;
  5902.  
  5903. public function changeListener(_arg1:DisplayObject, _arg2:iRootElement){
  5904. m_Element = _arg1;
  5905. m_Root = _arg2;
  5906. }
  5907. public function onChange(_arg1:Event){
  5908. if (logging.level >= logging.INFO){
  5909. logging.logArgs("onChange", arguments);
  5910. };
  5911. m_Root.callExternal(m_Element, callbackCodes.g_ulCallbackCodeTextChanged);
  5912. }
  5913. public function onKeyDown(_arg1:KeyboardEvent){
  5914. if (logging.level >= logging.INFO){
  5915. logging.logArgs("onKeyDown", arguments);
  5916. };
  5917. if (_arg1.charCode == 13){
  5918. m_Root.callExternal(m_Element, callbackCodes.g_ulCallbackCodeSubmit);
  5919. } else {
  5920. if (_arg1.charCode == 27){
  5921. m_Root.callExternal(m_Element, callbackCodes.g_ulCallbackCodeRevert);
  5922. };
  5923. };
  5924. }
  5925.  
  5926. }
  5927. }//package gm
  5928. package gm {
  5929.  
  5930. public class hash {
  5931.  
  5932. private static const HASH_COMPAT_PRIM:int = 999999991;
  5933. private static const HASH_PRIM:uint = 0xFFFFFFFB;
  5934. private static const CRC32Table:Array = new Array(0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 0x51DE003A, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290, 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 0xF262004E, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 0xA3BC0074, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918000, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117);
  5935.  
  5936. public static function iggyPathHash(_arg1:String, _arg2:uint):uint{
  5937. var _local3:uint = 4294900037;
  5938. var _local4 = -1;
  5939. var _local5:int = _arg1.length;
  5940. while (++_local4 < _local5) {
  5941. _arg2 = ((uint((113 * _arg2)) + _arg1.charCodeAt(_local4)) % _local3);
  5942. };
  5943. return (_arg2);
  5944. }
  5945. public static function crc32(_arg1:String):uint{
  5946. var _local4:uint;
  5947. var _local5:uint;
  5948. var _local2:uint = 0xFFFFFFFF;
  5949. var _local3:int;
  5950. while (_local3 < _arg1.length) {
  5951. _local4 = (_local2 ^ _arg1.charCodeAt(_local3));
  5952. _local5 = (_local2 >>> 8);
  5953. _local2 = (CRC32Table[(_local4 & 0xFF)] ^ _local5);
  5954. _local3++;
  5955. };
  5956. return (~(_local2));
  5957. }
  5958. public static function l10nHashCompat(_arg1:String):uint{
  5959. var _local2:int;
  5960. var _local3:int;
  5961. while (_local3 < _arg1.length) {
  5962. _local2 = ((int((113 * _local2)) + int(_arg1.charCodeAt(_local3))) % HASH_COMPAT_PRIM);
  5963. _local3++;
  5964. };
  5965. return (_local2);
  5966. }
  5967. public static function l10nHash(_arg1:String):uint{
  5968. var _local2:uint;
  5969. var _local3:int;
  5970. while (_local3 < _arg1.length) {
  5971. _local2 = ((uint((113 * _local2)) + int(_arg1.charCodeAt(_local3))) % HASH_PRIM);
  5972. _local3++;
  5973. };
  5974. return (_local2);
  5975. }
  5976.  
  5977. }
  5978. }//package gm
  5979. package gm.button {
  5980. import gm.focuselement.*;
  5981.  
  5982. public class Button extends FocusElement {
  5983.  
  5984. public var m_ButtonType:String = "normal";
  5985. public var m_InstaPress:Boolean = false;
  5986. public var m_HasTextfield:Boolean = false;
  5987. public var m_SoundPressPos:String = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  5988. public var m_SoundPressNeg:String = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  5989.  
  5990. public function get buttonType():String{
  5991. return (m_ButtonType);
  5992. }
  5993. public function set buttonType(_arg1:String):void{
  5994. m_ButtonType = _arg1;
  5995. }
  5996. public function get instaPress():Boolean{
  5997. return (m_InstaPress);
  5998. }
  5999. public function set instaPress(_arg1:Boolean):void{
  6000. m_InstaPress = _arg1;
  6001. }
  6002. public function get soundPressPos():String{
  6003. return (m_SoundPressPos);
  6004. }
  6005. public function set soundPressPos(_arg1:String):void{
  6006. m_SoundPressPos = _arg1;
  6007. }
  6008. public function get soundPressNeg():String{
  6009. return (m_SoundPressNeg);
  6010. }
  6011. public function set soundPressNeg(_arg1:String):void{
  6012. m_SoundPressNeg = _arg1;
  6013. }
  6014. public function get hasTextfield():Boolean{
  6015. return (m_HasTextfield);
  6016. }
  6017.  
  6018. }
  6019. }//package gm.button
  6020. package gm.focuselement {
  6021. import gm.element.*;
  6022.  
  6023. public class FocusElement extends Element {
  6024.  
  6025. public var m_Enabled:Boolean = true;
  6026. public var m_UnfocusedInput:Boolean = false;
  6027. public var m_RepeatRate:uint = 0;
  6028. public var m_RepeatDelay:uint = 0;
  6029. public var m_PressAction:String = "PRESS";
  6030. public var m_NavLeft:String = "";
  6031. public var m_NavRight:String = "";
  6032. public var m_NavUp:String = "";
  6033. public var m_NavDown:String = "";
  6034. public var m_NavTabForward:String = "";
  6035. public var m_NavTabBackward:String = "";
  6036. public var m_SoundFocus:String = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  6037. public var m_TooltipRes:String = "";
  6038. public var m_IsInfoTooltip:Boolean = false;
  6039. public var m_MouseWheel:Boolean = false;
  6040.  
  6041. override public function get enabled():Boolean{
  6042. return (m_Enabled);
  6043. }
  6044. override public function set enabled(_arg1:Boolean):void{
  6045. m_Enabled = _arg1;
  6046. }
  6047. public function get unfocusedInput():Boolean{
  6048. return (m_UnfocusedInput);
  6049. }
  6050. public function set unfocusedInput(_arg1:Boolean):void{
  6051. m_UnfocusedInput = _arg1;
  6052. }
  6053. public function get repeatRate():uint{
  6054. return (m_RepeatRate);
  6055. }
  6056. public function set repeatRate(_arg1:uint):void{
  6057. m_RepeatRate = _arg1;
  6058. }
  6059. public function get repeatDelay():uint{
  6060. return (m_RepeatDelay);
  6061. }
  6062. public function set repeatDelay(_arg1:uint):void{
  6063. m_RepeatDelay = _arg1;
  6064. }
  6065. public function get pressAction():String{
  6066. return (m_PressAction);
  6067. }
  6068. public function set pressAction(_arg1:String):void{
  6069. m_PressAction = _arg1;
  6070. }
  6071. public function get navLeft():String{
  6072. return (m_NavLeft);
  6073. }
  6074. public function set navLeft(_arg1:String):void{
  6075. m_NavLeft = _arg1;
  6076. }
  6077. public function get navRight():String{
  6078. return (m_NavRight);
  6079. }
  6080. public function set navRight(_arg1:String):void{
  6081. m_NavRight = _arg1;
  6082. }
  6083. public function get navUp():String{
  6084. return (m_NavUp);
  6085. }
  6086. public function set navUp(_arg1:String):void{
  6087. m_NavUp = _arg1;
  6088. }
  6089. public function get navDown():String{
  6090. return (m_NavDown);
  6091. }
  6092. public function set navDown(_arg1:String):void{
  6093. m_NavDown = _arg1;
  6094. }
  6095. public function get navTabForward():String{
  6096. return (m_NavTabForward);
  6097. }
  6098. public function set navTabForward(_arg1:String):void{
  6099. m_NavTabForward = _arg1;
  6100. }
  6101. public function get navTabBackward():String{
  6102. return (m_NavTabBackward);
  6103. }
  6104. public function set navTabBackward(_arg1:String):void{
  6105. m_NavTabBackward = _arg1;
  6106. }
  6107. public function get soundFocus():String{
  6108. return (m_SoundFocus);
  6109. }
  6110. public function set soundFocus(_arg1:String):void{
  6111. m_SoundFocus = _arg1;
  6112. }
  6113. public function get tooltipRes():String{
  6114. return (m_TooltipRes);
  6115. }
  6116. public function set tooltipRes(_arg1:String):void{
  6117. m_TooltipRes = _arg1;
  6118. }
  6119. public function get tooltipIsInfo():Boolean{
  6120. return (m_IsInfoTooltip);
  6121. }
  6122. public function set tooltipIsInfo(_arg1:Boolean):void{
  6123. m_IsInfoTooltip = _arg1;
  6124. }
  6125. public function get mouseWheel():Boolean{
  6126. return (m_MouseWheel);
  6127. }
  6128. public function set mouseWheel(_arg1:Boolean):void{
  6129. m_MouseWheel = _arg1;
  6130. }
  6131.  
  6132. }
  6133. }//package gm.focuselement
  6134. package gm {
  6135. import flash.display.*;
  6136.  
  6137. public class callHelper {
  6138.  
  6139. public static function pressedAniDone(_arg1:DisplayObject){
  6140. var _local2:iRootElement = (_arg1.root as iRootElement);
  6141. _local2.callExternal(_arg1, callbackCodes.g_ulCallbackCodePressedAniDone);
  6142. }
  6143. public static function setFrame(_arg1:DisplayObject){
  6144. var _local2:iRootElement = (_arg1.root as iRootElement);
  6145. _local2.callExternal(_arg1, callbackCodes.g_ulCallbackCodeSetFrame);
  6146. }
  6147. public static function init(_arg1:DisplayObject, _arg2:String){
  6148. if (logging.level >= logging.INFO){
  6149. logging.log((((("callHelper.init( " + _arg1) + ", ") + _arg2) + " )"));
  6150. };
  6151. var _local3:iRootElement = (_arg1.root as iRootElement);
  6152. _local3.callExternal(_arg1, callbackCodes.g_ulCallbackCodeInit, _arg2);
  6153. }
  6154. public static function triggerSound(_arg1:DisplayObject, _arg2:String):void{
  6155. if (logging.level >= logging.INFO){
  6156. logging.log((((("triggerSoundEvent( " + _arg1) + ", ") + _arg2) + " )"));
  6157. };
  6158. var _local3:iRootElement = (_arg1.root as iRootElement);
  6159. if (_local3){
  6160. _local3.callExternal(_arg1, callbackCodes.g_ulCallbackCodeTriggerSound, _arg2);
  6161. };
  6162. }
  6163.  
  6164. }
  6165. }//package gm
  6166. package gm {
  6167. import flash.display.*;
  6168. import flash.events.*;
  6169. import gm.focuselement.*;
  6170.  
  6171. public final class mouseHandler {
  6172.  
  6173. const MOUSE_FLAGS:uint;
  6174.  
  6175. private var m_Root:rootElement;
  6176. private var m_Buttons:uint;
  6177. private var m_OutsideCheckTarget:Array;
  6178. private var m_Over:Object = null;
  6179. var m_MouseDownTarget:Array;
  6180.  
  6181. public function mouseHandler(_arg1:rootElement){
  6182. m_OutsideCheckTarget = new Array();
  6183. MOUSE_FLAGS = ((((callbackCodes.g_ulMouseInputTypePress | callbackCodes.g_ulMouseInputTypeMove) | callbackCodes.g_ulMouseInputTypeReleaseOutside) | callbackCodes.g_ulMouseInputTypeRoll) | callbackCodes.g_ulMouseInputTypeWheel);
  6184. m_MouseDownTarget = new Array(definitions.MOUSE_BTN_CNT);
  6185. super();
  6186. m_Root = _arg1;
  6187. m_Buttons = 0;
  6188. var _local2:Object = m_Root.stage;
  6189. if (_local2){
  6190. _local2.addEventListener(MouseEvent.MOUSE_DOWN, onStageMouseDownLeft);
  6191. _local2.addEventListener(MouseEvent.MOUSE_UP, onStageMouseUpLeft);
  6192. _local2.addEventListener(definitions.MIDDLE_MOUSE_DOWN, onStageMouseDownMiddle);
  6193. _local2.addEventListener(definitions.MIDDLE_MOUSE_UP, onStageMouseUpMiddle);
  6194. _local2.addEventListener(definitions.RIGHT_MOUSE_DOWN, onStageMouseDownRight);
  6195. _local2.addEventListener(definitions.RIGHT_MOUSE_UP, onStageMouseUpRight);
  6196. _local2.addEventListener(MouseEvent.MOUSE_MOVE, onStageMouseMove);
  6197. _local2.addEventListener(MouseEvent.MOUSE_WHEEL, onStageMouseWheel);
  6198. };
  6199. }
  6200. private function tracePath(_arg1:Object):String{
  6201. var _local3:Object;
  6202. var _local2:String = new String();
  6203. if ((_arg1 is DisplayObject)){
  6204. _local3 = _arg1;
  6205. while (null != _local3) {
  6206. if ((_local3 is DisplayObject)){
  6207. if (_local3 != m_Root.stage){
  6208. _local2 = (((_local3 as DisplayObject).name + (((_local2.length > 0)) ? "." : "")) + _local2);
  6209. };
  6210. };
  6211. _local3 = _local3.parent;
  6212. };
  6213. };
  6214. _local2 = (_local2 + (("(" + _arg1.toString()) + ")"));
  6215. return (_local2);
  6216. }
  6217. public function addMouseHandler(_arg1:DisplayObject, _arg2:uint){
  6218. var _local4:FocusElement;
  6219. if (logging.level >= logging.INFO){
  6220. logging.logArgs(("addMouseHandler:" + tracePath(_arg1)), arguments);
  6221. };
  6222. if ((_arg2 & MOUSE_FLAGS)){
  6223. if (_arg1){
  6224. _local4 = (_arg1 as FocusElement);
  6225. if ((((_arg2 & callbackCodes.g_ulMouseInputTypeWheel)) || (((_local4) && (_local4.mouseWheel))))){
  6226. if (!_arg1.hasEventListener(MouseEvent.MOUSE_WHEEL)){
  6227. if (logging.level >= logging.INFO){
  6228. logging.log("\t+ wheel handler");
  6229. };
  6230. _arg1.addEventListener(MouseEvent.MOUSE_WHEEL, onWheel);
  6231. } else {
  6232. if (logging.level >= logging.WARNING){
  6233. logging.log("\t object already has MOUSE_WHEEL listener, not adding!");
  6234. };
  6235. };
  6236. };
  6237. if ((_arg2 & callbackCodes.g_ulMouseInputTypePress)){
  6238. if (!_arg1.hasEventListener(MouseEvent.MOUSE_DOWN)){
  6239. if (logging.level >= logging.INFO){
  6240. logging.log("\t+ down handler");
  6241. };
  6242. _arg1.addEventListener(MouseEvent.MOUSE_DOWN, onDownLeft);
  6243. _arg1.addEventListener(definitions.MIDDLE_MOUSE_DOWN, onDownMiddle);
  6244. _arg1.addEventListener(definitions.RIGHT_MOUSE_DOWN, onDownRight);
  6245. } else {
  6246. if (logging.level >= logging.WARNING){
  6247. logging.log("\t object already has MOUSE_DOWN listener, not adding!");
  6248. };
  6249. };
  6250. if (!_arg1.hasEventListener(MouseEvent.MOUSE_UP)){
  6251. if (logging.level >= logging.INFO){
  6252. logging.log("\t+ up handler");
  6253. };
  6254. _arg1.addEventListener(MouseEvent.MOUSE_UP, onUpLeft);
  6255. _arg1.addEventListener(definitions.MIDDLE_MOUSE_UP, onUpMiddle);
  6256. _arg1.addEventListener(definitions.RIGHT_MOUSE_UP, onUpRight);
  6257. } else {
  6258. if (logging.level >= logging.WARNING){
  6259. logging.log("\t object already has MOUSE_UP listener, not adding!");
  6260. };
  6261. };
  6262. };
  6263. if ((_arg2 & callbackCodes.g_ulMouseInputTypeMove)){
  6264. if (!_arg1.hasEventListener(MouseEvent.MOUSE_MOVE)){
  6265. if (logging.level >= logging.INFO){
  6266. logging.log("\t+ move handler");
  6267. };
  6268. _arg1.addEventListener(MouseEvent.MOUSE_MOVE, onMove);
  6269. } else {
  6270. if (logging.level >= logging.WARNING){
  6271. logging.log("\t object already has MOUSE_MOVE listener, not adding!");
  6272. };
  6273. };
  6274. };
  6275. if ((_arg2 & callbackCodes.g_ulMouseInputTypeRoll)){
  6276. if (!_arg1.hasEventListener(MouseEvent.MOUSE_OVER)){
  6277. if (logging.level >= logging.INFO){
  6278. logging.log("\t+ roll handler");
  6279. };
  6280. _arg1.addEventListener(MouseEvent.MOUSE_OVER, onMouseOver);
  6281. } else {
  6282. if (logging.level >= logging.WARNING){
  6283. logging.log("\t object already has MOUSE_OVER listener, not adding!");
  6284. };
  6285. };
  6286. };
  6287. };
  6288. } else {
  6289. if (logging.level >= logging.WARNING){
  6290. logging.log("\tNot matched mouse flags!");
  6291. };
  6292. };
  6293. }
  6294. public function onMouseOver(_arg1:MouseEvent){
  6295. if ((((((_arg1.currentTarget is DisplayObject)) && (_arg1.currentTarget.hasEventListener(MouseEvent.MOUSE_OVER)))) && (!((m_Over == _arg1.currentTarget))))){
  6296. if (logging.level >= logging.INFO){
  6297. logging.logArgs(((("onMouseOver target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6298. };
  6299. if (((m_Over) && (!((m_Over == _arg1.currentTarget))))){
  6300. if (logging.level >= logging.INFO){
  6301. logging.log(("synthetic_onMouseOut target:" + tracePath(m_Over)));
  6302. };
  6303. m_Root.callExternal((m_Over as DisplayObject), callbackCodes.g_ulCallbackCodeMouseOut, 0, 0);
  6304. };
  6305. m_Over = _arg1.currentTarget;
  6306. _arg1.stopPropagation();
  6307. m_Root.callExternal((_arg1.currentTarget as DisplayObject), callbackCodes.g_ulCallbackCodeMouseOver, 0, 0);
  6308. _arg1.currentTarget.addEventListener(MouseEvent.ROLL_OUT, onMouseOut);
  6309. };
  6310. }
  6311. public function onMouseOut(_arg1:MouseEvent){
  6312. if ((_arg1.currentTarget is DisplayObject)){
  6313. if (logging.level >= logging.INFO){
  6314. logging.logArgs(((("onMouseOut target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6315. };
  6316. m_Over = null;
  6317. _arg1.currentTarget.removeEventListener(MouseEvent.ROLL_OUT, onMouseOut);
  6318. _arg1.stopPropagation();
  6319. m_Root.callExternal((_arg1.currentTarget as DisplayObject), callbackCodes.g_ulCallbackCodeMouseOut, 0, 0);
  6320. };
  6321. }
  6322. public function onMove(_arg1:MouseEvent){
  6323. if (logging.level >= logging.VERBOSE){
  6324. logging.logArgs(((("onMove target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6325. };
  6326. if ((_arg1.currentTarget is DisplayObject)){
  6327. _arg1.stopPropagation();
  6328. m_Root.callExternal((_arg1.currentTarget as DisplayObject), callbackCodes.g_ulCallbackCodeMouseMove, 0, m_Buttons, _arg1.stageX, _arg1.stageY);
  6329. m_Root.callExternal(m_Root, callbackCodes.g_ulCallbackCodeMouseMoveGlobal, 0, m_Buttons, _arg1.stageX, _arg1.stageY);
  6330. };
  6331. }
  6332. public function onDownLeft(_arg1:MouseEvent){
  6333. if (logging.level >= logging.INFO){
  6334. logging.logArgs(((("onDownLeft target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6335. };
  6336. _arg1.stopPropagation();
  6337. m_Buttons = (m_Buttons | 1);
  6338. onDown(definitions.MOUSE_BTN_LEFT, _arg1);
  6339. }
  6340. public function onDownMiddle(_arg1:MouseEvent){
  6341. if (logging.level >= logging.INFO){
  6342. logging.logArgs(((("onDownMiddle target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6343. };
  6344. _arg1.stopPropagation();
  6345. m_Buttons = (m_Buttons | 4);
  6346. onDown(definitions.MOUSE_BTN_MIDDLE, _arg1);
  6347. }
  6348. public function onDownRight(_arg1:MouseEvent){
  6349. if (logging.level >= logging.INFO){
  6350. logging.logArgs(((("onDownRight target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6351. };
  6352. _arg1.stopPropagation();
  6353. m_Buttons = (m_Buttons | 2);
  6354. onDown(definitions.MOUSE_BTN_RIGHT, _arg1);
  6355. }
  6356. public function onUpLeft(_arg1:MouseEvent){
  6357. if (logging.level >= logging.INFO){
  6358. logging.logArgs(((("onUpLeft target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6359. };
  6360. _arg1.stopPropagation();
  6361. m_Buttons = (m_Buttons & ~(1));
  6362. onUp(definitions.MOUSE_BTN_LEFT, _arg1);
  6363. }
  6364. public function onUpMiddle(_arg1:MouseEvent){
  6365. if (logging.level >= logging.INFO){
  6366. logging.logArgs(((("onUpMiddle target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6367. };
  6368. _arg1.stopPropagation();
  6369. m_Buttons = (m_Buttons & ~(4));
  6370. onUp(definitions.MOUSE_BTN_MIDDLE, _arg1);
  6371. }
  6372. public function onUpRight(_arg1:MouseEvent){
  6373. if (logging.level >= logging.INFO){
  6374. logging.logArgs(((("onUpRight target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6375. };
  6376. _arg1.stopPropagation();
  6377. m_Buttons = (m_Buttons & ~(2));
  6378. onUp(definitions.MOUSE_BTN_RIGHT, _arg1);
  6379. }
  6380. public function onWheel(_arg1:MouseEvent){
  6381. if ((_arg1.currentTarget is DisplayObject)){
  6382. if (logging.level >= logging.INFO){
  6383. logging.logArgs(((("onWheel target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6384. };
  6385. _arg1.stopPropagation();
  6386. m_Root.callExternal((_arg1.currentTarget as DisplayObject), callbackCodes.g_ulCallbackCodeMouseWheel, 0, m_Buttons, _arg1.stageX, _arg1.stageY, _arg1.delta);
  6387. };
  6388. }
  6389. private function onDown(_arg1:uint, _arg2:MouseEvent){
  6390. if ((_arg2.currentTarget is DisplayObject)){
  6391. if (logging.level >= logging.INFO){
  6392. logging.logArgs(((("onDown target:" + tracePath(_arg2.target)) + " currentTarget:") + tracePath(_arg2.currentTarget)), arguments);
  6393. };
  6394. m_Root.callExternal((_arg2.currentTarget as DisplayObject), callbackCodes.g_ulCallbackCodeMouseDown, 0, _arg1, _arg2.stageX, _arg2.stageY, false);
  6395. m_OutsideCheckTarget[_arg1] = _arg2.currentTarget;
  6396. if (_arg1 == definitions.MOUSE_BTN_LEFT){
  6397. m_Root.callExternal((_arg2.currentTarget as DisplayObject), callbackCodes.g_ulCallbackCodePressed, _arg1);
  6398. };
  6399. };
  6400. }
  6401. private function onUp(_arg1:uint, _arg2:MouseEvent){
  6402. var _local4:Object;
  6403. if ((_arg2.currentTarget is DisplayObject)){
  6404. if (logging.level >= logging.INFO){
  6405. logging.logArgs(((("onUp target:" + tracePath(_arg2.target)) + " currentTarget:") + tracePath(_arg2.currentTarget)), arguments);
  6406. };
  6407. _local4 = m_OutsideCheckTarget[_arg1];
  6408. m_OutsideCheckTarget[_arg1] = null;
  6409. if (((_local4) && (!((_local4 == _arg2.currentTarget))))){
  6410. m_Root.callExternal((_local4 as DisplayObject), callbackCodes.g_ulCallbackCodeReleasedOutside, 0, _arg1, _arg2.stageX, _arg2.stageY, false);
  6411. } else {
  6412. if (_arg1 == definitions.MOUSE_BTN_LEFT){
  6413. m_Root.callExternal((_arg2.currentTarget as DisplayObject), callbackCodes.g_ulCallbackCodeReleased, _arg1);
  6414. };
  6415. m_Root.callExternal((_arg2.currentTarget as DisplayObject), callbackCodes.g_ulCallbackCodeMouseUp, 0, _arg1, _arg2.stageX, _arg2.stageY, false);
  6416. };
  6417. };
  6418. }
  6419. private function onStageMouseDownLeft(_arg1:MouseEvent):void{
  6420. m_Buttons = (m_Buttons | 1);
  6421. onStageMouseDown(definitions.MOUSE_BTN_LEFT, _arg1);
  6422. }
  6423. private function onStageMouseDownMiddle(_arg1:MouseEvent):void{
  6424. m_Buttons = (m_Buttons | 4);
  6425. onStageMouseDown(definitions.MOUSE_BTN_MIDDLE, _arg1);
  6426. }
  6427. private function onStageMouseDownRight(_arg1:MouseEvent):void{
  6428. m_Buttons = (m_Buttons | 2);
  6429. onStageMouseDown(definitions.MOUSE_BTN_RIGHT, _arg1);
  6430. }
  6431. private function onStageMouseUpLeft(_arg1:MouseEvent):void{
  6432. m_Buttons = (m_Buttons & ~(1));
  6433. onStageMouseUp(definitions.MOUSE_BTN_LEFT, _arg1);
  6434. }
  6435. private function onStageMouseUpMiddle(_arg1:MouseEvent):void{
  6436. m_Buttons = (m_Buttons & ~(4));
  6437. onStageMouseUp(definitions.MOUSE_BTN_MIDDLE, _arg1);
  6438. }
  6439. private function onStageMouseUpRight(_arg1:MouseEvent):void{
  6440. m_Buttons = (m_Buttons & ~(2));
  6441. onStageMouseUp(definitions.MOUSE_BTN_RIGHT, _arg1);
  6442. }
  6443. private function onStageMouseDown(_arg1:uint, _arg2:MouseEvent):void{
  6444. if (_arg2.target == m_Root.stage){
  6445. if (logging.level >= logging.INFO){
  6446. logging.logArgs(((("onStageMouseDown target:" + tracePath(_arg2.target)) + " currentTarget:") + tracePath(_arg2.currentTarget)), arguments);
  6447. };
  6448. m_Root.callExternal(m_Root, callbackCodes.g_ulCallbackCodeMouseDown, 0, _arg1, _arg2.stageX, _arg2.stageY, false);
  6449. if ((((_arg1 == definitions.MOUSE_BTN_LEFT)) && ((null == m_OutsideCheckTarget[_arg1])))){
  6450. m_OutsideCheckTarget[_arg1] = m_Root.stage;
  6451. m_Root.callExternal(m_Root, callbackCodes.g_ulCallbackCodePressed, _arg1);
  6452. };
  6453. } else {
  6454. if (!m_OutsideCheckTarget[_arg1]){
  6455. if (logging.level >= logging.INFO){
  6456. logging.logArgs(((("onStageMouseDown notarget:" + tracePath(_arg2.target)) + " currentTarget:") + tracePath(_arg2.currentTarget)), arguments);
  6457. };
  6458. m_Root.callExternal(m_Root, callbackCodes.g_ulCallbackCodeMouseDown, 0, _arg1, _arg2.stageX, _arg2.stageY, false);
  6459. };
  6460. };
  6461. }
  6462. private function onStageMouseUp(_arg1:uint, _arg2:MouseEvent):void{
  6463. var _local4:Object = m_OutsideCheckTarget[_arg1];
  6464. m_OutsideCheckTarget[_arg1] = null;
  6465. if (((_local4) && (!((_local4 == m_Root.stage))))){
  6466. if (logging.level >= logging.INFO){
  6467. logging.logArgs((((((((("onStageMouseUp outside:" + tracePath(_arg2.target)) + " currentTarget:") + _arg2.currentTarget) + "(") + _arg2.currentTarget.name) + ")") + " outside_tgt:") + _local4), arguments);
  6468. };
  6469. m_Root.callExternal((_local4 as DisplayObject), callbackCodes.g_ulCallbackCodeReleasedOutside, 0, _arg1, _arg2.stageX, _arg2.stageY, false);
  6470. } else {
  6471. if (_arg2.currentTarget == m_Root.stage){
  6472. if (logging.level >= logging.INFO){
  6473. logging.logArgs(((("onStageMouseUp target:" + tracePath(_arg2.target)) + " currentTarget:") + tracePath(_arg2.currentTarget)), arguments);
  6474. };
  6475. if ((((_arg1 == definitions.MOUSE_BTN_LEFT)) && ((_local4 == m_Root.stage)))){
  6476. m_Root.callExternal(m_Root, callbackCodes.g_ulCallbackCodeReleased, _arg1);
  6477. };
  6478. m_Root.callExternal(m_Root, callbackCodes.g_ulCallbackCodeMouseUp, 0, _arg1, _arg2.stageX, _arg2.stageY, false);
  6479. };
  6480. };
  6481. }
  6482. private function onStageMouseMove(_arg1:MouseEvent):void{
  6483. if (_arg1.currentTarget == m_Root.stage){
  6484. if (logging.level >= logging.VERBOSE){
  6485. logging.logArgs(((("onStageMouseMove target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6486. };
  6487. m_Root.callExternal(m_Root, callbackCodes.g_ulCallbackCodeMouseMoveGlobal, 0, m_Buttons, _arg1.stageX, _arg1.stageY);
  6488. };
  6489. }
  6490. private function onStageMouseWheel(_arg1:MouseEvent):void{
  6491. if (_arg1.target == m_Root.stage){
  6492. m_Root.callExternal(m_Root, callbackCodes.g_ulCallbackCodeMouseWheel, 0, m_Buttons, _arg1.stageX, _arg1.stageY, _arg1.delta);
  6493. if (logging.level >= logging.INFO){
  6494. logging.logArgs(((("onStageMouseWheel target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6495. };
  6496. } else {
  6497. if ((_arg1.target is DisplayObject)){
  6498. if (logging.level >= logging.INFO){
  6499. logging.logArgs(((("onStageMouseWheel target:" + tracePath(_arg1.target)) + " currentTarget:") + tracePath(_arg1.currentTarget)), arguments);
  6500. };
  6501. m_Root.callExternal((_arg1.target as DisplayObject), callbackCodes.g_ulCallbackCodeMouseWheel, 0, m_Buttons, _arg1.stageX, _arg1.stageY, _arg1.delta);
  6502. };
  6503. };
  6504. }
  6505.  
  6506. }
  6507. }//package gm
  6508. package gm {
  6509.  
  6510. public class definitions {
  6511.  
  6512. public static const MIDDLE_CLICK:String = "middleClick";
  6513. public static const MIDDLE_MOUSE_DOWN:String = "middleMouseDown";
  6514. public static const MIDDLE_MOUSE_UP:String = "middleMouseUp";
  6515. public static const RIGHT_CLICK:String = "rightClick";
  6516. public static const RIGHT_MOUSE_DOWN:String = "rightMouseDown";
  6517. public static const RIGHT_MOUSE_UP:String = "rightMouseUp";
  6518. public static const DUMMY:uint = 1;
  6519. public static const MOUSE_BTN_LEFT:uint = 1;
  6520. public static const MOUSE_BTN_MIDDLE:uint = 3;
  6521. public static const MOUSE_BTN_RIGHT:uint = 2;
  6522. public static const MOUSE_BTN_CNT:uint = 4;
  6523.  
  6524. }
  6525. }//package gm
  6526. package gm.data.listselectiontype {
  6527.  
  6528. public class ListSelectionType {
  6529.  
  6530. public static const NONE:String = "none";
  6531. public static const SINGLE:String = "single";
  6532. public static const MULTI:String = "multi";
  6533.  
  6534. }
  6535. }//package gm.data.listselectiontype
  6536. package gm.data.listdragtype {
  6537.  
  6538. public class ListDragType {
  6539.  
  6540. public static const NONE:String = "none";
  6541. public static const ORDER:String = "order";
  6542. public static const DELETE:String = "delete";
  6543. public static const MOVE:String = "move";
  6544.  
  6545. }
  6546. }//package gm.data.listdragtype
  6547. package gm.data.platform {
  6548.  
  6549. public class Platform {
  6550.  
  6551. public static const PC:String = "pc";
  6552. public static const CONSOLE:String = "console";
  6553.  
  6554. }
  6555. }//package gm.data.platform
  6556. package gm.data.customdrawfunctions {
  6557. import flash.display.*;
  6558. import flash.geom.*;
  6559.  
  6560. public class CustomDrawFunctions {
  6561.  
  6562. private static var sm_PointsX:Array = new Array();
  6563. private static var sm_PointsY:Array = new Array();
  6564.  
  6565. public static function drawSolidArc(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:int=30):void{
  6566. var _local11:Number;
  6567. var _local12:int;
  6568. var _local13:Number;
  6569. _arg6 = (_arg6 - 0.25);
  6570. var _local9:Number = (2 * Math.PI);
  6571. var _local10:Number = (_arg7 / _arg8);
  6572. var _local14:Number = (_arg2 + (Math.cos((_arg6 * _local9)) * _arg4));
  6573. var _local15:Number = (_arg3 + (Math.sin((_arg6 * _local9)) * _arg4));
  6574. var _local16:Number = _local14;
  6575. var _local17:Number = _local15;
  6576. _arg1.graphics.moveTo(_local14, _local15);
  6577. _local12 = 1;
  6578. while (_local12 <= _arg8) {
  6579. _local11 = ((_arg6 + (_local12 * _local10)) * _local9);
  6580. _local14 = (_arg2 + (Math.cos(_local11) * _arg4));
  6581. _local15 = (_arg3 + (Math.sin(_local11) * _arg4));
  6582. _arg1.graphics.lineTo(_local14, _local15);
  6583. _local12++;
  6584. };
  6585. _local13 = (_arg6 + _arg7);
  6586. _local12 = 0;
  6587. while (_local12 <= _arg8) {
  6588. _local11 = ((_local13 - (_local12 * _local10)) * _local9);
  6589. _local14 = (_arg2 + (Math.cos(_local11) * _arg5));
  6590. _local15 = (_arg3 + (Math.sin(_local11) * _arg5));
  6591. _arg1.graphics.lineTo(_local14, _local15);
  6592. _local12++;
  6593. };
  6594. _arg1.graphics.lineTo(_local16, _local17);
  6595. }
  6596. public static function drawCircleMask(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number=0, _arg5:int=30):void{
  6597. clearMc(_arg1);
  6598. var _local6:Shape = new Shape();
  6599. if (_arg4 != _arg3){
  6600. _local6.graphics.lineStyle(0, 0, 0);
  6601. _local6.graphics.beginFill(0, 0);
  6602. drawSolidArc(_local6, _arg1.x, _arg1.y, 0, _arg2, _arg4, _arg3, _arg5);
  6603. _local6.graphics.endFill();
  6604. };
  6605. _arg1.addChildAt(_local6, 0);
  6606. }
  6607. public static function drawQuad(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:uint, _arg6:uint, _arg7:Number, _arg8:Number):void{
  6608. var _local9:Shape = new Shape();
  6609. _local9.graphics.lineStyle(_arg8, _arg6, _arg7, true);
  6610. _local9.graphics.beginFill(_arg5, _arg7);
  6611. _local9.graphics.drawRect(_arg2, _arg3, _arg4, _arg4);
  6612. _local9.graphics.endFill();
  6613. _arg1.addChildAt(_local9, 0);
  6614. }
  6615. public static function drawLines(_arg1:MovieClip, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Boolean){
  6616. var _local6:Shape = new Shape();
  6617. _local6.graphics.lineStyle(_arg4, _arg2, _arg3, true);
  6618. if ((((0 < sm_PointsX.length)) && ((0 < sm_PointsY.length)))){
  6619. _local6.graphics.moveTo(sm_PointsX[0], sm_PointsY[0]);
  6620. } else {
  6621. return;
  6622. };
  6623. var _local7 = 1;
  6624. while (_local7 < sm_PointsX.length) {
  6625. _local6.graphics.lineTo(sm_PointsX[_local7], sm_PointsY[_local7]);
  6626. _local7++;
  6627. };
  6628. if (_arg5){
  6629. _local6.graphics.lineTo(sm_PointsX[0], sm_PointsY[0]);
  6630. };
  6631. _arg1.addChildAt(_local6, 0);
  6632. }
  6633. public static function setDrawPoints(_arg1:Number, _arg2:Number){
  6634. sm_PointsX.push(_arg1);
  6635. sm_PointsY.push(_arg2);
  6636. }
  6637. public static function clearPoints(){
  6638. if (0 < sm_PointsX.length){
  6639. sm_PointsX = [];
  6640. };
  6641. if (0 < sm_PointsY.length){
  6642. sm_PointsY = [];
  6643. };
  6644. }
  6645. public static function clearMc(_arg1:MovieClip):void{
  6646. _arg1.graphics.clear();
  6647. while (_arg1.numChildren > 0) {
  6648. _arg1.removeChildAt(0);
  6649. };
  6650. }
  6651.  
  6652. }
  6653. }//package gm.data.customdrawfunctions
  6654. package gm.data.buttontype {
  6655.  
  6656. public class ButtonType {
  6657.  
  6658. public static const NORMAL:String = "normal";
  6659. public static const CHECK:String = "check";
  6660.  
  6661. }
  6662. }//package gm.data.buttontype
  6663. package gm.data.focussavepolicy {
  6664.  
  6665. public class FocusSavePolicy {
  6666.  
  6667. public static const REINIT:String = "reinit";
  6668. public static const RESTORE:String = "restore";
  6669. public static const RESTORE_ON_BACK:String = "restoreOnBack";
  6670.  
  6671. }
  6672. }//package gm.data.focussavepolicy
  6673. package gm {
  6674. import flash.display.*;
  6675.  
  6676. public interface iRootElement {
  6677.  
  6678. function callExternal(_arg1:DisplayObject, _arg2:uint, ... _args):void;
  6679. function getPath(_arg1:Object):String;
  6680.  
  6681. }
  6682. }//package gm
  6683. package gm {
  6684. import flash.display.*;
  6685. import flash.events.*;
  6686. import flash.geom.*;
  6687. import flash.text.*;
  6688. import scenes.*;
  6689. import flash.utils.*;
  6690. import flash.external.*;
  6691.  
  6692. public dynamic class rootElement extends MovieClip implements iRootElement {
  6693.  
  6694. public var mc_images:MovieClip;
  6695. public var towninfo:Scene_Trade;
  6696. private var m_MouseHandler:mouseHandler = null;
  6697.  
  6698. public function rootElement(){
  6699. super();
  6700. addFrameScript(0, frame1);
  6701. if (logging.level >= logging.VERBOSE){
  6702. logging.log("rootElement");
  6703. };
  6704. if (logging.level >= logging.VERBOSE){
  6705. logging.log("adding callbacks...");
  6706. };
  6707. m_MouseHandler = new mouseHandler(this);
  6708. try {
  6709. if (logging.level >= logging.VERBOSE){
  6710. logging.log("done.");
  6711. };
  6712. } catch(e) {
  6713. if (logging.level >= logging.ERROR){
  6714. logging.log("error adding callbacks!");
  6715. };
  6716. };
  6717. if (!IggyFunctions.inIggy){
  6718. addEventListener(Event.ENTER_FRAME, function (_arg1:Event):void{
  6719. fireRenderEvent();
  6720. });
  6721. addEventListener(Event.ENTER_FRAME, function (_arg1:Event):void{
  6722. firePreRenderEvent();
  6723. });
  6724. };
  6725. __setProp_towninfo_Scene1_dialog_0();
  6726. }
  6727. public function callExternal(_arg1:DisplayObject, _arg2:uint, ... _args):void{
  6728. var _local4:Array = [_arg1, _arg2];
  6729. if (_args){
  6730. _local4 = _local4.concat(_args);
  6731. };
  6732. if (logging.level >= logging.VERBOSE){
  6733. logging.logArgs("callExternal", _local4);
  6734. };
  6735. if (!IggyFunctions.inIggy){
  6736. return;
  6737. };
  6738. var _local5:String = getPath(_arg1);
  6739. if (_args.length == 0){
  6740. ExternalInterface.call(_local5, _arg2);
  6741. } else {
  6742. if (_args.length == 1){
  6743. ExternalInterface.call(_local5, _arg2, _args[0]);
  6744. } else {
  6745. if (_args.length == 2){
  6746. ExternalInterface.call(_local5, _arg2, _args[0], _args[1]);
  6747. } else {
  6748. if (_args.length == 3){
  6749. ExternalInterface.call(_local5, _arg2, _args[0], _args[1], _args[2]);
  6750. } else {
  6751. if (_args.length == 4){
  6752. ExternalInterface.call(_local5, _arg2, _args[0], _args[1], _args[2], _args[3]);
  6753. } else {
  6754. if (_args.length == 5){
  6755. ExternalInterface.call(_local5, _arg2, _args[0], _args[1], _args[2], _args[3], _args[4]);
  6756. } else {
  6757. if (_args.length == 6){
  6758. ExternalInterface.call(_local5, _arg2, _args[0], _args[1], _args[2], _args[3], _args[4], _args[5]);
  6759. } else {
  6760. if (_args.length == 7){
  6761. ExternalInterface.call(_local5, _arg2, _args[0], _args[1], _args[2], _args[3], _args[4], _args[5], _args[6]);
  6762. } else {
  6763. if (_args.length == 8){
  6764. ExternalInterface.call(_local5, _arg2, _args[0], _args[1], _args[2], _args[3], _args[4], _args[5], _args[6], _args[7]);
  6765. } else {
  6766. if (logging.level >= logging.ERROR){
  6767. logging.log("callExternal: number of extra arguments > 8 not supported.");
  6768. };
  6769. };
  6770. };
  6771. };
  6772. };
  6773. };
  6774. };
  6775. };
  6776. };
  6777. };
  6778. }
  6779. public function getPath(_arg1:Object):String{
  6780. var _local2:String;
  6781. var _local3:* = (_arg1 as DisplayObject);
  6782. if (_local3){
  6783. _local2 = new String();
  6784. while (((_local3) && (!((_local3 == _local3.root))))) {
  6785. if (_local2.length > 0){
  6786. _local2 = ((_local3.name + ".") + _local2);
  6787. } else {
  6788. _local2 = _local3.name;
  6789. };
  6790. _local3 = _local3.parent;
  6791. };
  6792. if (_local2.length > 0){
  6793. _local2 = ("_level0." + _local2);
  6794. } else {
  6795. _local2 = "_level0";
  6796. };
  6797. };
  6798. return (_local2);
  6799. }
  6800. public function fireRenderEvent():void{
  6801. stage.dispatchEvent(new StageEvent(StageEvent.RENDER));
  6802. }
  6803. public function firePreRenderEvent():void{
  6804. stage.dispatchEvent(new StageEvent(StageEvent.PRE_RENDER));
  6805. }
  6806. public function getGlobalXPos(_arg1:Object):Number{
  6807. if (logging.level >= logging.VERBOSE){
  6808. logging.logArgs("getGlobalXPos", _arg1);
  6809. };
  6810. var _local2:DisplayObject = (_arg1 as DisplayObject);
  6811. if (_local2){
  6812. return (_local2.localToGlobal(new Point(0, 0)).x);
  6813. };
  6814. if (logging.level >= logging.WARNING){
  6815. logging.logArgs("getGlobalXPos: object not found", _arg1);
  6816. };
  6817. return (0);
  6818. }
  6819. public function getGlobalYPos(_arg1:Object):Number{
  6820. if (logging.level >= logging.VERBOSE){
  6821. logging.logArgs("getGlobalYPos", _arg1);
  6822. };
  6823. var _local2:DisplayObject = (_arg1 as DisplayObject);
  6824. if (_local2){
  6825. return (_local2.localToGlobal(new Point(0, 0)).y);
  6826. };
  6827. if (logging.level >= logging.WARNING){
  6828. logging.logArgs("getGlobalYPos: object not found", _arg1);
  6829. };
  6830. return (0);
  6831. }
  6832. public function addMovieClipMouseHandler(_arg1:Object, _arg2:uint):void{
  6833. if (logging.level >= logging.VERBOSE){
  6834. logging.logArgs("addMovieClipMouseHandler", arguments);
  6835. };
  6836. var _local4:DisplayObject = (_arg1 as DisplayObject);
  6837. if (_local4){
  6838. m_MouseHandler.addMouseHandler(_local4, _arg2);
  6839. } else {
  6840. if (logging.level >= logging.WARNING){
  6841. logging.logArgs("addMovieClipMouseHandler: object not found", _arg1);
  6842. };
  6843. };
  6844. }
  6845. public function addMovieClipInputHandler(_arg1:Object){
  6846. var _local3:changeListener;
  6847. if (logging.level >= logging.VERBOSE){
  6848. logging.logArgs("addMovieClipInputHandler", _arg1);
  6849. };
  6850. var _local2:DisplayObject = (_arg1 as DisplayObject);
  6851. if (((_local2) && ((_local2 is TextField)))){
  6852. _local3 = new changeListener(_local2, (this as iRootElement));
  6853. if (!_local2.hasEventListener(Event.CHANGE)){
  6854. _local2.addEventListener(Event.CHANGE, _local3.onChange);
  6855. } else {
  6856. if (logging.level >= logging.WARNING){
  6857. logging.log((("addMovieClipInputHandler: object " + _local2) + " has Event.CHANGE listener, not adding"));
  6858. };
  6859. };
  6860. if (!_local2.hasEventListener(KeyboardEvent.KEY_DOWN)){
  6861. _local2.addEventListener(KeyboardEvent.KEY_DOWN, _local3.onKeyDown);
  6862. } else {
  6863. if (logging.level >= logging.WARNING){
  6864. logging.log((("addMovieClipInputHandler: object " + _local2) + " has KeyboardEvent.KEY_DOWN listener, not adding"));
  6865. };
  6866. };
  6867. } else {
  6868. if (logging.level >= logging.WARNING){
  6869. logging.logArgs("addMovieClipInputHandler: object not found", _arg1);
  6870. };
  6871. };
  6872. }
  6873. public function addMovieClipFocusHandler(_arg1:Object){
  6874. var _local3:focusListener;
  6875. if (logging.level >= logging.VERBOSE){
  6876. logging.logArgs("addMovieClipFocusHandler", _arg1);
  6877. };
  6878. var _local2:DisplayObject = (_arg1 as DisplayObject);
  6879. if (_local2){
  6880. _local3 = new focusListener(_local2, (this as iRootElement));
  6881. _local2.addEventListener(FocusEvent.FOCUS_IN, _local3.onIn);
  6882. _local2.addEventListener(FocusEvent.FOCUS_OUT, _local3.onOut);
  6883. } else {
  6884. if (logging.level >= logging.WARNING){
  6885. logging.logArgs("addMovieClipFocusHandler: object not found", _arg1);
  6886. };
  6887. };
  6888. }
  6889. public function setLogLevel(_arg1:Number){
  6890. if (logging.level >= logging.VERBOSE){
  6891. logging.logArgs("setLogLevel", arguments);
  6892. };
  6893. logging.level = _arg1;
  6894. }
  6895. public function setInputFocus(_arg1:Object):Boolean{
  6896. if (logging.level >= logging.VERBOSE){
  6897. logging.logArgs("setInputFocus", _arg1);
  6898. };
  6899. if ((_arg1 is InteractiveObject)){
  6900. stage.focus = (_arg1 as InteractiveObject);
  6901. return (true);
  6902. };
  6903. stage.focus = null;
  6904. return (false);
  6905. }
  6906. public function killInputFocus():void{
  6907. if (logging.level >= logging.VERBOSE){
  6908. logging.logArgs("killInputFocus", null);
  6909. };
  6910. stage.focus = null;
  6911. }
  6912. function __setProp_towninfo_Scene1_dialog_0(){
  6913. try {
  6914. towninfo["componentInspectorSetting"] = true;
  6915. } catch(e:Error) {
  6916. };
  6917. towninfo.defaultFocus = "";
  6918. towninfo.enabled = true;
  6919. towninfo.focusSavePolicy = "reinit";
  6920. towninfo.isComponent = true;
  6921. towninfo.minHeight = 720;
  6922. towninfo.minWidth = 0x0500;
  6923. towninfo.mouseWheel = false;
  6924. towninfo.navDown = "";
  6925. towninfo.navLeft = "";
  6926. towninfo.navRight = "";
  6927. towninfo.navTabBackward = "";
  6928. towninfo.navTabForward = "";
  6929. towninfo.navUp = "";
  6930. towninfo.pressAction = "";
  6931. towninfo.repeatDelay = 0;
  6932. towninfo.repeatRate = 0;
  6933. towninfo.screenClass = "DialogTrade";
  6934. towninfo.soundFocus = "";
  6935. towninfo.tooltipRes = "ID_GUI_TTINFO_DOCK_GENERAL";
  6936. towninfo.unfocusedInput = false;
  6937. towninfo.visible = true;
  6938. try {
  6939. towninfo["componentInspectorSetting"] = false;
  6940. } catch(e:Error) {
  6941. };
  6942. }
  6943. function frame1(){
  6944. mc_images.visible = false;
  6945. }
  6946.  
  6947. }
  6948. }//package gm
  6949. package gm {
  6950. import flash.events.*;
  6951.  
  6952. public class StageEvent extends Event {
  6953.  
  6954. public static const RENDER:String = "gmStageRender";
  6955. public static const PRE_RENDER:String = "gmStagePreRender";
  6956.  
  6957. public function StageEvent(_arg1:String, _arg2:Boolean=false, _arg3:Boolean=false){
  6958. super(_arg1, _arg2, _arg3);
  6959. }
  6960. override public function clone():Event{
  6961. return (new StageEvent(type, bubbles, cancelable));
  6962. }
  6963. override public function toString():String{
  6964. return (formatToString("StageEvent", "type", "bubbles", "cancelable", "eventPhase"));
  6965. }
  6966.  
  6967. }
  6968. }//package gm
  6969. package gm.list {
  6970. import gm.focuselement.*;
  6971.  
  6972. public class List extends FocusElement {
  6973.  
  6974. public var m_Wrap:Boolean = false;
  6975. public var m_Open:Boolean = false;
  6976. public var m_PageScroll:Boolean = true;
  6977. public var m_DragType:String = "none";
  6978. public var m_DragMarker:Boolean = false;
  6979. public var m_ResizeableBackground:Boolean = false;
  6980. public var m_NoElementButtons:Boolean = false;
  6981. public var m_EnableMouseWheel:Boolean = false;
  6982. public var m_AllowDeselect:Boolean = true;
  6983. public var m_SelectionType:String = "single";
  6984. public var m_Rows:int = 0;
  6985. public var m_Columns:int = 0;
  6986. public var m_ElementsWantChildFocus:Boolean = true;
  6987.  
  6988. public function get warp():Boolean{
  6989. return (m_Wrap);
  6990. }
  6991. public function set warp(_arg1:Boolean):void{
  6992. m_Wrap = _arg1;
  6993. }
  6994. public function get open():Boolean{
  6995. return (m_Open);
  6996. }
  6997. public function set open(_arg1:Boolean):void{
  6998. m_Open = _arg1;
  6999. }
  7000. public function get pageScroll():Boolean{
  7001. return (m_PageScroll);
  7002. }
  7003. public function set pageScroll(_arg1:Boolean):void{
  7004. m_PageScroll = _arg1;
  7005. }
  7006. public function get dragType():String{
  7007. return (m_DragType);
  7008. }
  7009. public function set dragType(_arg1:String):void{
  7010. m_DragType = _arg1;
  7011. }
  7012. public function get dragMarker():Boolean{
  7013. return (m_DragMarker);
  7014. }
  7015. public function set dragMarker(_arg1:Boolean):void{
  7016. m_DragMarker = _arg1;
  7017. }
  7018. public function get resizeableBackground():Boolean{
  7019. return (m_ResizeableBackground);
  7020. }
  7021. public function set resizeableBackground(_arg1:Boolean):void{
  7022. m_ResizeableBackground = _arg1;
  7023. }
  7024. public function get noElementButtons():Boolean{
  7025. return (m_NoElementButtons);
  7026. }
  7027. public function set noElementButtons(_arg1:Boolean):void{
  7028. m_NoElementButtons = _arg1;
  7029. }
  7030. public function get enableMouseWheel():Boolean{
  7031. return (m_EnableMouseWheel);
  7032. }
  7033. public function set enableMouseWheel(_arg1:Boolean):void{
  7034. m_EnableMouseWheel = _arg1;
  7035. }
  7036. public function get allowDeselect():Boolean{
  7037. return (m_AllowDeselect);
  7038. }
  7039. public function set allowDeselect(_arg1:Boolean):void{
  7040. m_AllowDeselect = _arg1;
  7041. }
  7042. public function get selectionType():String{
  7043. return (m_SelectionType);
  7044. }
  7045. public function set selectionType(_arg1:String):void{
  7046. m_SelectionType = _arg1;
  7047. }
  7048. public function get rows():int{
  7049. return (m_Rows);
  7050. }
  7051. public function set rows(_arg1:int):void{
  7052. m_Rows = _arg1;
  7053. }
  7054. public function get columns():int{
  7055. return (m_Columns);
  7056. }
  7057. public function set columns(_arg1:int):void{
  7058. m_Columns = _arg1;
  7059. }
  7060. public function get elementsWantChildFocus():Boolean{
  7061. return (m_ElementsWantChildFocus);
  7062. }
  7063. public function set elementsWantChildFocus(_arg1:Boolean):void{
  7064. m_ElementsWantChildFocus = _arg1;
  7065. }
  7066.  
  7067. }
  7068. }//package gm.list
  7069. package {
  7070. import flash.display.*;
  7071.  
  7072. public dynamic class Container_LokaIcons extends MovieClip {
  7073.  
  7074. }
  7075. }//package
  7076. package dialog_trade_fla {
  7077. import flash.display.*;
  7078. import flash.events.*;
  7079. import flash.geom.*;
  7080. import components.button.*;
  7081. import components.textfield.*;
  7082. import flash.text.*;
  7083. import flash.utils.*;
  7084. import adobe.utils.*;
  7085. import flash.accessibility.*;
  7086. import flash.errors.*;
  7087. import flash.external.*;
  7088. import flash.filters.*;
  7089. import flash.media.*;
  7090. import flash.net.*;
  7091. import flash.printing.*;
  7092. import flash.profiler.*;
  7093. import flash.sampler.*;
  7094. import flash.system.*;
  7095. import flash.ui.*;
  7096. import flash.xml.*;
  7097.  
  7098. public dynamic class Visual_Infotext_l_11 extends MovieClip {
  7099.  
  7100. public var icon:Visual_Button_Infotext;
  7101. public var mctext:Visual_Textfeld_16;
  7102.  
  7103. public function Visual_Infotext_l_11(){
  7104. __setProp_icon_Visual_Infotext_l_Layer1_0();
  7105. }
  7106. function __setProp_icon_Visual_Infotext_l_Layer1_0(){
  7107. try {
  7108. icon["componentInspectorSetting"] = true;
  7109. } catch(e:Error) {
  7110. };
  7111. icon.buttonType = "normal";
  7112. icon.enabled = true;
  7113. icon.instaPress = false;
  7114. icon.isComponent = true;
  7115. icon.mouseWheel = false;
  7116. icon.navDown = "";
  7117. icon.navLeft = "";
  7118. icon.navRight = "";
  7119. icon.navTabBackward = "";
  7120. icon.navTabForward = "";
  7121. icon.navUp = "";
  7122. icon.pressAction = "PRESS";
  7123. icon.repeatDelay = 0;
  7124. icon.repeatRate = 0;
  7125. icon.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  7126. icon.soundPressNeg = "ID_GUI_DEF_SOUND_BUTTON_NEG_DEFAULT";
  7127. icon.soundPressPos = "ID_GUI_DEF_SOUND_BUTTON_PRESS_DEFAULT";
  7128. icon.tooltipIsInfo = true;
  7129. icon.tooltipRes = "ID_GUI_TTINFO_DOCK_GOODSLIST";
  7130. icon.unfocusedInput = false;
  7131. icon.visible = true;
  7132. try {
  7133. icon["componentInspectorSetting"] = false;
  7134. } catch(e:Error) {
  7135. };
  7136. }
  7137.  
  7138. }
  7139. }//package dialog_trade_fla
  7140. package dialog_trade_fla {
  7141. import flash.display.*;
  7142.  
  7143. public dynamic class Icon_SeekarteStadt_Normal_15 extends MovieClip {
  7144.  
  7145. public function Icon_SeekarteStadt_Normal_15(){
  7146. addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6);
  7147. }
  7148. function frame1(){
  7149. stop();
  7150. }
  7151. function frame2(){
  7152. stop();
  7153. }
  7154. function frame3(){
  7155. stop();
  7156. }
  7157. function frame4(){
  7158. stop();
  7159. }
  7160. function frame5(){
  7161. stop();
  7162. }
  7163. function frame6(){
  7164. stop();
  7165. }
  7166.  
  7167. }
  7168. }//package dialog_trade_fla
  7169. package dialog_trade_fla {
  7170. import flash.display.*;
  7171. import flash.text.*;
  7172.  
  7173. public dynamic class Visual_Textfeld_Subheadline_7 extends MovieClip {
  7174.  
  7175. public var textfeld:TextField;
  7176.  
  7177. public function Visual_Textfeld_Subheadline_7(){
  7178. addFrameScript(0, frame1);
  7179. }
  7180. function frame1(){
  7181. IggyFunctions.setHittestProperties(this, IggyFunctions.HITTEST_NO_MOUSE);
  7182. }
  7183.  
  7184. }
  7185. }//package dialog_trade_fla
  7186. package dialog_trade_fla {
  7187. import flash.display.*;
  7188. import flash.events.*;
  7189. import flash.geom.*;
  7190. import components.button.*;
  7191. import components.textfield.*;
  7192. import flash.text.*;
  7193. import flash.utils.*;
  7194. import adobe.utils.*;
  7195. import flash.accessibility.*;
  7196. import flash.errors.*;
  7197. import flash.external.*;
  7198. import flash.filters.*;
  7199. import flash.media.*;
  7200. import flash.net.*;
  7201. import flash.printing.*;
  7202. import flash.profiler.*;
  7203. import flash.sampler.*;
  7204. import flash.system.*;
  7205. import flash.ui.*;
  7206. import flash.xml.*;
  7207.  
  7208. public dynamic class Visual_Wealth_Text_Trend_16 extends MovieClip {
  7209.  
  7210. public var icon:Visual_IconButton_arrowUpDown;
  7211. public var mctext:Visual_Textfeld_16;
  7212.  
  7213. public function Visual_Wealth_Text_Trend_16(){
  7214. __setProp_mctext_Visual_Wealth_Text_Trend_Layer1_0();
  7215. __setProp_icon_Visual_Wealth_Text_Trend_Layer1_0();
  7216. }
  7217. function __setProp_mctext_Visual_Wealth_Text_Trend_Layer1_0(){
  7218. try {
  7219. mctext["componentInspectorSetting"] = true;
  7220. } catch(e:Error) {
  7221. };
  7222. mctext.autosizeX = true;
  7223. mctext.autosizeY = false;
  7224. mctext.bold = false;
  7225. mctext.colorRes = "ID_GUI_DEF_COLOR_DEFAULT";
  7226. mctext.enabled = true;
  7227. mctext.filterColorRes = "ID_GUI_DEF_COLOR_FILTER";
  7228. mctext.fontSize = 0;
  7229. mctext.htmlText = false;
  7230. mctext.isComponent = true;
  7231. mctext.italic = false;
  7232. mctext.mouseWheel = false;
  7233. mctext.navDown = "";
  7234. mctext.navLeft = "";
  7235. mctext.navRight = "";
  7236. mctext.navTabBackward = "";
  7237. mctext.navTabForward = "";
  7238. mctext.navUp = "";
  7239. mctext.pressAction = "PRESS";
  7240. mctext.repeatDelay = 0;
  7241. mctext.repeatRate = 0;
  7242. mctext.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  7243. mctext.textAlignH = "center";
  7244. mctext.textAlignV = 0;
  7245. mctext.textRes = "";
  7246. mctext.tooltipRes = "";
  7247. mctext.underline = false;
  7248. mctext.unfocusedInput = false;
  7249. mctext.visible = true;
  7250. try {
  7251. mctext["componentInspectorSetting"] = false;
  7252. } catch(e:Error) {
  7253. };
  7254. }
  7255. function __setProp_icon_Visual_Wealth_Text_Trend_Layer1_0(){
  7256. try {
  7257. icon["componentInspectorSetting"] = true;
  7258. } catch(e:Error) {
  7259. };
  7260. icon.buttonType = "normal";
  7261. icon.enabled = true;
  7262. icon.instaPress = false;
  7263. icon.isComponent = true;
  7264. icon.mouseWheel = false;
  7265. icon.navDown = "";
  7266. icon.navLeft = "";
  7267. icon.navRight = "";
  7268. icon.navTabBackward = "";
  7269. icon.navTabForward = "";
  7270. icon.navUp = "";
  7271. icon.pressAction = "PRESS";
  7272. icon.repeatDelay = 0;
  7273. icon.repeatRate = 0;
  7274. icon.soundFocus = "";
  7275. icon.soundPressNeg = "";
  7276. icon.soundPressPos = "";
  7277. icon.tooltipRes = "ID_GUI_TT_VISUAL_ICONBUTTON_ARROWUPDOWN";
  7278. icon.unfocusedInput = false;
  7279. icon.visible = true;
  7280. try {
  7281. icon["componentInspectorSetting"] = false;
  7282. } catch(e:Error) {
  7283. };
  7284. }
  7285.  
  7286. }
  7287. }//package dialog_trade_fla
  7288. package {
  7289. import flash.display.*;
  7290.  
  7291. public dynamic class icon_trade_office_convoy extends BitmapData {
  7292.  
  7293. public function icon_trade_office_convoy(_arg1:int=106, _arg2:int=17){
  7294. super(_arg1, _arg2);
  7295. }
  7296. }
  7297. }//package
  7298. package {
  7299. import flash.display.*;
  7300.  
  7301. public dynamic class icon_trade_town_office extends BitmapData {
  7302.  
  7303. public function icon_trade_town_office(_arg1:int=106, _arg2:int=17){
  7304. super(_arg1, _arg2);
  7305. }
  7306. }
  7307. }//package
  7308. package {
  7309. import flash.display.*;
  7310. import flash.geom.*;
  7311.  
  7312. public class IggyFunctions {
  7313.  
  7314. public static const HITTEST_NO_MOUSE:int = 1;
  7315. public static const HITTEST_NO_GET_OBJECTS_UNDER_POINT:int = 2;
  7316. public static const HITTEST_NO_IGGY_GET_OBJECTS_UNDER_POINT:int = 4;
  7317.  
  7318. public static var inIggy = false;
  7319.  
  7320. public static function translate(_arg1:String){
  7321. return (_arg1);
  7322. }
  7323. public static function setTextureForBitmap(_arg1:Bitmap, _arg2){
  7324. if ((_arg2 is String)){
  7325. } else {
  7326. if (_arg2 == null){
  7327. } else {
  7328. throw (new TypeError("must be String or null"));
  7329. };
  7330. };
  7331. }
  7332. public static function iggyGetObjectsUnderPoint(_arg1:DisplayObjectContainer, _arg2:Point):Array{
  7333. return (_arg1.getObjectsUnderPoint(_arg2));
  7334. }
  7335. public static function setHittestProperties(_arg1:InteractiveObject, _arg2:int){
  7336. }
  7337. public static function getHittestProperties(_arg1:InteractiveObject){
  7338. return (0);
  7339. }
  7340. public static function setObjectAntialiasingEnable(_arg1:DisplayObject, _arg2:Boolean){
  7341. }
  7342. public static function setDepth(_arg1:DisplayObject, _arg2:Number){
  7343. _arg1["_iggy_depth"] = _arg2;
  7344. }
  7345. public static function getDepth(_arg1:DisplayObject){
  7346. if (("_iggy_depth" in _arg1)){
  7347. return (_arg1["_iggy_depth"]);
  7348. };
  7349. return (0);
  7350. }
  7351.  
  7352. }
  7353. }//package
  7354. package scenes {
  7355. import flash.display.*;
  7356. import gm.*;
  7357. import gm.data.focussavepolicy.*;
  7358. import gm.screen.*;
  7359. import exports.*;
  7360.  
  7361. public class Scene_Trade extends Screen {
  7362.  
  7363. public var tab_0:Tab_TownInfo;
  7364. public var tab_1:Tab_TownGoods;
  7365. public var tab_2:Tab_Equipment;
  7366. public var tab_3:Tab_Trade;
  7367. public var tab_4:Tab_Trade_Office_Convoy;
  7368. public var tab_5:Tab_Trade_Town_Office;
  7369. public var bg:Dialog_Tabbed;
  7370.  
  7371. public function Scene_Trade(){
  7372. defaultFocus = "";
  7373. focusSavePolicy = FocusSavePolicy.RESTORE;
  7374. minWidth = 0x0500;
  7375. minHeight = 720;
  7376. __setProp_tab_5_Scene_Trade_tab_trade_town_office_0();
  7377. __setProp_tab_4_Scene_Trade_tab_trade_office_convoy_0();
  7378. __setProp_tab_3_Scene_Trade_tab_trade_town_convoy_0();
  7379. __setProp_tab_2_Scene_Trade_tab_equipment_0();
  7380. __setProp_tab_1_Scene_Trade_tab_towngoods_0();
  7381. __setProp_tab_0_Scene_Trade_tab_towninfo_0();
  7382. }
  7383. function __setProp_tab_5_Scene_Trade_tab_trade_town_office_0(){
  7384. try {
  7385. tab_5["componentInspectorSetting"] = true;
  7386. } catch(e:Error) {
  7387. };
  7388. tab_5.enabled = true;
  7389. tab_5.isComponent = true;
  7390. tab_5.navDown = "";
  7391. tab_5.navLeft = "";
  7392. tab_5.navRight = "";
  7393. tab_5.navTabBackward = "";
  7394. tab_5.navTabForward = "";
  7395. tab_5.navUp = "";
  7396. tab_5.pageButtonText = "ID_NONE";
  7397. tab_5.pageClass = "TabTradeTownOffice";
  7398. tab_5.pressAction = "PRESS";
  7399. tab_5.repeatDelay = 0;
  7400. tab_5.repeatRate = 0;
  7401. tab_5.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  7402. tab_5.tooltipRes = "";
  7403. tab_5.unfocusedInput = false;
  7404. tab_5.visible = true;
  7405. try {
  7406. tab_5["componentInspectorSetting"] = false;
  7407. } catch(e:Error) {
  7408. };
  7409. }
  7410. function __setProp_tab_4_Scene_Trade_tab_trade_office_convoy_0(){
  7411. try {
  7412. tab_4["componentInspectorSetting"] = true;
  7413. } catch(e:Error) {
  7414. };
  7415. tab_4.enabled = true;
  7416. tab_4.isComponent = true;
  7417. tab_4.navDown = "";
  7418. tab_4.navLeft = "";
  7419. tab_4.navRight = "";
  7420. tab_4.navTabBackward = "";
  7421. tab_4.navTabForward = "";
  7422. tab_4.navUp = "";
  7423. tab_4.pageButtonText = "ID_NONE";
  7424. tab_4.pageClass = "TabTradeOfficeConvoy";
  7425. tab_4.pressAction = "PRESS";
  7426. tab_4.repeatDelay = 0;
  7427. tab_4.repeatRate = 0;
  7428. tab_4.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  7429. tab_4.tooltipRes = "";
  7430. tab_4.unfocusedInput = false;
  7431. tab_4.visible = true;
  7432. try {
  7433. tab_4["componentInspectorSetting"] = false;
  7434. } catch(e:Error) {
  7435. };
  7436. }
  7437. function __setProp_tab_3_Scene_Trade_tab_trade_town_convoy_0(){
  7438. try {
  7439. tab_3["componentInspectorSetting"] = true;
  7440. } catch(e:Error) {
  7441. };
  7442. tab_3.enabled = true;
  7443. tab_3.isComponent = true;
  7444. tab_3.navDown = "";
  7445. tab_3.navLeft = "";
  7446. tab_3.navRight = "";
  7447. tab_3.navTabBackward = "";
  7448. tab_3.navTabForward = "";
  7449. tab_3.navUp = "";
  7450. tab_3.pageButtonText = "ID_NONE";
  7451. tab_3.pageClass = "TabTradeTownConvoy";
  7452. tab_3.pressAction = "PRESS";
  7453. tab_3.repeatDelay = 0;
  7454. tab_3.repeatRate = 0;
  7455. tab_3.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  7456. tab_3.tooltipRes = "";
  7457. tab_3.unfocusedInput = false;
  7458. tab_3.visible = true;
  7459. try {
  7460. tab_3["componentInspectorSetting"] = false;
  7461. } catch(e:Error) {
  7462. };
  7463. }
  7464. function __setProp_tab_2_Scene_Trade_tab_equipment_0(){
  7465. try {
  7466. tab_2["componentInspectorSetting"] = true;
  7467. } catch(e:Error) {
  7468. };
  7469. tab_2.enabled = true;
  7470. tab_2.isComponent = true;
  7471. tab_2.mouseWheel = false;
  7472. tab_2.navDown = "";
  7473. tab_2.navLeft = "";
  7474. tab_2.navRight = "";
  7475. tab_2.navTabBackward = "";
  7476. tab_2.navTabForward = "";
  7477. tab_2.navUp = "";
  7478. tab_2.pageButtonText = "ID_NONE";
  7479. tab_2.pageClass = "TabEquipment";
  7480. tab_2.pressAction = "PRESS";
  7481. tab_2.repeatDelay = 0;
  7482. tab_2.repeatRate = 0;
  7483. tab_2.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  7484. tab_2.tooltipRes = "";
  7485. tab_2.unfocusedInput = false;
  7486. tab_2.visible = true;
  7487. try {
  7488. tab_2["componentInspectorSetting"] = false;
  7489. } catch(e:Error) {
  7490. };
  7491. }
  7492. function __setProp_tab_1_Scene_Trade_tab_towngoods_0(){
  7493. try {
  7494. tab_1["componentInspectorSetting"] = true;
  7495. } catch(e:Error) {
  7496. };
  7497. tab_1.enabled = true;
  7498. tab_1.isComponent = true;
  7499. tab_1.navDown = "";
  7500. tab_1.navLeft = "";
  7501. tab_1.navRight = "";
  7502. tab_1.navTabBackward = "";
  7503. tab_1.navTabForward = "";
  7504. tab_1.navUp = "";
  7505. tab_1.pageButtonText = "ID_NONE";
  7506. tab_1.pageClass = "TabTownGoods";
  7507. tab_1.pressAction = "PRESS";
  7508. tab_1.repeatDelay = 0;
  7509. tab_1.repeatRate = 0;
  7510. tab_1.soundFocus = "ID_GUI_DEF_SOUND_BUTTON_FOCUS_DEFAULT";
  7511. tab_1.tooltipRes = "";
  7512. tab_1.unfocusedInput = false;
  7513. tab_1.visible = true;
  7514. try {
  7515. tab_1["componentInspectorSetting"] = false;
  7516. } catch(e:Error) {
  7517. };
  7518. }
  7519. function __setProp_tab_0_Scene_Trade_tab_towninfo_0(){
  7520. try {
  7521. tab_0["componentInspectorSetting"] = true;
  7522. } catch(e:Error) {
  7523. };
  7524. tab_0.enabled = true;
  7525. tab_0.isComponent = true;
  7526. tab_0.navDown = "";
  7527. tab_0.navLeft = "";
  7528. tab_0.navRight = "";
  7529. tab_0.navTabBackward = "";
  7530. tab_0.navTabForward = "";
  7531. tab_0.navUp = "";
  7532. tab_0.pageButtonText = "ID_NONE";
  7533. tab_0.pageClass = "TabTownInfo";
  7534. tab_0.pressAction = "AK_NONE";
  7535. tab_0.repeatDelay = 0;
  7536. tab_0.repeatRate = 0;
  7537. tab_0.soundFocus = "";
  7538. tab_0.tooltipRes = "";
  7539. tab_0.unfocusedInput = false;
  7540. tab_0.visible = true;
  7541. try {
  7542. tab_0["componentInspectorSetting"] = false;
  7543. } catch(e:Error) {
  7544. };
  7545. }
  7546.  
  7547. }
  7548. }//package scenes
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement