Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

remove examples, docs, readme from Mochi API

  • Loading branch information...
commit b5ff0e2387fbdc424d740851554d6f9f6326df89 1 parent cbbcd77
Bob Ippolito authored December 30, 2010

Showing 106 changed files with 0 additions and 22,197 deletions. Show diff stats Hide diff stats

  1. 171  README.txt
  2. 3,251  docs/README.html
  3. 171  docs/css/ie.css
  4. 538  docs/css/screen.css
  5. BIN  docs/img/consume_settings.png
  6. BIN  docs/img/copy_include.gif
  7. BIN  docs/img/g_mochicrypt-system.gif
  8. BIN  docs/img/item_type.png
  9. BIN  docs/img/leaderboard_width_height_api.png
  10. BIN  docs/img/mochiads_zip_folders.jpg
  11. BIN  docs/img/paste_interlevel_code.gif
  12. BIN  docs/img/paste_pregame_code.gif
  13. 75  examples/as2/Ads.as
  14. 149  examples/as2/Coins.as
  15. 1  examples/as2/Core.as
  16. BIN  examples/as2/Example.fla
  17. 1  examples/as2/Init.as
  18. 37  examples/as2/LinkTracking.as
  19. 16  examples/as2/Makefile
  20. 1  examples/as2/Score.as
  21. 128  examples/as2/Social.as
  22. 61  examples/as2/UserProperties.as
  23. BIN  examples/as2/example.swf
  24. 862  examples/as2/mochi/as2/MochiAd.as
  25. 112  examples/as2/mochi/as2/MochiCoins.as
  26. 90  examples/as2/mochi/as2/MochiDigits.as
  27. 74  examples/as2/mochi/as2/MochiEventDispatcher.as
  28. 87  examples/as2/mochi/as2/MochiEvents.as
  29. 226  examples/as2/mochi/as2/MochiScores.as
  30. 511  examples/as2/mochi/as2/MochiServices.as
  31. 177  examples/as2/mochi/as2/MochiSocial.as
  32. 1,047  examples/as2/mochi/as3/MochiAd.as
  33. 139  examples/as2/mochi/as3/MochiCoins.as
  34. 92  examples/as2/mochi/as3/MochiDigits.as
  35. 48  examples/as2/mochi/as3/MochiEventDispatcher.as
  36. 79  examples/as2/mochi/as3/MochiEvents.as
  37. 272  examples/as2/mochi/as3/MochiInventory.as
  38. 250  examples/as2/mochi/as3/MochiScores.as
  39. 723  examples/as2/mochi/as3/MochiServices.as
  40. 206  examples/as2/mochi/as3/MochiSocial.as
  41. 161  examples/as2/mochi/as3/MochiUserData.as
  42. 34  examples/as2/ui/Drawing.as
  43. 61  examples/as2/ui/EventLog.as
  44. 70  examples/as2/ui/JSON.as
  45. 1  examples/as2/ui/Menu.as
  46. 1  examples/as2/ui/MenuItem.as
  47. 54  examples/as2/ui/Notification.as
  48. 83  examples/as3/Ads.as
  49. 174  examples/as3/Coins.as
  50. 130  examples/as3/Core.as
  51. BIN  examples/as3/Example.fla
  52. 42  examples/as3/Init.as
  53. 47  examples/as3/LinkTracking.as
  54. 23  examples/as3/Makefile
  55. 183  examples/as3/Score.as
  56. 131  examples/as3/Social.as
  57. 63  examples/as3/UserData.as
  58. 62  examples/as3/UserProperties.as
  59. BIN  examples/as3/example.swf
  60. 862  examples/as3/mochi/as2/MochiAd.as
  61. 112  examples/as3/mochi/as2/MochiCoins.as
  62. 90  examples/as3/mochi/as2/MochiDigits.as
  63. 74  examples/as3/mochi/as2/MochiEventDispatcher.as
  64. 87  examples/as3/mochi/as2/MochiEvents.as
  65. 226  examples/as3/mochi/as2/MochiScores.as
  66. 511  examples/as3/mochi/as2/MochiServices.as
  67. 177  examples/as3/mochi/as2/MochiSocial.as
  68. 1,047  examples/as3/mochi/as3/MochiAd.as
  69. 139  examples/as3/mochi/as3/MochiCoins.as
  70. 92  examples/as3/mochi/as3/MochiDigits.as
  71. 48  examples/as3/mochi/as3/MochiEventDispatcher.as
  72. 79  examples/as3/mochi/as3/MochiEvents.as
  73. 272  examples/as3/mochi/as3/MochiInventory.as
  74. 250  examples/as3/mochi/as3/MochiScores.as
  75. 723  examples/as3/mochi/as3/MochiServices.as
  76. 206  examples/as3/mochi/as3/MochiSocial.as
  77. 161  examples/as3/mochi/as3/MochiUserData.as
  78. 80  examples/as3/ui/EventLog.as
  79. 75  examples/as3/ui/JSON.as
  80. 83  examples/as3/ui/Menu.as
  81. 122  examples/as3/ui/MenuItem.as
  82. 78  examples/as3/ui/Notification.as
  83. 270  examples/flex/AC_OETags.js
  84. 16  examples/flex/Makefile
  85. BIN  examples/flex/MochiAd.swf
  86. 49  examples/flex/MochiFlex.html
  87. 146  examples/flex/MochiFlex.mxml
  88. 51  examples/flex/MochiPreloader.as
  89. 862  examples/flex/mochi/as2/MochiAd.as
  90. 112  examples/flex/mochi/as2/MochiCoins.as
  91. 90  examples/flex/mochi/as2/MochiDigits.as
  92. 74  examples/flex/mochi/as2/MochiEventDispatcher.as
  93. 87  examples/flex/mochi/as2/MochiEvents.as
  94. 226  examples/flex/mochi/as2/MochiScores.as
  95. 511  examples/flex/mochi/as2/MochiServices.as
  96. 177  examples/flex/mochi/as2/MochiSocial.as
  97. 1,047  examples/flex/mochi/as3/MochiAd.as
  98. 139  examples/flex/mochi/as3/MochiCoins.as
  99. 92  examples/flex/mochi/as3/MochiDigits.as
  100. 48  examples/flex/mochi/as3/MochiEventDispatcher.as
  101. 79  examples/flex/mochi/as3/MochiEvents.as
  102. 272  examples/flex/mochi/as3/MochiInventory.as
  103. 250  examples/flex/mochi/as3/MochiScores.as
  104. 723  examples/flex/mochi/as3/MochiServices.as
  105. 206  examples/flex/mochi/as3/MochiSocial.as
  106. 161  examples/flex/mochi/as3/MochiUserData.as
