function loadXML file var _loc4 new XML _loc4 ignoreWhite true _loc4 o

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
function loadXML(file)
{
var _loc4 = new XML();
_loc4.ignoreWhite = true;
_loc4.onLoad = function (success)
{
if (success)
{
if (this.firstChild.childNodes[0].attributes.error == "1")
{
_this.Player.showError(this.firstChild.childNodes[0].attributes.errortext);
}
else
{
_this.error_mc._visible = false;
var _loc4 = parseInt(this.firstChild.childNodes[0].attributes.k1);
var _loc6 = parseInt(this.firstChild.childNodes[0].attributes.k2);
var _loc5 = this.firstChild.childNodes[0].attributes.un;
var _loc3 = this.firstChild.childNodes[0].attributes.s;
_root.s = _loc3;
if (_root.site == "http://www.megavideo.com")
{
_this.Player.start("http://www" + _loc3 + ".megavideo.com/files/" + _this.decrypt(_loc5, _loc4, _loc6) + "/");
}
else
{
_this.Player.start("http://www" + _loc3 + ".megaporn.com/files/" + _this.decrypt(_loc5, _loc4, _loc6) + "/");
} // end else if
_root.embed = this.firstChild.childNodes[0].attributes.embed ? (unescape(this.firstChild.childNodes[0].attributes.embed)) : (undefined);
_root.title = unescape(this.firstChild.childNodes[0].attributes.title);
_root.description = unescape(this.firstChild.childNodes[0].attributes.description);
_root.added = unescape(this.firstChild.childNodes[0].attributes.added);
_root.username = unescape(this.firstChild.childNodes[0].attributes.username);
_root.views = unescape(this.firstChild.childNodes[0].attributes.views);
_root.comments = unescape(this.firstChild.childNodes[0].attributes.comments);
_root.favorited = unescape(this.firstChild.childNodes[0].attributes.favorited);
_root.category = unescape(this.firstChild.childNodes[0].attributes.category);
_root.tags = unescape(this.firstChild.childNodes[0].attributes.tags);
_root.rating = unescape(this.firstChild.childNodes[0].attributes.rating);
if (_root.latin == "1")
{
_root.videoInfo_mc.title_txt.text = _root.title;
_root.videoInfo_mc.titleNL_txt.text = "";
}
else
{
_root.videoInfo_mc.title_txt.text = "";
_root.videoInfo_mc.titleNL_txt.text = _root.title;
} // end else if
_root.videoInfo_mc.views_mc.views_txt.text = _root.views;
} // end else if
}
else
{
trace ("Warning! XML hasn\'t been loaded!");
_this.Player.showError("Error loading the vid\'s url");
_root.loader_mc.stop();
_root.loader_mc._visible = false;
} // end else if
};
_loc4.load(file);
} // End of the function
function runFromUrl()
{
if (_root.errormsg != undefined)
{
error_mc._visible = true;
error_mc.error_txt.text = _root.errormsg;
}
else
{
error_mc._visible = false;
if (_root.site == "http://www.megavideo.com")
{
Player.start("http://www" + s + ".megavideo.com/files/" + decrypt(_root.un, parseInt(_root.k1), parseInt(_root.k2)) + "/");
}
else
{
Player.start("http://www" + s + ".megaporn.com/files/" + decrypt(_root.un, parseInt(_root.k1), parseInt(_root.k2)) + "/");
} // end else if
} // end else if
} // End of the function
function hideNavigation()
{
Controls.hideNavigation();
} // End of the function
function decrypt(str, key1, key2)
{
var _loc1 = [];
for (var _loc3 = 0; _loc3 < str.length; ++_loc3)
{
switch (str.charAt(_loc3))
{
case "0":
{
_loc1.push("0000");
break;
}
case "1":
{
_loc1.push("0001");
break;
}
case "2":
{
_loc1.push("0010");
break;
}
case "3":
{
_loc1.push("0011");
break;
}
case "4":
{
_loc1.push("0100");
break;
}
case "5":
{
_loc1.push("0101");
break;
}
case "6":
{
_loc1.push("0110");
break;
}
case "7":
{
_loc1.push("0111");
break;
}
case "8":
{
_loc1.push("1000");
break;
}
case "9":
{
_loc1.push("1001");
break;
}
case "a":
{
_loc1.push("1010");
break;
}
case "b":
{
_loc1.push("1011");
break;
}
case "c":
{
_loc1.push("1100");
break;
}
case "d":
{
_loc1.push("1101");
break;
}
case "e":
{
_loc1.push("1110");
break;
}
case "f":
{
_loc1.push("1111");
break;
}
} // End of switch
} // end of for
_loc1 = _loc1.join("").split("");
var _loc6 = [];
for (var _loc3 = 0; _loc3 < 384; ++_loc3)
{
key1 = (key1 * 11 + 77213) % 81371;
key2 = (key2 * 17 + 92717) % 192811;
_loc6[_loc3] = (key1 + key2) % 128;
} // end of for
for (var _loc3 = 256; _loc3 >= 0; --_loc3)
{
var _loc5 = _loc6[_loc3];
var _loc4 = _loc3 % 128;
var _loc8 = _loc1[_loc5];
_loc1[_loc5] = _loc1[_loc4];
_loc1[_loc4] = _loc8;
} // end of for
for (var _loc3 = 0; _loc3 < 128; ++_loc3)
{
_loc1[_loc3] = _loc1[_loc3] ^ _loc6[_loc3 + 256] & 1;
} // end of for
var _loc12 = _loc1.join("");
var _loc7 = [];
for (var _loc3 = 0; _loc3 < _loc12.length; _loc3 = _loc3 + 4)
{
var _loc9 = _loc12.substr(_loc3, 4);
_loc7.push(_loc9);
} // end of for
var _loc2 = [];
for (var _loc3 = 0; _loc3 < _loc7.length; ++_loc3)
{
switch (_loc7[_loc3])
{
case "0000":
{
_loc2.push("0");
break;
}
case "0001":
{
_loc2.push("1");
break;
}
case "0010":
{
_loc2.push("2");
break;
}
case "0011":
{
_loc2.push("3");
break;
}
case "0100":
{
_loc2.push("4");
break;
}
case "0101":
{
_loc2.push("5");
break;
}
case "0110":
{
_loc2.push("6");
break;
}
case "0111":
{
_loc2.push("7");
break;
}
case "1000":
{
_loc2.push("8");
break;
}
case "1001":
{
_loc2.push("9");
break;
}
case "1010":
{
_loc2.push("a");
break;
}
case "1011":
{
_loc2.push("b");
break;
}
case "1100":
{
_loc2.push("c");
break;
}
case "1101":
{
_loc2.push("d");
break;
}
case "1110":
{
_loc2.push("e");
break;
}
case "1111":
{
_loc2.push("f");
break;
}
} // End of switch
} // end of for
return (_loc2.join(""));
} // End of the function
Stage.align = "TL";
Stage.scaleMode = "noScale";
Stage.showMenu = false;
System.security.allowDomain("*");
MovieClip.prototype.setText = function (s)
{
if (_root.latin == "1")
{
this.text_txt.text = s;
this.textNL_txt.text = "";
}
else
{
this.text_txt.text = "";
this.textNL_txt.text = s;
} // end else if
};
Color.prototype.setTint = function (r, g, b, amount)
{
var _loc2 = new Object();
_loc2.ra = _loc2.ga = _loc2.ba = 100 - amount;
var _loc3 = amount / 100;
_loc2.rb = r * _loc3;
_loc2.gb = g * _loc3;
_loc2.bb = b * _loc3;
this.setTransform(_loc2);
};
Color.prototype.setAdvanced = function (r, g, b)
{
var _loc2 = new Object();
_loc2.rb = r;
_loc2.gb = g;
_loc2.bb = b;
this.setTransform(_loc2);
};
var blueTF = new TextFormat();
blueTF.color = 16745647;
_root.alphaOver = 90;
_root.alphaOut = 75;
var LC = new LocalConnection();
var domain = LC.domain();
var domainEnd = domain.slice(domain.length - 5, domain.length);
var site = domainEnd == "o.com" ? ("http://www.megavideo.com") : ("http://www.megaporn.com/video");
var playerType = s == undefined || un == undefined || k1 == undefined || k2 == undefined ? ("embedded") : ("regular");
var voted = false;
var latin = latin == undefined ? ("1") : (latin);
var detailslatin = detailslatin == undefined ? ("1") : (detailslatin);
var initWidth = Stage.width;
overURL = _root.site + "/?c=premium&l=1";
login = "Log in";
logout = "Log out";
if (playerType == "embedded")
{
cancel = "Cancel";
ok = "OK";
close = "Close";
send = "Send";
copycode = "Copy code";
des01 = "Show details";
des02 = "Embed video";
des03 = "Show URL of video";
des04 = "Upload new video";
des05 = "Download original";
des06a = "Switch to fullscreen mode";
des06b = "Switch to window mode";
des07a = "Switch to 4:3";
des07b = "Switch to 16:9";
des07c = "Switch to original aspect ratio";
des08 = "Comment on this video";
des09 = "Open chat - coming soon";
des10 = "Email to a friend";
des11a = "Save to favorites";
des11b = "Save to favorites (log in)";
des12 = "Advertising";
det01 = "Poor";
det02 = "Nothing special";
det03 = "Worth watching";
det04 = "Pretty cool";
det05 = "Excellent";
det06 = "Thank you for rating";
det07 = "You must be logged in to rate";
det08 = "An error occured processing your vote";
det09 = "Added";
det10 = "By";
det11 = "Views";
det12 = "Comments";
det13 = "Favored";
det14 = "Category";
det15 = "Tags";
det16 = "Rate this video";
det17 = "Added to favorites";
det18 = "Save to favorites";
det19 = "Flag as inappropriate";
det20 = "Download original";
dfi01 = "An error occured";
dfi02 = "A security error occured";
dfi03 = "Downloading";
dfi04 = "URL of file";
dfi05 = "External download";
dfi06 = "Download in player";
dfi07 = "Re-download";
dfi08 = "Retry";
over1 = "You have watched ";
over2a = " minute of video today.";
over2b = " minutes of video today.";
over3 = "Please wait ";
over4a = site == "http://www.megavideo.com" ? (" minute or click here to enjoy unlimited use of Megavideo.") : (" minute or click here to enjoy unlimited use of Megaporn.");
over4b = site == "http://www.megavideo.com" ? (" minutes or click here to enjoy unlimited use of Megavideo.") : (" minutes or click here to enjoy unlimited use of Megaporn.");
emb01 = "Copy the following HTML code and paste it to your site\'s HTML code.";
emb02 = "Embedding disabled by video owner.";
stf01 = "Please check your email address";
stf02 = "Please check recepient\'s email address";
stf03 = "Your email was successfully sent.";
stf04 = "An error occured, please try again later.";
stf05 = "Friend\'s e-mail";
stf06 = "Your email";
stf07 = "Your message";
fav01 = "Do you wish to add this video to your favorites?";
fav02 = "Processing, please wait...";
fav03 = "Added to favorites";
fav04 = "An error occured, please try again later.";
com01 = "Post new comment";
com02 = "Back to video";
com03 = "Loading data, please wait";
com04 = "Enter your comment";
com05 = "Comment posted.";
com06 = "An error occured, please try again later.";
com07 = "Processing, please wait...";
com08 = "Characters left: ";
com09 = "This video has not been commented yet.";
} // end if
var mcl = new MovieClipLoader();
var _this = this;
var Player = new com.mega.FLVPlayer(this.videoContainer_mc.theVideo);
if (s != undefined && un != undefined && k1 != undefined && k2 != undefined)
{
if (errormsg == undefined)
{
runFromUrl();
}
else
{
Player.showError(errormsg);
} // end if
} // end else if
var mclListener = new Object();
mclListener.onLoadInit = function (target_mc)
{
target_mc._width = Stage.width;
target_mc._height = Stage.height;
_root.imageLoaded = true;
target_mc.onRelease = function ()
{
getURL(_root.site + "/?v=" + _root.v, "_blank");
};
};
var image_mcl = new MovieClipLoader();
image_mcl.addListener(mclListener);
image_mcl.loadClip(_root.image, this.imageContainer_mc);
flash.external.ExternalInterface.addCallback("hideNavigation", null, hideNavigation);