171  README.txt
... ...
@@ -1,171 +0,0 @@
1  
-(c) 2006-2010 Mochi Media, Inc.
2  
-
3  
-This is version 3.4 of Mochi Ads, Mochi Scores, and Mochi Coins API.
4  
-
5  
-Please contact support@mochimedia.com or visit our community forums at
6  
-http://www.mochimedia.com/community/ if you have any questions or comments.
7  
-
8  
-For instructions, please see the README.html file in the 'docs' folder in this archive.
9  
-
10  
-New in 3.9:
11  
-- Added social API
12  
-- New examples
13  
-
14  
-New in 3.8:
15  
-- Added tracking API
16  
-
17  
-New in 3.7:
18  
-- Workaround for _global space bugs in previous security release of flash player 10
19  
-- Fixed static initializer in MochiCoins space
20  
-
21  
-New in 3.6:
22  
-- Created MochiSocial namespace
23  
-
24  
-New in 3.5:
25  
-- Bug fixes in MochiInventory API
26  
-
27  
-New in 3.4:
28  
-- New MochiUserData AS3 API for user data persistence
29  
-- New MochiInventory AS3 API (beta)
30  
-
31  
-New in 3.12:
32  
-- Updated documentation
33  
-
34  
-New in 3.11:
35  
-- Support for MochiLocalConnection
36  
-
37  
-New in 3.1:
38  
-- Mochi Coins
39  
-
40  
-New in 3.0:
41  
-- Merged Mochi Ads 2.7 and MochiServices 1.41
42  
-- Added the MochiDigits score obfuscation class
43  
-
44  
-For older, individual change logs of MochiAds.as and MochiServices, see below
45  
-
46  
-------------------------------------------------
47  
-
48  
-This is version 2.7 of MochiAd.as and examples.
49  
-
50  
-New in 2.7
51  
-- Fixed swf cache issue when loading consecutive ads in AS3
52  
-
53  
-New in 2.6:
54  
-- Fixed issue when using MochiCrypt with AS3 API
55  
-
56  
-New in 2.5:
57  
-- Documentation includes click-away ads
58  
-
59  
-New in 2.4:
60  
-
61  
-- New showClickAwayAd function for click-away ads
62  
-- New no_progress_bar option to disable the progress bar
63  
-- New ad_progress callback to get percentage of ad show completion or game load whichever is more
64  
-
65  
-New in 2.3:
66  
-
67  
-- New ad_loaded callback to get ad dimensions when the ad is loaded
68  
-- New ad_failed callback to get notification when an ad failed to load due to ad blocking or network failure
69  
-
70  
-New in 2.2:
71  
-
72  
-- More readable error reporting in thrown exceptions with regards to the clip parameter
73  
-- Memory usage improvements in the as3 API
74  
-- New AS3 Flex SDK 2 example
75  
-
76  
-New in 2.1:
77  
-
78  
-- Fixed Preloader.as in mxmlc example, no longer throws exception if
79  
-  there's a partial load (navigate away from the page while loading)
80  
-- Much improved as3 example, built in the same style as the as2 example.
81  
-
82  
-New in 2.0:
83  
-    
84  
-- Fixed unhandled exceptions in ActionScript 3 API
85  
-- Renamed MochiAd.showPreloaderAd to MochiAd.showPreGameAd
86  
-- Renamed MochiAd.showTimedAd to MochiAd.showInterLevelAd
87  
-
88  
-Contents:
89  
-
90  
-as1/
91  
-    ActionScript 1 compatible MochiAd code and example FLA.
92  
-
93  
-as2/
94  
-    ActionScript 2 compatible MochiAd code and example FLA.
95  
-
96  
-as3/
97  
-    ActionScript 3 compatible MochiAd code and example FLA.
98  
-
99  
-mtasc/
100  
-    MTASC compatible ActionScript 2 code and example project.
101  
-
102  
-mxmlc/
103  
-    Flex 2 SDK compatible ActionScript 3 code and example project.
104  
-    
105  
-Note that while we officially support Flash 7 and above, the MochiAd code
106  
-is currently Flash 6 compatible.
107  
-
108  
-
109  
-----------------------------------------
110  
-
111  
-This is version 1.40 of MochiServices and examples.
112  
-
113  
-Please contact team@mochimedia.com or visit our publisher forum at
114  
-http://www.mochimedia.com/community/ if you have any questions or comments.
115  
-
116  
-Contents:
117  
-
118  
-as2/
119  
-    ActionScript 2 compatible MochiServices code and example FLA.
120  
-
121  
-as3/
122  
-    ActionScript 3 compatible MochiServices code and example FLA.
123  
-
124  
-
125  
-Note that the MochiScores code
126  
-is currently Flash 7 compatible.
127  
-
128  
-RELEASE NOTES:
129  
-------------------
130  
-Version 1.40
131  
-Fix issue with multiple buttons in AS3 Link Tracking
132  
-
133  
-Version 1.36
134  
-Support fail over URL for Link Tracking
135  
-
136  
-Version 1.35
137  
-Support Mochi Link Tracking
138  
-
139  
-Version 1.34
140  
-Pass correct parent URL for AS3 games for Peel Away Ads
141  
-
142  
-Version 1.33:
143  
-Maintenance release
144  
-Docs update
145  
-
146  
-Version 1.32:
147  
-Passing MochiSerivices.connect errors on to showLeaderboard.
148  
-
149  
-Version 1.31:
150  
-AS2, recovery from services unload
151  
-AS3, better error messaging
152  
-new display options: hideDoneButton, showTableRank, previewScores, width
153  
-
154  
-Version 1.3:
155  
-Added score type-checking
156  
-Added closeLeaderboard method
157  
-Added displayPreloader parameter to showLeaderboard options
158  
-Added numScores parameter to showLeaderboard options
159  
-Added scores conversion method to MochiScores
160  
-
161  
-Version 1.2:
162  
-Enhanced error checking
163  
-Intermittent connection recovery
164  
-
165  
-Version 1.1:
166  
-Added onError callbacks
167  
-Fix to showLeaderboard when clip is specified
168  
-ActionScript 3 error handling enhancements
169  
-
170  
-Version 1.0:
171  
-Initial Release
3,251  docs/README.html
0 additions, 3251 deletions not shown
171  docs/css/ie.css
... ...
@@ -1,171 +0,0 @@
1  
-/* General */
2  
-body { font-size: 73% !important; }
3  
-
4  
-/* Set sticky footer */
5  
-* html #page { height: 100% !important; } /* for ie */
6  
-
7  
-
8  
-/* layout */
9  
-* html #header ul#nav { height: 1%; }
10  
-* html #header ul#nav li a.active { height: 1%; position: relative; }
11  
-* html #header ul#nav li a.active:hover /* For IE */ { background: url(../../images/g_nav_large.gif) no-repeat 0 -0px; z-index: 2; position: relative; cursor: default;  }
12  
-* html ul.bullet li { position: relative; }
13  
-
14  
-.tabs { height: 1.9em; }
15  
-
16  
-#sub-nav li.active a { display: block; text-align: center; position: relative; margin: 0 auto; zoom:1;}
17  
-
18  
-/* Forms */
19  
-* html ul.form li { zoom: 1; }
20  
-* html ul.form li ul.list li label { zoom:1; } /* IE bad margins */
21  
-* html ul.form li .column { margin-right: 33px; position: relative; height: 1%;}
22  
-
23  
-ul.form li ul.list li input{ margin: 0; padding: 0; }
24  
-
25  
-input.b-delete,
26  
-input.b-creategame,
27  
-input.b-createleaderboard,
28  
-input.b-createlb,
29  
-input.b-upload2,
30  
-input.b-yescreate,
31  
-input.b-delete2 { padding: 50px 0 0 0; cursor: pointer; }
32  
-
33  
-* html #page_help a { display: inline; padding: 3px 20px 3px 5px; border: 0px solid white; height: 1%; position: relative; } /* ie doesnt have transparent */
34  
-* html #page_help a:hover { border: 1px solid #dbccb6; }
35  
-* html .error-panel,
36  
-* html .success-panel,
37  
-* html .warning-panel { height: 1%; }
38  
-
39  
-
40  
-/* @group Dashboard */
41  
-
42  
-* html #dashboard #earnings #current #today { width: 150px; } /* fixing the min-width for ie6 */
43  
-#dashboard #games h2 { margin-bottom: 20px; }  /* odd little margin inconsistency in ie7 */
44  
-#dashboard #earnings { height: 1%; } /* Can has layout? */
45  
-#earnings #status div.paynumbers strong, #dashboard #earnings #current #this_month strong { line-height: 1.2em; }
46  
-#earnings #status div.paynumbers strong sup, #earnings #current li strong sup { position: relative; top: -.4em;}
47  
-#dashboard #earnings #status p { font-size: .9em; }
48  
-
49  
-#dashboard #side { position: static; z-index: 0;} /* it was showing over the dropdown windown */
50  
-
51  
-#dashboard #graph { z-index: 2; }
52  
-#dashboard #games { z-index: 1; }
53  
-
54  
-* html #dashboard #graph a#multi_drop_down { width: 7em; border-color: #fffafa; }
55  
-* html #dashboard #graph #item_all { height: 1%; }
56  
-
57  
-* html #dashboard .date { right: 22px; } /* IE6 */
58  
-* html #dashboard #graph { padding-right: 0;}
59  
-* html #dashboard #side #forums ul li, 
60  
-* html #dashboard #side #forums ul,
61  
-* html #dashboard #side #forums,
62  
-* html #dashboard #side
63  
- { overflow: hidden; } /* this hack prevents long words in urls from ruining the layout */
64  
-* html #dashboard #side #contest p { height: 40px; }
65  
-
66  
-/* @end */
67  
-
68  
-/* @group Game Details */
69  
-
70  
-#game-details #side #time-selector li.active { background: url("../images/g_selectarrow.gif") no-repeat bottom center;  }
71  
-#game-details #side #time-selector li.active a { display: block; background: none; }
72  
-#game-details #code #in-game-panel { zoom: 100%; } /* gimmeh layout */
73  
-#game-details .b-deactivate { padding-top: 50px; }
74  
-
75  
-/* @end */
76  
-
77  
-/* @group Game Settings */
78  
-#game-settings #profile .category ul li { padding-bottom: 1px; margin-bottom: 0px; border: 1px solid white; }
79  
-#game-settings #distribution .wrapper { position: relative;  height: 1%; }
80  
-
81  
-* html #addgame.step3 #profile .category ul li { padding-bottom: 1px; margin-bottom: 0px; }
82  
-* html #game-settings #main { position: relative; height: 1%; }
83  
-* html #game-settings #distribution_edit_form,
84  
-* html #game-settings #distribution_edit_form .wrapper { position: relative; height: 1%; }
85  
-
86  
-/* @end */
87  
-
88  
-/* @group Leaderboards */
89  
-
90  
-#lb.list .board_title { zoom: 1; position: relative; }
91  
-#lb.list .board_title .tabs { zoom: 1; right: -5px; float: right; }
92  
-#lb.list .lb_picker { zoom: 1; position: relative; }
93  
-#lb.list #main .manage .all input { width: 15px; height: 15px; }
94  
-
95  
-
96  
-* html #lb.list .lb_picker { height: 1%; }
97  
-* html #lb.list #side { height: 300px; }
98  
-* html #lb.list #side a.b-addlb { margin-bottom: 0px; position: relative; zoom: 1;  }
99  
-* html #lb.list #side ul { margin-top: 10px; }
100  
-* html #lb.list #side ul li a { position: relative; zoom: 1; }
101  
-* html #lb.list .board_title h3 { width: 450px; }
102  
-
103  
-#lb.create_1 #colors .colorinput { margin-right: 5px; }
104  
-#lb.create_1 #code #widget_code { height: 1.3em; overflow: hidden; }
105  
-#lb.create_1 h3 span { font-size: .8em; }
106  
-
107  
-* html #lb.create_1 #step_title, * html #lb.create_2 #step_title { zoom: 1; }
108  
-* html #lb.create_1 ul.form #type .column { width: 250px; }
109  
-* html #lb.create_1 ul.form #type #score { width: 325px; }
110  
-
111  
-* html #lb.create_1 #advanced_panel, 
112  
-* html #lb.create_1 #advanced_panel ul { position: relative; height: 1%; zoom: 1; }
113  
-
114  
-* html #lb.create_2 h2,
115  
-* html #lb.create_2 h3,
116  
-* html #lb.create_2 ol li { zoom: 1; position: relative; height: 1%;}
117  
-
118  
-* html #lb.create_2 textarea { height: 3em; font-size: .9em; }
119  
-
120  
-/* @end */
121  
-
122  
-/* Game Instructions */
123  
-#game-inst ol li h2 { height: 30px; }
124  
-
125  
-
126  
-/* Intercept page */
127  
-#intercept .buttons { margin: 10px 0 0 65px; padding-left: 0; zoom:1; }
128  
-
129  
-/* @group Account */
130  
-
131  
-/* account settings */
132  
-#account-info #address { background: url("../images/g_envelope.gif") no-repeat; width: 526px; height: 155px; position: relative; }
133  
-#account-info #address h4 { position: relative; top: 26px; left: 50px; color: #ddd;  }
134  
-#account-info #address address { position: relative !important; top: 51px; left: 40px; display: block; width: 20em; height: 61px; padding: 0 10px; background: url("../images/g_envelopelines.gif") no-repeat left top; line-height: 15px; }
135  
-.section, .section form, .section form table, .section form table tbody, .section form table tbody tr, .section form table tbody tr td { position: relative; height: 1%; zoom: 1; }
136  
-
137  
-#account-info table td { position: relative; } /* weird bug with address */
138  
-
139  
-/* @end */
140  
-
141  
-
142  
-/* Traffic Sharing */
143  
-#acc-traffic #main h2.title { margin-left: 11px; }
144  
-
145  
-/* Game Instructions */
146  
-#game-inst ol { position: relative; } /* peekaboo */
147  
-#game-inst ol h2 { height: 20px; }
148  
-#game-inst textarea { font-size: .9em; width: 600px; height: 15px; line-height: 15px;}
149  
-
150  
-/* @group Help / Help Panel */
151  
-
152  
-/* Help FAQ, Docs */
153  
-
154  
-* html #help.docs blockquote.code { padding-bottom: 0; } 
155  
-
156  
-* html #help.faq #main ul ul li { position: relative; }
157  
-* html #help.faq #content #main h2 { position: relative; }
158  
-* html #help_search .textbox { width: 179px; }
159  
-
160  
-* html #help_panel #help_index, 
161  
-* html #help_panel #help_content 
162  
-
163  
-{ height: 200px; }
164  
-
165  
-/* @end */
166  
-
167  
-/* @group MochiPass */
168  
-
169  
-#mochipass a { border: none; }
170  
-
171  
-/* @end */
538  docs/css/screen.css
... ...
@@ -1,538 +0,0 @@
1  
-/* @override 
2  
-	https://dev.mochiads.com/static/dev/css/screen.css
3  
-*/
4  
-
5  
-@import "pages.css";
6  
-
7  
-/* @group Typography */
8  
-
9  
-body { font-size: 12px; line-height: 1.5em; font-family:  Verdana, Helvetica, sans-serif; color: #4f4f56; }
10  
-
11  
-h1, h2, h3, h4, h5, h6 { margin: 0; color: #844a19; color: #844a19; font-family: verdana, sans-serif; letter-spacing: -1px; }
12  
-h1 { font-size: 1.6em; margin-bottom: .5em; color: #5a3718; }
13  
-h2 { font-size: 1.33em; margin-bottom: .3em; }
14  
-h3 { font-size: 1.1em; }
15  
-h4 { font-size: 1.0em; }
16  
-
17  
-a { color: #fd8b1a; font-weight: bold; }
18  
-a:hover { color: #55c6da; }
19  
-
20  
-p a {  font-weight: bold; }
21  
-p { line-height: 1.5em; margin: 0em 0em 1em; color: #414244;  }
22  
-p strong {  }
23  
-
24  
-em {  }
25  
-strong { color: #844a19; }
26  
-
27  
-ul, ol { line-height: 1.5em; margin: 0; padding: 0; list-style: none; }
28  
-ul li { margin: 0; padding: 0; }
29  
-
30  
-ul.bullet, ol.bullet { margin: 0 0 20px; }
31  
-ul.bullet li { background: url("../images/g_eggbullet.gif") no-repeat left 3px; padding-left: 18px; color: #844a19; }
32  
-ol.bullet { color: #844a19; list-style-type: decimal; list-style-position: inside; }
33  
-
34  
-dl {  }
35  
-dt { font-weight: bold; margin-bottom: .2em; color: #414244; }
36  
-dd { margin-left: 2em; margin-bottom: 2em; }
37  
-
38  
-
39  
-
40  
-.weak { font-size: .9em; font-weight: normal; }
41  
-.contextual { font-size: .9em; color: #888; }
42  
-.footnote, .note { font-size: .9em; }
43  
-.continue { float: right; }
44  
-
45  
-abbr { color: #c03; cursor: help; border-bottom: 1px dashed #c03; }
46  
-
47  
-
48  
-hr { border: none; border-bottom: 1px solid #aaa; background: none; height: 1px; }
49  
-a img { border: none; }
50  
-
51  
-
52  
-#header h1 a,
53  
-.img
54  
-{ 
55  
-	letter-spacing: -1000em;  text-indent : -999em; overflow : hidden; display: block;
56  
-	background-repeat: repeat; background-color: transparent; /* IE FLICKER FIX - no background position! */
57  
-}
58  
-/* Just for Opera, but hide from MacIE */
59  
-/*\*/html>body .img { letter-spacing : normal; text-indent : -9999em; overflow : hidden;}
60  
-/* End of hack */
61  
-
62  
-/* @end */
63  
-
64  
-/* @group Layout */
65  
-
66  
-/*
67  
-#tmp_over { position: absolute; width: 100%; background: url("../images/tmp_dash2.png") no-repeat; background-position: center -9px; opacity: .6; height: 900px; z-index: 100; } /* overlay images for testing */
68  
-
69  
-/* stick footer at bottom */
70  
-html { height: 100%; margin: 0; padding: 0; }
71  
-body { height: 100%; margin: 0; padding: 0; }
72  
-#page { position: relative; min-height: 100% !important; height: auto !important; }
73  
-#footer { margin-top: -45px; position: relative; }
74  
-/* end sticky footer */
75  
-
76  
-body { background: url(../images/g_bg_header.jpg) repeat-x; margin: 0 auto; }
77  
-#page { width: 950px; margin: 0 auto; padding: 0px; position: relative; }
78  
-#header { position: relative; height: 82px; padding: 0; margin: 0; }
79  
-#header h1 { position: absolute; left: -4px; top: inherit; bottom: 0px; height: 71px; width: 213px; background: url(../images/g_logo2.gif) no-repeat left bottom; margin: 0; }
80  
-#header h1 a { display: block; height: 71px; width: 276px; left: -4px;  position: relative; text-indent: -9999em; overflow: hidden; }
81  
-
82  
-#header ul#nav { position: absolute; top: inherit; bottom: 0; right: 0; margin: 0; padding: 0; font-size: .9em; }
83  
-#header ul#nav li { display: inline; background: url(../images/g_nav_large.gif) no-repeat right -72px; height: 29px; width: 100px; float: left; padding: 0 0px 0 3px; }
84  
-#header ul#nav li a { color: #fff; text-decoration: none; font-weight: bold; line-height: 29px; text-align: center; height: 29px; width: 100px; display: block; font-size: 105%; text-transform: uppercase; margin: 0 auto; text-shadow: 2px 2px 1px #3b3b3d; }
85  
-#header ul#nav li a:hover { background: url(../images/g_nav_large.gif) no-repeat right -36px; text-shadow: 2px 2px 1px #0bb0bc; }
86  
-#header ul#nav li a.active { background: url(../images/g_nav_large.gif) no-repeat right -0px; height: 29px; z-index: 2; position: relative; text-shadow: 2px 2px 1px #db7d17; }
87  
-
88  
-#content { margin: 30px 0px 0px 0px; padding: 0 0 91px; }
89  
-#content #title_section { float: left; margin: 0 0 42px; }
90  
-#content #title_section h1 { color: #5a3718; font-size: 1.4em; font-weight: bold; margin: 0 !important;   }
91  
-#main { width: 658px; float: left; position: relative; }
92  
-#side { width: 199px; float: right; position: relative; }
93  
-#side h3 { line-height: 1.5em; margin-bottom: .5em; } 
94  
-#side ul { font-size: .9em; margin: 0 0 1.5em 1em; }
95  
-
96  
-#footer { margin-bottom: 0; width: 100%; height: 45px; background: url(../images/g_footer.gif) repeat-x left bottom; color: #7cb0b5; letter-spacing: -1px; font-weight: bold; font-size: .9em; }
97  
-#footer .wrapper { position: relative; width: 946px; margin: 0 auto; padding:  17px 10px 0 10px; }
98  
-#footer #company { float: left; width: 50%; background: url(../images/g_mochimediaicon.gif) no-repeat left .3em; padding: 0 0 4px 18px; }
99  
-#footer #foot_nav { float: right; }
100  
-#footer #foot_nav ul { margin: 0; padding: 0; text-align: right;}
101  
-#footer #foot_nav ul li { margin: 0 0 0 5px; padding: 0; float: left; }
102  
-#footer #foot_nav a { display: block; padding: 0px 5px 2px; background: #85CDD6; color: #ffffff; text-decoration: none; }
103  
-#footer #foot_nav a:hover { background: #fd8b1a; color: #fff; }
104  
-#footer a { color: #a78364; }
105  
-#footer a:hover { color: #f4a031; }
106  
-
107  
-/* @end */
108  
-
109  
-/* @group UI Elements */
110  
-
111  
-.callout { background-color: #FFFEE3; padding: 1em; border-top: 1px solid #E9E6B9; border-bottom: 1px solid #E9E6B9; }
112  
-a.button { background-color: #4B4545; padding: 3px; display: block; color: #FFFEE3; font-weight: bold; text-align: center; text-decoration: none;  }
113  
-
114  
-.clear { clear: both; height: 1px; overflow: hidden; font-size: 1px; }
115  
-.hide { display: none; }
116  
-.show { display: block; }
117  
-.helpText { cursor: help; border-bottom: 1px dashed; }
118  
-.swfobject { display: none; }
119  
-
120  
-a.tooltip { font-weight: normal !important; text-decoration: underline; color: #3b9cdd; margin-left: 10px; font-size: .9em; letter-spacing: 0;}
121  
-a.help { color: #3b9bde; letter-spacing: 0; }
122  
-.tooltip_panel { background: #fff; border: 2px solid #9b9595; padding: 10px; font-size: .9em; z-index: 1000; width: 200px; position: absolute; }
123  
-.tooltip_panel { width: 210px; background-color: #f9fcff; font-size: .9em; border: 2px solid #63b0e6;  }
124  
-.tooltip_panel h3 { font-size: 1.1em; color: #3083b6;  }
125  
-
126  
-a.docs { background: url("../images/icon_doc.gif") no-repeat left .3em; padding: 1px 0 1px 16px;  }
127  
-
128  
-#sub-nav { margin: 4px 0 0px; height: 30px; background: url("../images/g_divider_fade.gif") left top no-repeat; padding-top: 11px;}
129  
-#sub-nav ul { position: relative; }
130  
-#sub-nav li.first { padding-left: 0; background: none; }
131  
-#sub-nav li { float: left; padding: 0 15px 0 15px; background: url("../images/g_divider_vert.gif") center left no-repeat; }
132  
-#sub-nav li.active { position: relative; top: -1px; right: -2px; bottom: -2px; margin-left: -4px; height: 31px; padding: 0; text-align: center; line-height: 22px;  }
133  
-#sub-nav li.active a:hover { color: #5a3718; cursor: default; }
134  
-#sub-nav li a { font-weight: bold; font-size: .9em; text-decoration: none; color: #5a3718; }
135  
-#sub-nav li a:hover { color: #e97215; }
136  
-
137  
-/* TODO: These could be combined */
138  
-#steps { margin: 4px 0 0px; height: 30px; background: url("../images/g_divider_fade.gif") left top no-repeat; padding-top: 11px;}
139  
-#steps ul { position: relative; }
140  
-#steps li.first { margin-left: 0 !important; padding-left: 0px !important; background: none; }
141  
-#steps li { float: left; padding: 0; padding-left: 20px; margin-left: 10px; font-weight: bold; color: #9c9b9b; background: url("../images/icon_smallarrow.gif") no-repeat 0 .5em; }
142  
-#steps li.active { color: #5a3718;}
143  
-#steps li.complete, #steps li.complete a { color: #a87b52; }
144  
-#steps li.active a:hover { color: #5a3718; cursor: default; }
145  
-#steps li a { font-weight: bold; font-size: .9em; text-decoration: none; color: #5a3718; }
146  
-#steps li a:hover { color: #e97215; }
147  
-
148  
-.steps {  }
149  
-.steps li { display: inline; margin-right: 20px; }
150  
-.steps li a { text-decoration: none; color: #aaa; }
151  
-.steps li.active a { color: #fd8b1a; }
152  
-.steps li.complete a { color: #a87b52; }
153  
-/* END TODO */
154  
-
155  
-
156  
-ul.tabs { margin: 0; padding: 0 0 0 1em; background: url("../images/g_tab_border.gif") no-repeat bottom left; min-height: 1.9em; list-style: none !important; }
157  
-ul.tabs li { float: left !important; clear: none !important; margin: 0 5px 0 0 !important; padding: 0 0 0 0px!important; background: url("../images/g_tab_off.gif") no-repeat right top !important;}
158  
-ul.tabs li a { display: block; padding: 2px 8px 0 8px; background: url("../images/g_tab2_off.gif") no-repeat left top !important; font-size: .9em; text-decoration: none; color: #9c9b9b; font-weight: normal; }
159  
-ul.tabs li a:hover { color: #4b4b4d; }
160  
-ul.tabs li.active { background-image: url("../images/g_tab_on.gif")  !important; }
161  
-ul.tabs li.active a { background-image: url("../images/g_tab2_on.gif") !important; color: #844a19; }
162  
-ul.tabs li.active a:hover { color: #844a19; }
163  
-
164  
-/* roundy heading sections like in the account area */
165  
-.section { margin: 0 0 20px; padding: 0 0px 0 20px; position: relative; }
166  
-.section .title { background: url("../images/bg_sectionright.gif") no-repeat right center; height: 23px; margin: 0 0 20px -20px; position: relative; }
167  
-.section .title h2 { background: url("../images/bg_sectionleft.gif") no-repeat left center; font-size: 1.0em; margin: 0; padding-left: 20px; float: left; line-height: 23px; font-weight: bold; }
168  
-.section .title .b-help { float: left; margin-left: 10px; height: 23px; background: url("../images/b_sectionhelp.gif") no-repeat center center; }
169  
-.section table { width: 100%; margin-right: 0px; font-size: .9em; }
170  
-.section table thead th { text-align: left; color: #5a3718; padding-bottom: 5px; }
171  
-.section table tbody th { text-align: left; color: #5a3718; }
172  
-.section table tbody td, .section table tbody th { background: url("../images/g_divider_hor.gif") repeat-x top left; padding: 10px 0 10px; vertical-align: top; }
173  
-
174  
-.help { font-size: .9em; color: #aaa; }
175  
-
176  
-/* @group Earnings*/
177  
-
178  
-#earnings { padding-top: 18px; margin-bottom: 10px; background: url("../images/g_mochimoney.gif") no-repeat left 6px; }
179  
-#earnings h3 { color: #9c9b9b !important; margin: 0 0 2px; line-height: 1.1em; font-size: 1em;}
180  
-#earnings ul { padding: 0; margin: 0; }
181  
-#earnings ul li { float: left; }
182  
-#earnings .stats { background: url("../images/g_divider_hor.gif") repeat-x; padding-top: 8px;}
183  
-
184  
-#earnings #current { float: left; width: 314px; margin-right: 30px; }
185  
-#earnings #current h2 { padding-left: 65px; }
186  
-
187  
-#earnings #status div.paynumbers strong, 
188  
-#earnings #current li strong { line-height: 22px; font-size: 2.2em; color: #5a3718;  letter-spacing: -2px; }
189  
-#earnings #current li strong { color: #844a19; font-size: 1.8em; }
190  
-#earnings #status div.paynumbers strong sup, #earnings #current li strong sup { font-size: .5em; letter-spacing: -1px; margin-left: .3em; }
191  
-#earnings #current #today { background: url("../images/g_divider_diag3.gif") no-repeat; margin-right: 15px; background-position: right 2px; padding: 0 8px 10px 0px; min-width: 150px; }
192  
-#earnings #current #today #sparkline_pay { float:left; margin-right:10px; padding-top:19px; }
193  
-#earnings #current #today .numbers { float: none; margin-left: 0px; }
194  
-#earnings #current #today h3 { }
195  
-#earnings #current #today strong { }
196  
-
197  
-#earnings #current .processing strong { color: #2f8d9d; }
198  
-
199  
-#earnings #status { float: left; width: 314px; }
200  
-#earnings #status a.settings { position: absolute; right: 0; font-size: .8em; }
201  
-#earnings #status p { font-size: .8em; margin: 0 0 5px;}
202  
-#earnings #status p a { font-size: 1em; position: static; }
203  
-
204  
-#earnings #status .processing, 
205  
-#dashboard #earnings #status .processing strong { color: #2f8d9d; }
206  
-#earnings #status div.paynumbers { float: left; width: 130px; line-height: 30px; margin-bottom: 10px; }
207  
-#earnings #status div.paygraph { float: left; width: 184px; }
208  
-
209  
-.graph { background: url(../images/g_graph_blue.gif) repeat-x; height: 16px; border-right: 1px solid #5fa6ab; position: relative; padding: 0; }
210  
-.graph span { height: 16px; display: block; background: url(../images/g_graph_orange.gif) repeat-x; overflow: hidden; border-left: 1px solid #be6e18; border-right: 1px solid #be6e18; position: absolute; top: 0; left: 0; }
211  
-.graph strong { margin-left: 50px; font-size: .7em; line-height: 16px; color: #c7f5ff; }
212  
-.graph span strong { color: #fffbe9; overflow: hidden; }
213  
-
214  
-/* @end */
215  
-
216  
-#info-panel { background: url(../images/g_box_widem.gif) repeat-y top; margin: .5em 0 1em; position: relative;}
217  
-#info-panel .top { background: url(../images/g_box_widet.gif) no-repeat; height: 12px; }
218  
-#info-panel .content { padding: 8px 0 8px 90px; background-position: 15px top; background-repeat: no-repeat; }
219  
-#info-panel .bottom { background: url(../images/g_box_wideb.gif) no-repeat left bottom; height: 12px; }
220  
-#info-panel .content h2 { margin: 0; }
221  
-#info-panel .content p { font-size: .9em; }
222  
-#info-panel .content p a { font-weight: normal; }
223  
-#info-panel.warning .content { background-image: url(../images/g_warningsymbol.gif); }
224  
-#info-panel.pause .content { background-image: url(../images/g_pausesymbol.gif); }
225  
-#info-panel.hold .content { background-image: url(../images/g_holdsymbol.gif); }
226  
-#info-panel.hold .delete { display: block; background: url(../images/b_small_yellow.gif) no-repeat; width: 79px; height: 26px; border: none !important; text-transform: uppercase; color: #fff !important; font-weight: bold; cursor: pointer; text-align: center; text-decoration: none; font-size: 1em; padding-left: 0; padding-bottom: 6px;}
227  
-
228  
-/* @end */
229  
-
230  
-/* @group Feedback Panel */
231  
-
232  
-#feedback_panel { width: 500px; position: absolute; z-index: 100; background: #fff; border: 2px solid #eee; padding: 15px; font-size: .9em; }
233  
-#feedback_panel .b-close { position: absolute; right: 10px; top: 10px; }
234  
-#feedback_panel .buttons { margin-left: 0; }
235  
-#feedback_panel textarea { width: 90%; height: 75px; }
236  
-
237  
-/* @end */
238  
-
239  
-/* @group Help Panel */
240  
-
241  
-/* only used in help center area */ 
242  
-#help_search { float: right; width: 240px; position: relative; right: -1px;}
243  
-#help_search label { color: #844a19; font-size: .9em; margin: 0; line-height: 1em; }
244  
-#help_search a { background: url("../images/b_help.gif") no-repeat left center; padding-left: 20px; font-size: .9em; display: block; height: 20px;}
245  
-#help_search .textbox { border-color: #dbccb6; width: 182px; height: 16px; padding: 2px 5px; margin: 6px 5px 5px 0; float: left; }
246  
-#help_search .b-go { margin-top: 0px; top: 8px; right: 0; position: relative; }
247  
-
248  
-#page_help { float: right; position: relative; }
249  
-#page_help a { background: url("../images/b_help_down.gif") no-repeat right center; padding: 0 20px 0 5px; text-decoration: none; color: #844a19; font-weight: normal; font-size: .9em; height: 20px; display: block; border: 1px solid transparent; outline: none; }
250  
-#page_help a.active { background-image: url("../images/b_help_up.gif"); }
251  
-#page_help a:hover { color: #3b9bde; border: 1px solid #dbccb6; }
252  
-
253  
-#help_panel { width: 550px; position: absolute; z-index: 100; background: #fff; border: 2px solid #eee; padding: 0; font-size: .9em; }
254  
-#help_panel #help_header { position: relative; padding: 8px 15px 8px; height: 18px; background: #efefef; }
255  
-#help_panel #help_header h2 { margin: 0; line-height: 1em; }
256  
-#help_panel #s_help { position: absolute; top: 2px; right: 15px; border-color: #bbb; }
257  
-#help_panel #s_help.default { color: #999;  }
258  
-
259  
-#help_panel #help_slider { position: relative; width: 1200px; margin-top: 1.5em; }
260  
-#help_panel #help_index, #help_panel #help_content { margin-top: 0em; padding: 0 15px 0; }	
261  
-#help_panel #help_index { float: left; width: 520px; }
262  
-#help_panel #help_content { float: left; width: 520px; }
263  
-	
264  
-#help_panel h3 { margin-bottom: .5em; background: url("../images/g_divider_hor.gif") repeat-x bottom left; padding-bottom: .5em; font-size: 1.2em; }
265  
-#help_panel h5 { font-size: 1em; margin: 1em 0 .5em; color: #4f4f56 !important; }
266  
-#help_panel #description { margin-bottom: 20px; line-height: 1.4em; }	
267  
-#help_panel #help_index ul li { margin-bottom: .8em; line-height: 1.3em; }
268  
-#help_panel #help_index ul { margin-bottom: 2em; }
269  
-
270  
-#help_panel #topics { float:left; width: 175px; padding-right: 30px; }
271  
-#help_panel #topics li { background: url("../images/g_divider_hor.gif") repeat-x left bottom; padding: 5px 0 9px; margin: 0 !important; }
272  
-#help_panel #topics li a { text-decoration: none; color: #626262; }
273  
-#help_panel #topics li.active a { color: #844a19; background: url("../images/b_rightarrow.gif") no-repeat right 3px; padding-right: 10px; }
274  
-#help_panel #topics li.active {  }
275  
-#help_panel #faq { float:left; width: 310px; }
276  
-
277  
-#help_panel #help_content { margin-top: 0px; }
278  
-#help_panel #help_title { padding-right: 40px; margin-bottom: 5px; }
279  
-#help_panel #help_text { margin-bottom: 2em; font-size: 1.05em; line-height: 1.4em; }
280  
-#help_panel #help_back { font-size: .9em; }
281  
-
282  
-#help_panel #help_footer { background: #efefef; line-height: 2em; margin-top: 2em; padding: 0 15px;}
283  
-#help_panel #help_footer a { font-weight: bold; text-decoration: none; color: #626262;  }
284  
-#help_panel #help_footer a:hover { color: #fd8b1a; }
285  
-#help_panel #help_footer #help_all { float: left; }
286  
-#help_panel #help_footer .b-close { float: right; text-indent: 0; width: auto; height: auto; padding: 0 0 0 18px; background-position: left .6em; background-repeat: no-repeat; line-height: 2em; background-image: url("../images/b_close2.gif");}
287  
-
288  
-/* @end */
289  
-
290  
-/* @group Tables */
291  
-
292  
-#content table { width: 100%; border-collapse: collapse; font-size: 1em; }
293  
-#content table th { text-align: left; padding-left: 10px; vertical-align: center; }
294  
-#content table thead th { border-bottom: 2px solid #844a19; padding: 0 5px .4em 10px; color: #844a19; font-size: .9em; line-height: 1.4em; vertical-align: bottom; border-right: 3px solid white; }
295  
-#content table thead th h2, 
296  
-#content table thead th h3 { font-size: 1.3em; font-weight: bold; margin-bottom: 0; color: #844a19;}
297  
-
298  
-#content table tbody td, 
299  
-#content table tbody th { background: url("../images/g_divider_hor.gif") repeat-x bottom left; padding: 4px 10px 5px 10px; text-align: left; }
300  
-#content table tbody th { color: #844a19; font-weight: bold; }
301  
-#content table tbody td {  }
302  
-
303  
-#content table tfoot th { border-top: 2px solid #794e29; font-size: .9em; }
304  
-#content table tfoot td { padding: .4em 10px; text-align: left; border-top: 2px solid #794e29; font-weight: bold; }
305  
-#content table tfoot th, #reporting table tfoot td { background-color: #fff; color: #794e29; }
306  
-
307  
-
308  
-table#key_mappings { width:60%; }
309  
-table#key_mappings tbody td { padding: 4px 0px 5px; }
310  
-
311  
-/* @end */
312  
-
313  
-
314  
-/* @group Forms */
315  
-
316  
-form { margin: 0; padding: 0; }
317  
-/* fieldset { border: none; margin: 0; padding: 0; position: relative; margin: 0 0 0px 0; border-bottom: none; } */
318  
-
319  
-.required { color: #DF2020; }
320  
-input.imagebutton { vertical-align: top; }
321  
-
322  
-/* standard left labeled form */
323  
-ul.form { margin: 0; padding: 0; }
324  
-ul.form li { margin: 0 0 5px !important; padding: 0 0 .8em !important; background: url("../images/g_divider_hor.gif") repeat-x bottom left; clear: left; }
325  
-ul.form li p.note { font-size: .9em; margin-left: 130px; color: #666; margin-bottom: 5px; margin-left: 130px; }
326  
-ul.form li span { display: inline; font-size: .9em; margin-left: 10px; color: #666; }
327  
-ul.form li.buttons { margin-left: 130px !important; background: none !important; }
328  
-ul.form li h3 { margin: 0 0 .5em; }
329  
-ul.form label { display: block; float: left; text-align: left; padding: 0 10px 0 0; width: 120px; font-weight: bold; font-size: 90%; color: #71451e; margin: 5px 0 0 0; }
330  
-ul.form label em { color: #DF2020 !important; font-weight: normal; font-size: .9em; margin-right: 5px; }
331  
-ul.form label span { font-weight: normal; }
332  
-
333  
-ul.form li .column { float: left; margin-right: 40px; }
334  
-
335  
-ul.form li ul li { background: none; margin: 0 !important; padding: 0 !important; }
336  
-ul.form li ul li label { font-size: 1em; }
337  
-ul.form li ul.list li { clear: none; margin-bottom: 1px !important; padding: 0 !important; }
338  
-ul.form li ul.list li input{ margin: 0 2px 0 0; padding: 0; }
339  
-ul.form li ul.list li label { font-size: 1em; color: #4f4f56; margin: 0; width: auto; font-weight: normal; }
340  
-ul.form li ul.list li.active label { font-weight: bold !important; }
341  
-ul.form li ul.list label span { margin-left: 0px; }
342  
-
343  
-/* short forms - labels above inputs */
344  
-ul.short label { float: none; font-size: 1.1em; width: auto; }
345  
-ul.short .textbox, ul.short textarea { width: 300px; }
346  
-ul.short p.note { margin-left: 0 !important; }
347  
-ul.short li.buttons { margin-left: 0 !important; }
348  
-
349  
-.buttons { margin-top: 10px !important;  background: url("../images/g_divider_hor.gif") repeat-x top left; padding-top: 10px; }
350  
-.buttons input { float: left; margin-right: 10px; }
351  
-.buttons .b-save { float: left; margin-right: 8px; }
352  
-.buttons .b-delete2 { margin-right: 8px; }
353  
-.buttons .cancel { font-weight: normal; font-size: 1em; margin-left: 0px; }
354  
-
355  
-.cancel, a.cancel { line-height: 25px; }
356  
-.cancel a, a.cancel { color: #e63f1e; font-weight: bold; padding: 2px 3px; }
357  
-.cancel a:hover, a.cancel:hover { background-color: #e63f1e; color: #fff; text-decoration: none; }
358  
-
359  
-/* form controls */
360  
-label.checkbox { vertical-align: absmiddle; }
361  
-span.codetext, 
362  
-p.codetext { background-color: #e7fafc }
363  
-input.textbox, 
364  
-textarea, 
365  
-span.codetext, 
366  
-p.codetext { border: 2px solid #dbccb6; font-size: .95em; padding: .4em .4em; margin-top: .3em; font-weight: bold; color: #5c5d5f; }
367  
-input.textbox:focus, textarea:focus, 
368  
-input.textbox:active, textarea:active { background: #e7fafc url(../images/g_input_peekaboo.gif) no-repeat right bottom; border: 2px solid #91eaf2; color: #323439; }
369  
-textarea { font-size: 1.1em; font-family: sans-serif; height: 6em; font-weight: normal; }
370  
-
371  
-/* form input errors */
372  
-input.error, .error input, textarea.error, .error textarea {  border: 1px solid #DF2020 !important; background-color: #ffdddd; }
373  
-label.error, label.error strong, label.error a { color: #DF2020 !important; }
374  
-
375  
-/* Response panels from form submits */
376  
-.error-panel,
377  
-.success-panel,
378  
-.warning-panel
379  
-{
380  
-	border-bottom: 2px solid; border-top: 2px solid;
381  
-	margin: 1em 0; padding: 1em 30px 1em 55px; font-size: .9em; font-weight: bold;
382  
-	min-height: 23px; 
383  
-	padding-left: 55px;	
384  
-	background-position: 8px 8px;
385  
-	background-repeat: no-repeat;
386  
-}
387  
-
388  
-.error-panel h2,
389  
-.success-panel h2,
390  
-.warning-panel h2 { font-size: 1.5em; font-weight: bold; margin-bottom: .2em; margin-left: 0 !important; }
391  
-
392  
-.error-panel ul,
393  
-.success-panel ul,
394  
-.warning-panel ul { margin: 0; padding: 0; }
395  
-
396  
-.error-panel p,
397  
-.success-panel p,
398  
-.warning-panel p { margin: 0; padding: 0; margin-left: 0 !important; padding-left: 0 !important; font-weight: normal; }
399  
-
400  
-.error-panel ul li,
401  
-.success-panel ul li,
402  
-.message-panel ul li { background-image: none; padding: 0; margin-bottom: .2em; }
403  
-
404  
-.error-panel input,
405  
-.success-panel input,
406  
-.warning-panel input { margin: 5px 0; }
407  
-
408  
-.error-panel {
409  
-	background-image: url(../images/g_warning_symbol2.gif); 
410  
-	background-color: #fdedeb;	
411  
-	color: #eb5441;
412  
-	border-color: #f4aea6;	
413  
-}
414  
-.error-panel h2 { color: #DF2020; }
415  
-.error-panel .message { display: block; color: #4B4545; }
416  
-
417  
-.success-panel {
418  
-	background-image: url(../images/g_success_symbol2.gif); 
419  
-	background-color: #f6fbea;	
420  
-	color: #657565;	
421  
-	border-color: #bcce99;
422  
-}
423  
-.success-panel h2 { color: #779022; }
424  
-.success-panel .title { display: block; font-size: 1.2em; font-weight: bold; color: #49812a; margin-bottom: .2em; }
425  
-
426  
-.warning-panel { background-color: #fffacd; border-color: #dcd382; padding-left: 30px; }
427  
-.warning-panel h2,
428  
-.warning-panel strong,
429  
-.warning-panel label { color: #6c601c; }
430  
-.warning-panel p { color: #7e7522; }
431  
-
432  
-
433  
-/* @group Buttons */
434  
-
435  
-.b-edit { display: block; width: 51px; height: 15px; background: url("../images/b_edit_small.gif"); text-indent: -9999em; overflow: hidden; border: none; outline: none; }
436  
-.b-editprofile { display: block; width: 120px; height: 16px; background: url("../images/b_editprofile.gif"); text-indent: -9999em; overflow: hidden; border: none; }
437  
-.b-delete { display: block; width: 58px; height: 15px; background: transparent url("../images/b_delete_small.gif"); text-indent: -9999em; overflow: hidden; border: none; }
438  
-.b-ban { display: block; width: 47px; height: 15px; background: transparent url("../images/b_ban.gif"); text-indent: -9999em; overflow: hidden; border: none; }
439  
-input.b-delete { display: block; border: none !important; padding: 0px 0 0 0; margin: 0; cursor: pointer; }
440  
-
441  
-.b-delete2 { display: block; width: 72px; height: 26px; background: transparent url("../images/b_delete.gif"); text-indent: -9999em; overflow: hidden; border: none; }
442  
-input.b-delete2 { display: block; border: none !important; padding: 0px 0 0 0; margin: 0; cursor: pointer; }
443  
-
444  
-.b-deactivate { display: block; width: 84px; height: 16px; background: transparent url("../images/b_deactivate.gif") no-repeat; text-indent: -9999em; overflow: hidden; border: none; }
445  
-input.b-deactivate { display: block; border: none !important; padding: 0px 0 0 0; margin: 0; cursor: pointer; }
446  
-
447  
-a.b-back { background: url("../images/b_backarrow.gif") no-repeat left center; padding: 1px 0 1px 20px; }
448  
-.b-check { display: block; width: 97px; height: 16px; background: transparent url("../images/b_check.gif"); text-indent: -9999em; overflow: hidden; border: none; }
449  
-.b-yescreate { display: block; width: 178px; height: 23px; background: transparent url("../images/b_yescreate.gif"); text-indent: -9999em; overflow: hidden; border: none; }
450  
-.b-done { display: block; width: 69px; height: 26px; background: transparent url("../images/b_done.gif"); text-indent: -9999em; overflow: hidden; border: none; }
451  
-.b-fillout { display: block; width: 159px; height: 26px; background: transparent url("../images/b_fillout.gif"); text-indent: -9999em; overflow: hidden; border: none; }
452  
-.b-addgroup { display: block; width: 78px; height: 16px; background: url("../images/b_addgroup.gif"); text-indent: -9999em; overflow: hidden; border: none; }
453  
-.b-uploadnew { display: block; width: 130px; height: 16px; background: url("../images/b_uploadnew.gif"); text-indent: -9999em; overflow: hidden; border: none; }
454  
-.b-advanced { display: block; width: 136px; height: 16px; background: url("../images/b_advanced.gif"); text-indent: -9999em; overflow: hidden; border: none; }
455  
-.b-report { display: block; width: 90px; height: 16px; background: url("../images/b_viewreport.gif"); text-indent: -9999em; overflow: hidden; border: none; cursor: pointer; }
456  
-.b-uploadnewad { display: block; width: 103px; height: 16px; background: url("../images/b_uploadnewad.gif"); text-indent: -9999em; overflow: hidden; border: none; }
457  
-.b-uploadcustom { display: block; width: 118px; height: 16px; background: url("../images/b_uploadcustom.gif"); text-indent: -9999em; overflow: hidden; border: none; }
458  
-.b-addcustom { display: block; width: 130px; height: 16px; background: url("../images/b_addsettings.gif"); text-indent: -9999em; overflow: hidden; border: none; }
459  
-.b-uploadgame { display: block; width: 118px; height: 16px; background: url("../images/b_uploadgame.gif"); text-indent: -9999em; overflow: hidden; border: none; }
460  
-.b-upload2 { display:  block; width: 130px; height: 26px; background: url("../images/b_uploadgame_large.gif"); text-indent: -9999em; overflow: hidden; border: none; }
461  
-
462  
-.b-zoom { display: block; width: 22px; height: 22px; background: url("../images/b_zooml.gif"); text-indent: -9999em; overflow: hidden; border: none; }
463  
-.b-zoomclose { display: block; width: 22px; height: 22px; background: url("../images/b_zoomclosel.gif"); text-indent: -9999em; overflow: hidden; border: none; }
464  
-.b-save { display: block; width: 59px; height: 26px; background: transparent url("../images/b_save.gif") no-repeat center top; border: none; }
465  
-.b-addlb { display: block; width: 114px; height: 16px; background: transparent url("../images/b_addlb.gif"); text-indent: -9999em; overflow: hidden; border: none; }
466  
-.b-createlb { display: block; width: 173px; height: 26px; background: transparent url("../images/b_create_lb.gif"); text-indent: -9999em; overflow: hidden; border: none; }
467  
-input.b-save { display: block; border: none !important; padding: 50px 0 0 0; margin: 0; cursor: pointer; }
468  
-.b-send { display: block; width: 59px; height: 26px; background: transparent url("../images/b_send.gif") no-repeat center top; border: none; }
469  
-input.b-send { display: block; border: none !important; padding: 50px 0 0 0; margin: 0; cursor: pointer; }
470  
-.b-go { display: block; width: 39px; height: 20px; background: transparent url("../images/b_go.gif") no-repeat center top; border: none; }
471  
-input.b-go { display: block; border: none !important; padding: 20px 0 0 0; margin: 0; cursor: pointer; }
472  
-.b-ssave { display: block; width: 43px; height: 16px; background: url("../images/b_ssave.gif"); text-indent: -9999em; overflow: hidden; border: none; }
473  
-.b-clear { display: block; width: 95px; height: 16px; background: url("../images/b_clearboard.gif"); text-indent: -9999em; overflow: hidden; border: none; }
474  
-.b-undo { display: block; width: 82px; height: 16px; background: url("../images/b_undoban.gif"); text-indent: -9999em; overflow: hidden; border: none; }
475  
-.b-close { display: block; width: 13px; height: 13px; background: url("../images/b_close.gif"); text-indent: -9999em; overflow: hidden; border: none; }
476  
-.b-home { display: block; width: 25px; height: 13px; background: url("../images/b_backhome.gif"); text-indent: -9999em; overflow: hidden; border: none; }
477  
-.b-help { display: none; width: 15px; height: 15px; background: url("../images/b_help.gif") no-repeat center center; text-indent: -9999em; overflow: hidden; border: none; }
478  
-.b-first { display: block; width: 52px; height: 15px; background: url("../images/b_paging.gif") no-repeat 0 top; text-indent: -9999em; overflow: hidden; border: none; }
479  
-.b-prev { display: block; width: 45px; height: 15px; background: url("../images/b_paging.gif") no-repeat -52px top; text-indent: -9999em; overflow: hidden; border: none; }
480  
-.b-next { display: block; width: 45px; height: 15px; background: url("../images/b_paging.gif") no-repeat -97px top; text-indent: -9999em; overflow: hidden; border: none; }
481  
-.b-last { display: block; width: 52px; height: 15px; background: url("../images/b_paging.gif") no-repeat -143px top; text-indent: -9999em; overflow: hidden; border: none; }
482  
-input.b-creategame { display: block; width: 115px; height: 26px; background: url("../images/b_creategame.gif"); text-indent: -9999em; overflow: hidden; border: none !important; cursor: pointer; }
483  
-input.b-createlb { display: block; width: 171px; height: 26px; background: url("../images/b_createleaderboard.gif"); text-indent: -9999em; overflow: hidden; border: none !important; cursor: pointer; }
484  
-.b-right { display: block; width: 14px; height: 14px; background: url("../images/b_rightarrow.gif") no-repeat center center; text-indent: -9999em; overflow: hidden; }
485  
-.b-left { display: block; width: 14px; height: 14px; background: url("../images/b_leftarrow.gif") no-repeat center center; text-indent: -9999em; overflow: hidden; }
486  
-.b-resubmit { display: block; width: 169px; height: 27px; background: transparent url("../images/b_resubmit.gif") no-repeat center top; border: none; }
487  
-input.b-resubmit { display: block; border: none !important; padding: 50px 0 0 0; margin: 0; cursor: pointer; }
488  
-
489  
-/* @end */
490  
-
491  
-/* @end */
492  
-
493  
-
494  
-
495  
-/* @group MochiPass */
496  
-
497  
-#mochipass #util_nav li em { font-style: normal;  }
498  
-#mochipass #util_nav li em a { color: #ffb72a; text-decoration: underline; }
499  
-
500  
-#mochipass { height: 24px; background: url("../images/pass/g_background.gif") repeat-x; position: relative; z-index: 500; font-size: .8em;}
501  
-#mochipass .wrapper { width: 950px; padding: 0 0px; margin: 0 auto; position: relative;}
502  
-#mochipass ul { padding: 0; margin: 0; }
503  
-#mochipass ul li { position: relative; padding-right: 12px !important; }
504  
-#mochipass ul li span { display: block; position: absolute; right: 3px; top: 0; height: 24px; width: 5px; background: url("../images/pass/g_divider.gif") no-repeat center center; }
505  
-
506  
-#mochipass #mp_sites { height: 24px; float: left; background: url("../images/g_mochiegg.gif") no-repeat left center; width: auto !important; padding-left: 18px; }
507  
-#mochipass #mp_sites li { width: auto; float: left;  margin: 0 !important; }
508  
-#mochipass #mp_sites li span { }
509  
-
510  
-#mochipass a { display: inline; text-indent: 0; height: auto; width: auto; font-weight: bold; color: #fff; line-height: 24px; padding: 1px 5px; text-decoration: none; border: 1px solid transparent; }
511  
-#mochipass a:hover { color: #ffb72a; background-color: #555; border: 1px solid #777; }
512  
-
513  
-#mochipass #util_nav { position: absolute; right: 0; top: 0; color: #fff; height: 24px; }
514  
-#mochipass #util_nav li { float: left; height: 24px; margin: 0; padding: 0 12px 0 0 !important; }
515  
-#mochipass #util_nav li strong { color: #fff; }
516  
-#mochipass #util_nav li span { right: 3px !important; }
517  
-
518  
-#mochipass #util_nav li#mp_name { font-weight: bold; padding: 0 16px 0 0 !important; }
519  
-#mochipass #util_nav li#mp_name a { padding: 0; }
520  
-#mochipass #util_nav li#mp_name span { right: 3px !important; }
521  
-#mochipass #util_nav li#mp_messages  { padding: 0 12px 0 0px !important; }
522  
-#mochipass #util_nav li#mp_messages a { background-image: url("../images/icon_mail.gif"); background-repeat: no-repeat; background-position: 5px 3px; padding: 1px 3px 1px 21px; }
523  
-#mochipass #util_nav li#mp_messages.unread a { background-image: url("../images/icon_mail_full.gif"); }
524  
-#mochipass #util_nav li#mp_help a#help_panel_link { background-image: url("../images/pass/g_downarrow.gif"); background-repeat: no-repeat; background-position: center center; border: 1px solid #999; padding: 0 6px; margin-right: 2px; }
525  
-#mochipass #util_nav li#mp_help a#help_link {  }
526  
-#mochipass #util_nav li#mp_help a.opened { background-image: url("../images/pass/g_uparrow.gif");}
527  
-#mochipass #util_nav li#mp_feedback { padding-right: 0 !important; }
528  
-#mochipass #util_nav li#mp_feedback a { background-image: url("../images/pass/g_downarrow.gif"); background-repeat: no-repeat; background-position: 97% center; padding-right: 12px; margin-right: 2px; }
529  
-#mochipass #util_nav li#mp_feedback a.opened { background-image: url("../images/pass/g_uparrow.gif");}
530  
-
531  
-#mochipass #util_nav li#mp_last { padding-right: 0 !important; }
532  
-#mochipass #util_nav li#mp_last span { display: none !important; }
533  
-#mochipass #util_nav li#mp_features span { left:  2px; }
534  
-#mochipass #util_nav li#mp_features { padding-left: 9px !important; padding-right: 0 !important; }
535  
-#mochipass #util_nav li#mp_features a { color: #fff4b4;  }
536  
-
537  
-
538  
-/* @end */
BIN  docs/img/consume_settings.png
BIN  docs/img/copy_include.gif
BIN  docs/img/g_mochicrypt-system.gif
BIN  docs/img/item_type.png
BIN  docs/img/leaderboard_width_height_api.png
BIN  docs/img/mochiads_zip_folders.jpg
BIN  docs/img/paste_interlevel_code.gif
BIN  docs/img/paste_pregame_code.gif
75  examples/as2/Ads.as
... ...
@@ -1,75 +0,0 @@
1  
-import mochi.as2.*;
2  
-import ui.*;
3  
-
4  
-class Ads
5  
-{
6  
-    private static var MARGINS:Number = 4;
7  
-    private static var _ad:MovieClip;
8  
-    
9  
-    public static function init():Void
10  
-    {
11  
-    }
12  
-    
13  
-    public static function get menu():Menu
14  
-    {            
15  
-        var items:Array = [
16  
-            new MenuItem( showClickAway, 'Show click-away ad' ),
17  
-            new MenuItem( hideAd, 'Hide click-away ad' ),
18  
-            new MenuItem( showInterLevel, 'Show inter-level ad' ),
19  
-            new MenuItem( returnToMain, 'Return to Main Menu' )
20  
-        ];
21  
-
22  
-        return new Menu( 'MochiAds API Demonstration', items );
23  
-    }
24  
-    
25  
-    private static function showClickAway():Void
26  
-    {
27  
-        if( _ad )
28  
-            return ;
29  
-        
30  
-        var depth:Number = Init.clip.getNextHighestDepth();
31  
-        
32  
-        _ad = Init.clip.createEmptyMovieClip( '_adClip'+depth, depth );
33  
-        _ad._x = Stage.width - 300 - MARGINS;
34  
-        _ad._y = MARGINS;
35  
-        
36  
-        MochiAd.showClickAwayAd( {
37  
-            id: Init.AD_ID,             // This is the game ID for displaying ads!
38  
-            clip: _ad                   // We are displaying in a container (which is dynamic)
39  
-        } );
40  
-    }
41  
-    
42  
-    private static function hideAd():Void
43  
-    {
44  
-        if( !_ad )
45  
-            return ;
46  
-
47  
-        MochiAd.unload(_ad);
48  
-
49  
-        _ad.unloadClip();
50  
-        _ad = null;
51  
-    }
52  
-    
53  
-    private static function showInterLevel():Void
54  
-    {
55  
-        if( _ad )
56  
-            hideAd();
57  
-
58  
-        Core.hideMenu();
59  
-            
60  
-        var depth:Number = Init.clip.getNextHighestDepth();
61  
-        _ad = Init.clip.createEmptyMovieClip( '_adClip'+depth, depth );
62  
-        
63  
-        MochiAd.showInterLevelAd( {
64  
-            id: Init.AD_ID,             // This is the game ID for displaying ads!
65  
-            clip: _ad,                  // We are displaying in a container (which is dynamic)
66  
-            ad_finished: returnToMain   // Ad has completed
67  
-        } );
68  
-    }
69  
-    
70  
-    private static function returnToMain():Void
71  
-    {
72  
-        hideAd();
73  
-        Core.returnToMain();
74  
-    }
75  
-}
149  examples/as2/Coins.as
... ...
@@ -1,149 +0,0 @@
1  
-import mochi.as2.*;
2  
-import ui.*;
3  
-
4  
-class Coins
5  
-{
6  
-    public static var inventory:Object;
7  
-    public static var giftables:Array;
8  
-    
9  
-    public static function init():Void
10  
-    {
11  
-        // We create an empty bundle
12  
-        inventory = new Object();
13  
-
14  
-        MochiSocial.addEventListener( MochiSocial.LOGGED_IN, clearInventory );
15  
-        MochiSocial.addEventListener( MochiSocial.LOGGED_OUT, clearInventory );
16  
-
17  
-        MochiCoins.addEventListener( MochiCoins.ITEM_NEW, onNewItems );
18  
-        MochiCoins.addEventListener( MochiCoins.ITEM_OWNED, onItemOwned );
19  
-        MochiCoins.addEventListener( MochiCoins.STORE_ITEMS, onStoreInfo );                        
20  
-
21  
-        MochiCoins.getStoreItems();
22  
-    }
23  
-
24  
-    public static function get menu():Menu
25  
-    {
26  
-        var menu:Array = [ 
27  
-            new MenuItem( sellEverything, 'Show the game store' ),
28  
-            new MenuItem( doFundingRequest, 'Offer user coins' ),
29  
-            new MenuItem( Core.returnToMain, 'Return to Main Menu' )                
30  
-         ];
31  
-        
32  
-        for( var id:String in inventory )
33  
-        {
34  
-            var item:Object = inventory[id];
35  
-         
36  
-            if( item.demoVideo )
37  
-                menu.unshift( itemVideoOption( id ) );
38  
-            
39  
-            menu.unshift( itemMenuOption( id ) );
40  
-        }
41  
-
42  
-        return new Menu( "MochiCoins API Demonstration", menu );
43  
-    }
44  
-    
45  
-    public static function doFundingRequest():Void
46  
-    {
47  
-        MochiCoins.requestFunding({});
48  
-    }
49  
-    
50  
-    private static function sellEverything():Void
51  
-    {
52  
-        MochiCoins.showStore({});
53  
-    }
54  
-
55  
-    private static function itemMenuOption( id:String ):MenuItem
56  
-    {
57  
-        var funct:Function = function():Void
58  
-        { 
59  
-            MochiCoins.showItem( { 
60  
-                item: id
61  
-            } );
62  
-        };
63  
-        
64  
-        return new MenuItem( funct, "Buy " + Coins.inventory[id].name, Coins.inventory[id].imgURL );
65  
-    }
66  
-    
67  
-    private static function itemVideoOption( id:String ):MenuItem
68  
-    {
69  
-        var funct:Function = function():Void
70  
-        { 
71  
-            MochiCoins.showVideo( {
72  
-                item: id
73  
-            } ); 
74  
-        };
75  
-        
76  
-        return new MenuItem( funct, "Watch video for " + Coins.inventory[id].name );
77  
-    }
78  
-    
79  
-    private static function clearInventory( args:Object ):Void
80  
-    {
81  
-        // We clear the number of owned items to zero
82  
-        // NOTE: We do not reset inventory, as we keep our store information here
83  
-        if( !inventory )
84  
-            return ;
85  
-        
86  
-        for( var key:String in inventory )
87  
-            inventory[key].count.value = 0;
88  
-    }
89  
-
90  
-    private static function onStoreInfo( store:Array ):Void
91  
-    {
92  
-        // Note: This gives an accurate snapshot of the user's inventory
93  
-        inventory = new Object();
94  
-        giftables = new Array();
95  
-        
96  
-        for( var i:Number = 0; i < store.length; i++ )
97  
-        {
98  
-            var item:Object = store[i];
99  
-            var id:String = item.id;
100  
-            
101  
-            inventory[id] = new Object();
102  
-
103  
-            if( item.privateProperties.gift_item )
104  
-                giftables.push(id);
105  
-
106  
-            // Copy over all the known properties of the item
107  
-            for( var key:String in item )
108  
-            {
109  
-                // We protect our numerical values from memory tampering!
110  
-                if( typeof(item[key]) == 'number' )
111  
-                    inventory[id][key] = new MochiDigits( item[key] );
112  
-                else
113  
-                    inventory[id][key] = item[key];
114  
-            }
115  
-            
116  
-            if( !inventory[id].count )
117  
-                inventory[id].count = new MochiDigits( 0 );
118  
-        }
119  
-    }
120  
-
121  
-    private static function onNewItems( item:Object ):Void
122  
-    {
123  
-        // New items are items purchased while the game is running.  We
124  
-        // increment existing inventory by count purchased.  Likewise,
125  
-        // we will be create an empty entry if one does not yet exist
126  
-        
127  
-        Core.popup( "Purchased " + item.count + "x " + inventory[item.id].name + "(s)!" );
128  
-        
129  
-        if( !inventory[item.id] )
130  
-            inventory[item.id] = { count: new MochiDigits(item.count) };
131  
-        else            
132  
-            inventory[item.id].count.value += item.count;
133  
-
134  
-        // Refresh the menu
135  
-        Menu.menu = menu;
136  
-    }
137  
-    
138  
-    private static function onItemOwned( item:Object ):Void
139  
-    {
140  
-        // Item owned is sent when an existing item was purchased in a prior
141  
-        // session.  the item object will contain the absolute number of items
142  
-        // owned, rather than the ammount gained
143  
-        
144  
-        if( !inventory[item.id] )
145  
-            inventory[item.id] = { count: new MochiDigits(item.count) };