showmycode.com

декомпилятор декодер Visual Basic zend decode decoder adobe flashdecompiler decode swf file QR code encoder decoder

Show My Code is a Free Online Decoder / Decompiler

Zend encoded .php | Java .class | Adobe Flash .swf | .NET programs .exe, .dll | QR bar codes

Please enable JavaScript.

Hosted by DigitalOcean. Click here to get $10 and try it yourself!
Try out your web hacking skills at
PHP Developer? Try out Kint -
Bookmark and Share

Your decoded code:

  1. package {
  2. import flash.events.*;
  3. import flash.display.*;
  4. import com.nova.*;
  5. import flash.net.*;
  6. import flash.system.*;
  7.  
  8. public class CloudPlayer extends Sprite {
  9.  
  10. private var _themeLoader:Loader;
  11. private var _flashVars:object;
  12.  
  13. public function CloudPlayer(){
  14. Security.allowdomain("*");
  15. if (stage){
  16. this.init();
  17. } else {
  18. addEventListener(Event.ADDED_TO_STAGE, this.init);
  19. };
  20. }
  21. private function init(_arg1:Event=null):void{
  22. stage.scalemode = StageScaleMode.NO_SCALE;
  23. stage.align = StageAlign.TOP_LEFT;
  24. removeEventListener(Event.ADDED_TO_STAGE, this.init);
  25. this._flashVars = LoaderInfo(stage.loaderInfo).parameters;
  26. if (this._flashVars.themeStyle == undefined){
  27. };
  28. if (this._flashVars.theme == undefined){
  29. };
  30. this._themeLoader = new Loader();
  31. this._themeLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.handleLoadFilesComplete);
  32. var _local2:LoaderContext = new LoaderContext();
  33. _local2.checkPolicyFile = true;
  34. if (Security.sandboxType == Security.REMOTE){
  35. _local2.securityDomain = SecurityDomain.currentDomain;
  36. };
  37. _local2.applicationDomain = ApplicationDomain.currentDomain;
  38. this._themeLoader.load(new URLRequest(this._flashVars.theme), _local2);
  39. }
  40. private function handleLoadFilesComplete(_arg1:Event):void{
  41. var _local2:Player = new Player(this.getSkinContent(), stage, this._flashVars);
  42. addChild(_local2);
  43. }
  44. private function getSkinContent():DisplayObjectContainer{
  45. var _local1:DisplayObjectContainer = (this._themeLoader.content as DisplayObjectContainer);
  46. return (_local1);
  47. }
  48.  
  49. }
  50. }//package
  51. package fl.transitions.easing {
  52.  
  53. public class Regular {
  54.  
  55. public static function easeIn(_arg1:number, _arg2:number, _arg3:number, _arg4:number):number{
  56. _arg1 = (_arg1 / _arg4);
  57. return ((((_arg3 * _arg1) * _arg1) + _arg2));
  58. }
  59. public static function easeOut(_arg1:number, _arg2:number, _arg3:number, _arg4:number):number{
  60. _arg1 = (_arg1 / _arg4);
  61. return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2));
  62. }
  63. public static function easeInOut(_arg1:number, _arg2:number, _arg3:number, _arg4:number):number{
  64. _arg1 = (_arg1 / (_arg4 / 2));
  65. if (_arg1 < 1){
  66. return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2));
  67. };
  68. --_arg1;
  69. return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2));
  70. }
  71.  
  72. }
  73. }//package fl.transitions.easing
  74. package fl.transitions {
  75. import flash.events.*;
  76.  
  77. public class TweenEvent extends Event {
  78.  
  79. public static const MOTION_START:string = "motionStart";
  80. public static const MOTION_STOP:string = "motionStop";
  81. public static const MOTION_FINISH:string = "motionFinish";
  82. public static const MOTION_CHANGE:string = "motionChange";
  83. public static const MOTION_RESUME:string = "motionResume";
  84. public static const MOTION_LOOP:string = "motionLoop";
  85.  
  86. public var time:number = nan;
  87. public var position:number = nan;
  88.  
  89. public function TweenEvent(_arg1:string, _arg2:number, _arg3:number, _arg4:boolean=false, _arg5:boolean=false){
  90. super(_arg1, _arg4, _arg5);
  91. this.time = _arg2;
  92. this.position = _arg3;
  93. }
  94. override public function clone():Event{
  95. return (new TweenEvent(this.type, this.time, this.position, this.bubbles, this.cancelable));
  96. }
  97.  
  98. }
  99. }//package fl.transitions
  100. package fl.transitions {
  101. import flash.events.*;
  102. import flash.display.*;
  103. import flash.utils.*;
  104.  
  105. public class Tween extends EventDispatcher {
  106.  
  107. protected static var _mc:movieclip = new movieclip();
  108.  
  109. public var isPlaying:boolean = false;
  110. public var obj:object = null;
  111. public var prop:string = "";
  112. public var func:function;
  113. public var begin:number = nan;
  114. public var change:number = nan;
  115. public var useSeconds:boolean = false;
  116. public var prevTime:number = nan;
  117. public var prevPos:number = nan;
  118. public var looping:boolean = false;
  119. private var _duration:number = nan;
  120. private var _time:number = nan;
  121. private var _fps:number = nan;
  122. private var _position:number = nan;
  123. private var _startTime:number = nan;
  124. private var _intervalID:uint = 0;
  125. private var _finish:number = nan;
  126. private var _timer:Timer = null;
  127.  
  128. public function Tween(_arg1:object, _arg2:string, _arg3:function, _arg4:number, _arg5:number, _arg6:number, _arg7:boolean=false){
  129. this.func = function (_arg1:number, _arg2:number, _arg3:number, _arg4:number):number{
  130. return ((((_arg3 * _arg1) / _arg4) + _arg2));
  131. };
  132. super();
  133. if (!arguments.length){
  134. return;
  135. };
  136. this.obj = _arg1;
  137. this.prop = _arg2;
  138. this.begin = _arg4;
  139. this.position = _arg4;
  140. this.duration = _arg6;
  141. this.useSeconds = _arg7;
  142. if ((_arg3 is function)){
  143. this.func = _arg3;
  144. };
  145. this.finish = _arg5;
  146. this._timer = new Timer(100);
  147. this.start();
  148. }
  149. public function get time():number{
  150. return (this._time);
  151. }
  152. public function set time(_arg1:number):void{
  153. this.prevTime = this._time;
  154. if (_arg1 > this.duration){
  155. if (this.looping){
  156. this.rewind((_arg1 - this._duration));
  157. this.update();
  158. this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_LOOP, this._time, this._position));
  159. } else {
  160. if (this.useSeconds){
  161. this._time = this._duration;
  162. this.update();
  163. };
  164. this.stop();
  165. this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_FINISH, this._time, this._position));
  166. };
  167. } else {
  168. if (_arg1 < 0){
  169. this.rewind();
  170. this.update();
  171. } else {
  172. this._time = _arg1;
  173. this.update();
  174. };
  175. };
  176. }
  177. public function get duration():number{
  178. return (this._duration);
  179. }
  180. public function set duration(_arg1:number):void{
  181. this._duration = ((_arg1)<=0) ? infinity : _arg1;
  182. }
  183. public function get fps():number{
  184. return (this._fps);
  185. }
  186. public function set fps(_arg1:number):void{
  187. var _local2:boolean = this.isPlaying;
  188. this.stopEnterFrame();
  189. this._fps = _arg1;
  190. if (_local2){
  191. this.startEnterFrame();
  192. };
  193. }
  194. public function get position():number{
  195. return (this.getPosition(this._time));
  196. }
  197. public function set position(_arg1:number):void{
  198. this.setPosition(_arg1);
  199. }
  200. public function getPosition(_arg1:number=nan):number{
  201. if (isnan(_arg1)){
  202. _arg1 = this._time;
  203. };
  204. return (this.func(_arg1, this.begin, this.change, this._duration));
  205. }
  206. public function setPosition(_arg1:number):void{
  207. this.prevPos = this._position;
  208. if (this.prop.length){
  209. this.obj[this.prop] = (this._position = _arg1);
  210. };
  211. this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_CHANGE, this._time, this._position));
  212. }
  213. public function get finish():number{
  214. return ((this.begin + this.change));
  215. }
  216. public function set finish(_arg1:number):void{
  217. this.change = (_arg1 - this.begin);
  218. }
  219. public function continueTo(_arg1:number, _arg2:number):void{
  220. this.begin = this.position;
  221. this.finish = _arg1;
  222. if (!isnan(_arg2)){
  223. this.duration = _arg2;
  224. };
  225. this.start();
  226. }
  227. public function yoyo():void{
  228. this.continueTo(this.begin, this.time);
  229. }
  230. protected function startEnterFrame():void{
  231. var _local1:number;
  232. if (isnan(this._fps)){
  233. _mc.addEventListener(Event.ENTER_FRAME, this.onenterframe, false, 0, true);
  234. } else {
  235. _local1 = (1000 / this._fps);
  236. this._timer.delay = _local1;
  237. this._timer.addEventListener(TimerEvent.TIMER, this.timerHandler, false, 0, true);
  238. this._timer.start();
  239. };
  240. this.isPlaying = true;
  241. }
  242. protected function stopEnterFrame():void{
  243. if (isnan(this._fps)){
  244. _mc.removeEventListener(Event.ENTER_FRAME, this.onenterframe);
  245. } else {
  246. this._timer.stop();
  247. };
  248. this.isPlaying = false;
  249. }
  250. public function start():void{
  251. this.rewind();
  252. this.startEnterFrame();
  253. this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_START, this._time, this._position));
  254. }
  255. public function stop():void{
  256. this.stopEnterFrame();
  257. this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_STOP, this._time, this._position));
  258. }
  259. public function resume():void{
  260. this.fixTime();
  261. this.startEnterFrame();
  262. this.dispatchEvent(new TweenEvent(TweenEvent.MOTION_RESUME, this._time, this._position));
  263. }
  264. public function rewind(_arg1:number=0):void{
  265. this._time = _arg1;
  266. this.fixTime();
  267. this.update();
  268. }
  269. public function fforward():void{
  270. this.time = this._duration;
  271. this.fixTime();
  272. }
  273. public function nextframe():void{
  274. if (this.useSeconds){
  275. this.time = ((gettimer() - this._startTime) / 1000);
  276. } else {
  277. this.time = (this._time + 1);
  278. };
  279. }
  280. protected function onenterframe(_arg1:Event):void{
  281. this.nextframe();
  282. }
  283. protected function timerHandler(_arg1:TimerEvent):void{
  284. this.nextframe();
  285. _arg1.updateafterevent();
  286. }
  287. public function prevframe():void{
  288. if (!this.useSeconds){
  289. this.time = (this._time - 1);
  290. };
  291. }
  292. private function fixTime():void{
  293. if (this.useSeconds){
  294. this._startTime = (gettimer() - (this._time * 1000));
  295. };
  296. }
  297. private function update():void{
  298. this.setPosition(this.getPosition(this._time));
  299. }
  300.  
  301. }
  302. }//package fl.transitions
  303. package com.hiro {
  304. import flash.events.*;
  305.  
  306. public class VPAIDWrapper extends EventDispatcher implements IVPAID {
  307.  
  308. private var _ad;
  309.  
  310. public function VPAIDWrapper(_arg1){
  311. if (_arg1.hasOwnProperty("getVPAID")){
  312. this._ad = _arg1.getVPAID();
  313. } else {
  314. this._ad = _arg1;
  315. };
  316. }
  317. public function get adLinear():boolean{
  318. return (this._ad.adLinear);
  319. }
  320. public function get adWidth():number{
  321. return (this._ad.adWidth);
  322. }
  323. public function get adHeight():number{
  324. return (this._ad.adHeight);
  325. }
  326. public function get adExpanded():boolean{
  327. return (this._ad.adExpanded);
  328. }
  329. public function get adSkippableState():boolean{
  330. return (this._ad.adSkippableState);
  331. }
  332. public function get adRemainingTime():number{
  333. return (this._ad.adRemainingTime);
  334. }
  335. public function get adDuration():number{
  336. return (this._ad.adDuration);
  337. }
  338. public function get adVolume():number{
  339. return (this._ad.adVolume);
  340. }
  341. public function set adVolume(_arg1:number):void{
  342. this._ad.adVolume = _arg1;
  343. }
  344. public function get adCompanions():string{
  345. return (this._ad.adCompanions);
  346. }
  347. public function handshakeVersion(_arg1:string):string{
  348. return (this._ad.handshakeVersion(_arg1));
  349. }
  350. public function initAd(_arg1:number, _arg2:number, _arg3:string, _arg4:number, _arg5:string="", _arg6:string=""):void{
  351. this._ad.initAd(_arg1, _arg2, _arg3, _arg4, _arg5, _arg6);
  352. }
  353. public function resizeAd(_arg1:number, _arg2:number, _arg3:string):void{
  354. this._ad.resizeAd(_arg1, _arg2, _arg3);
  355. }
  356. public function startAd():void{
  357. this._ad.startAd();
  358. }
  359. public function stopAd():void{
  360. this._ad.stopAd();
  361. }
  362. public function pauseAd():void{
  363. this._ad.pauseAd();
  364. }
  365. public function resumeAd():void{
  366. this._ad.resumeAd();
  367. }
  368. public function expandAd():void{
  369. this._ad.expandAd();
  370. }
  371. public function collapseAd():void{
  372. this._ad.collapseAd();
  373. }
  374. public function skipAd():void{
  375. this._ad.collapseAd();
  376. }
  377. override public function addEventListener(_arg1:string, _arg2:function, _arg3:boolean=false, _arg4:int=0, _arg5:boolean=false):void{
  378. this._ad.addEventListener(_arg1, _arg2, _arg3, _arg4, _arg5);
  379. }
  380. override public function removeEventListener(_arg1:string, _arg2:function, _arg3:boolean=false):void{
  381. this._ad.removeEventListener(_arg1, _arg2, _arg3);
  382. }
  383. override public function dispatchEvent(_arg1:Event):boolean{
  384. return (this._ad.dispatchEvent(_arg1));
  385. }
  386. override public function hasEventListener(_arg1:string):boolean{
  387. return (this._ad.hasEventListener(_arg1));
  388. }
  389. override public function willTrigger(_arg1:string):boolean{
  390. return (this._ad.willTrigger(_arg1));
  391. }
  392.  
  393. }
  394. }//package com.hiro
  395. package com.hiro {
  396. import flash.events.*;
  397. import flash.display.*;
  398. import com.nova.*;
  399. import flash.net.*;
  400. import com.iab.*;
  401. import flash.system.*;
  402. import flash.external.*;
  403.  
  404. public class Hiro extends Sprite {
  405.  
  406. private var loader:Loader;
  407. private var wrapper:VPAIDWrapper;
  408. private var _url:string = "http://software.hiro.tv/Clients/Matomy/AdNet/matomy/VpaidPlayer.swf?accountID=Matomy&externalPublisherID=MatomyVpaid&defaultClient=118900755&nperc=100&pperc=100";
  409. private var player;
  410. private var vpaidTag:string;
  411. private var advlabel:movieclip;
  412.  
  413. public function Hiro(_arg1:string){
  414. this.vpaidTag = _arg1;
  415. addEventListener(Event.ADDED_TO_STAGE, this.init);
  416. }
  417. public function setPlayer(_arg1):void{
  418. this.player = _arg1;
  419. this.player.advSymbol.visible = true;
  420. }
  421. private function init(_arg1:Event):void{
  422. removeEventListener(Event.ADDED_TO_STAGE, this.init);
  423. var _local2:URLLoader = new URLLoader();
  424. _local2.addEventListener(Event.COMPLETE, this.onXMLComplete);
  425. _local2.addEventListener(IOErrorEvent.IO_ERROR, this.onVPAIDLoadError);
  426. var _local3:LoaderContext = new LoaderContext();
  427. _local3.checkPolicyFile = true;
  428. _local3.applicationDomain = ApplicationDomain.currentDomain;
  429. _local3.securityDomain = SecurityDomain.currentDomain;
  430. _local2.load(new URLRequest(this.vpaidTag));
  431. this.player._stage.addEventListener(Event.RESIZE, this.onresize);
  432. }
  433. private function onresize(_arg1:Event):void{
  434. if (this.wrapper){
  435. };
  436. }
  437. private function onXMLComplete(_arg1:Event){
  438. if (ExternalInterface.available){
  439. ExternalInterface.call("console.log", "ADV XML LOADED");
  440. };
  441. var _local2:* = new xml(_arg1.target.data);
  442. this._url = _local2.Ad[0].InLine.Creatives.Creative.Linear.MediaFiles.MediaFile.tostring();
  443. if (ExternalInterface.available){
  444. ExternalInterface.call("console.log", ("URL: " + this._url));
  445. ExternalInterface.call("console.log", ("FULL XML: " + _local2));
  446. };
  447. this.loadVPAIDMovie();
  448. }
  449. private function loadVPAIDMovie():void{
  450. this.loader = new Loader();
  451. this.loader.contentLoaderInfo.addEventListener(Event.COMPLETE, this.onVPAIDComplete);
  452. this.loader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, this.onVPAIDLoadError);
  453. this.loader.contentLoaderInfo.addEventListener(SecurityErrorEvent.SECURITY_ERROR, this.onAdSecurotyError);
  454. var _local1:LoaderContext = new LoaderContext();
  455. _local1.checkPolicyFile = true;
  456. _local1.applicationDomain = ApplicationDomain.currentDomain;
  457. if (Security.sandboxType == Security.REMOTE){
  458. _local1.securityDomain = SecurityDomain.currentDomain;
  459. };
  460. this.loader.load(new URLRequest(this._url), _local1);
  461. }
  462. private function onAdSecurotyError(_arg1:Event):void{
  463. this.player.advSymbol.visible = false;
  464. this.player.dispatchEvent(new Event("endAdv"));
  465. }
  466. private function onVPAIDLoadError(_arg1:Event):void{
  467. this.player.advSymbol.visible = false;
  468. this.player.dispatchEvent(new Event("endAdv"));
  469. }
  470. private function onVPAIDComplete(_arg1:Event){
  471. var advLabel:* = null;
  472. var event:* = _arg1;
  473. if (ExternalInterface.available){
  474. ExternalInterface.call("console.log", "ADV LOADED");
  475. };
  476. this.wrapper = new VPAIDWrapper(this.loader.content);
  477. try {
  478. addChild(this.loader);
  479. advLabel = (ApplicationDomain.currentDomain.getDefinition("adv_label") as class);
  480. this.advlabel = (new (advLabel)() as movieclip);
  481. addChild(this.advlabel);
  482. } catch(e:error) {
  483. };
  484. this.wrapper.addEventListener(VPAIDEvent.AdLoaded, this.onAdLoaded);
  485. this.wrapper.addEventListener(VPAIDEvent.AdVideoComplete, this.onComplate);
  486. this.wrapper.addEventListener(VPAIDEvent.AdStopped, this.onComplate);
  487. this.wrapper.addEventListener(VPAIDEvent.AdPaused, this.onComplate);
  488. this.wrapper.addEventListener(VPAIDEvent.AdPlaying, this.onPlaying);
  489. this.wrapper.addEventListener(VPAIDEvent.AdSizeChange, this.onSizeChanged);
  490. this.wrapper.addEventListener(VPAIDEvent.AdError, this.onComplate);
  491. this.wrapper.addEventListener(VPAIDEvent.AdVideoStart, this.onPlaying);
  492. this.wrapper.handshakeVersion("1.1");
  493. this.wrapper.initAd(Player.self._stage.stageWidth, Player.self._stage.stageHeight, "fullscreen", 500);
  494. }
  495. public function resizeAd(_arg1:int, _arg2:int, _arg3:string):void{
  496. if (this.wrapper){
  497. this.wrapper.resizeAd(_arg1, _arg2, _arg3);
  498. };
  499. }
  500. private function onAdLoaded(_arg1:Event):void{
  501. if (ExternalInterface.available){
  502. ExternalInterface.call("console.log", "ADD LOADED ");
  503. };
  504. this.player.dispatchEvent(new Event("onAdsPrsent", true));
  505. this.wrapper.expandAd();
  506. this.wrapper.startAd();
  507. }
  508. private function onPlaying(_arg1:Event):void{
  509. this.player.dispatchEvent(new Event("AdvPlaying"));
  510. }
  511. private function onComplate(_arg1:Event):void{
  512. if (ExternalInterface.available){
  513. ExternalInterface.call("console.log", ("ADV EVENT: " + _arg1.tostring()));
  514. };
  515. this.player.dispatchEvent(new Event("endAdv", true));
  516. if (Player.self._stage.displayState == StageDisplayState.FULL_SCREEN){
  517. this.player.dispatchEvent(new Event("size-full", true));
  518. } else {
  519. this.player.dispatchEvent(new Event("size-normal", true));
  520. };
  521. }
  522. private function onSizeChanged(_arg1:Event):void{
  523. throw ("change size");
  524. }
  525. public function width():number{
  526. return (Player.self._stage.stageWidth);
  527. }
  528. public function height():number{
  529. return (Player.self._stage.stageHeight);
  530. }
  531. public function expandAd():void{
  532. this.wrapper.expandAd();
  533. }
  534. public function colapseAd():void{
  535. this.wrapper.collapseAd();
  536. }
  537.  
  538. }
  539. }//package com.hiro
  540. package com.hiro {
  541.  
  542. public interface IVPAID {
  543.  
  544. function get adLinear():boolean;
  545. function get adWidth():number;
  546. function get adHeight():number;
  547. function get adExpanded():boolean;
  548. function get adSkippableState():boolean;
  549. function get adRemainingTime():number;
  550. function get adDuration():number;
  551. function get adVolume():number;
  552. function get adCompanions():string;
  553. function handshakeVersion(_arg1:string):string;
  554. function initAd(_arg1:number, _arg2:number, _arg3:string, _arg4:number, _arg5:string="", _arg6:string=""):void;
  555. function resizeAd(_arg1:number, _arg2:number, _arg3:string):void;
  556. function startAd():void;
  557. function stopAd():void;
  558. function pauseAd():void;
  559. function resumeAd():void;
  560. function expandAd():void;
  561. function collapseAd():void;
  562. function skipAd():void;
  563.  
  564. }
  565. }//package com.hiro
  566. package com.hurlant.crypto.hash {
  567. import flash.utils.*;
  568.  
  569. public interface IHash {
  570.  
  571. function getInputSize():uint;
  572. function getHashSize():uint;
  573. function hash(_arg1:ByteArray):ByteArray;
  574. function tostring():string;
  575. function getPadSize():int;
  576.  
  577. }
  578. }//package com.hurlant.crypto.hash
  579. package com.hurlant.crypto.hash {
  580. import flash.utils.*;
  581.  
  582. public class MD5 implements IHash {
  583.  
  584. public static const HASH_SIZE:int = 16;
  585.  
  586. public var pad_size:int = 48;
  587.  
  588. public function getInputSize():uint{
  589. return (64);
  590. }
  591. public function getHashSize():uint{
  592. return (HASH_SIZE);
  593. }
  594. public function getPadSize():int{
  595. return (this.pad_size);
  596. }
  597. public function hash(_arg1:ByteArray):ByteArray{
  598. var _local2:uint = (_arg1.length * 8);
  599. var _local3:string = _arg1.endian;
  600. while ((_arg1.length % 4) != 0) {
  601. _arg1[_arg1.length] = 0;
  602. };
  603. _arg1.position = 0;
  604. var _local4:array = [];
  605. _arg1.endian = Endian.LITTLE_ENDIAN;
  606. var _local5:uint;
  607. while (_local5 < _arg1.length) {
  608. _local4.push(_arg1.readUnsignedInt());
  609. _local5 = (_local5 + 4);
  610. };
  611. var _local6:array = this.core_md5(_local4, _local2);
  612. var _local7:ByteArray = new ByteArray();
  613. _local7.endian = Endian.LITTLE_ENDIAN;
  614. _local5 = 0;
  615. while (_local5 < 4) {
  616. _local7.writeUnsignedInt(_local6[_local5]);
  617. _local5++;
  618. };
  619. _arg1.length = (_local2 / 8);
  620. _arg1.endian = _local3;
  621. return (_local7);
  622. }
  623. private function core_md5(_arg1:array, _arg2:uint):array{
  624. var _local8:uint;
  625. var _local9:uint;
  626. var _local10:uint;
  627. var _local11:uint;
  628. _arg1[(_arg2 >> 5)] = (_arg1[(_arg2 >> 5)] | (128 << (_arg2 % 32)));
  629. _arg1[((((_arg2 + 64) >>> 9) << 4) + 14)] = _arg2;
  630. var _local3:uint = 1732584193;
  631. var _local4:uint = 4023233417;
  632. var _local5:uint = 2562383102;
  633. var _local6:uint = 271733878;
  634. var _local7:uint;
  635. while (_local7 < _arg1.length) {
  636. _arg1[_local7] = ((_arg1[_local7]) || (0));
  637. _arg1[(_local7 + 1)] = ((_arg1[(_local7 + 1)]) || (0));
  638. _arg1[(_local7 + 2)] = ((_arg1[(_local7 + 2)]) || (0));
  639. _arg1[(_local7 + 3)] = ((_arg1[(_local7 + 3)]) || (0));
  640. _arg1[(_local7 + 4)] = ((_arg1[(_local7 + 4)]) || (0));
  641. _arg1[(_local7 + 5)] = ((_arg1[(_local7 + 5)]) || (0));
  642. _arg1[(_local7 + 6)] = ((_arg1[(_local7 + 6)]) || (0));
  643. _arg1[(_local7 + 7)] = ((_arg1[(_local7 + 7)]) || (0));
  644. _arg1[(_local7 + 8)] = ((_arg1[(_local7 + 8)]) || (0));
  645. _arg1[(_local7 + 9)] = ((_arg1[(_local7 + 9)]) || (0));
  646. _arg1[(_local7 + 10)] = ((_arg1[(_local7 + 10)]) || (0));
  647. _arg1[(_local7 + 11)] = ((_arg1[(_local7 + 11)]) || (0));
  648. _arg1[(_local7 + 12)] = ((_arg1[(_local7 + 12)]) || (0));
  649. _arg1[(_local7 + 13)] = ((_arg1[(_local7 + 13)]) || (0));
  650. _arg1[(_local7 + 14)] = ((_arg1[(_local7 + 14)]) || (0));
  651. _arg1[(_local7 + 15)] = ((_arg1[(_local7 + 15)]) || (0));
  652. _local8 = _local3;
  653. _local9 = _local4;
  654. _local10 = _local5;
  655. _local11 = _local6;
  656. _local3 = this.ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 7, 3614090360);
  657. _local6 = this.ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 1)], 12, 3905402710);
  658. _local5 = this.ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 17, 606105819);
  659. _local4 = this.ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 3)], 22, 3250441966);
  660. _local3 = this.ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 7, 4118548399);
  661. _local6 = this.ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 5)], 12, 1200080426);
  662. _local5 = this.ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 17, 2821735955);
  663. _local4 = this.ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 7)], 22, 4249261313);
  664. _local3 = this.ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 7, 1770035416);
  665. _local6 = this.ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 9)], 12, 2336552879);
  666. _local5 = this.ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 17, 0xFFFF5BB1);
  667. _local4 = this.ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 11)], 22, 2304563134);
  668. _local3 = this.ff(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 7, 1804603682);
  669. _local6 = this.ff(_local6, _local3, _local4, _local5, _arg1[(_local7 + 13)], 12, 4254626195);
  670. _local5 = this.ff(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 17, 2792965006);
  671. _local4 = this.ff(_local4, _local5, _local6, _local3, _arg1[(_local7 + 15)], 22, 1236535329);
  672. _local3 = this.gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 5, 4129170786);
  673. _local6 = this.gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 6)], 9, 3225465664);
  674. _local5 = this.gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 14, 643717713);
  675. _local4 = this.gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 0)], 20, 3921069994);
  676. _local3 = this.gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 5, 3593408605);
  677. _local6 = this.gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 10)], 9, 38016083);
  678. _local5 = this.gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 14, 3634488961);
  679. _local4 = this.gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 4)], 20, 3889429448);
  680. _local3 = this.gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 5, 568446438);
  681. _local6 = this.gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 14)], 9, 3275163606);
  682. _local5 = this.gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 14, 4107603335);
  683. _local4 = this.gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 8)], 20, 1163531501);
  684. _local3 = this.gg(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 5, 2850285829);
  685. _local6 = this.gg(_local6, _local3, _local4, _local5, _arg1[(_local7 + 2)], 9, 4243563512);
  686. _local5 = this.gg(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 14, 1735328473);
  687. _local4 = this.gg(_local4, _local5, _local6, _local3, _arg1[(_local7 + 12)], 20, 2368359562);
  688. _local3 = this.hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 5)], 4, 4294588738);
  689. _local6 = this.hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 8)], 11, 2272392833);
  690. _local5 = this.hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 11)], 16, 1839030562);
  691. _local4 = this.hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 14)], 23, 4259657740);
  692. _local3 = this.hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 1)], 4, 2763975236);
  693. _local6 = this.hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 4)], 11, 1272893353);
  694. _local5 = this.hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 7)], 16, 4139469664);
  695. _local4 = this.hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 10)], 23, 3200236656);
  696. _local3 = this.hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 13)], 4, 681279174);
  697. _local6 = this.hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 0)], 11, 3936430074);
  698. _local5 = this.hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 3)], 16, 3572445317);
  699. _local4 = this.hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 6)], 23, 76029189);
  700. _local3 = this.hh(_local3, _local4, _local5, _local6, _arg1[(_local7 + 9)], 4, 3654602809);
  701. _local6 = this.hh(_local6, _local3, _local4, _local5, _arg1[(_local7 + 12)], 11, 3873151461);
  702. _local5 = this.hh(_local5, _local6, _local3, _local4, _arg1[(_local7 + 15)], 16, 530742520);
  703. _local4 = this.hh(_local4, _local5, _local6, _local3, _arg1[(_local7 + 2)], 23, 3299628645);
  704. _local3 = this.ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 0)], 6, 4096336452);
  705. _local6 = this.ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 7)], 10, 1126891415);
  706. _local5 = this.ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 14)], 15, 2878612391);
  707. _local4 = this.ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 5)], 21, 4237533241);
  708. _local3 = this.ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 12)], 6, 1700485571);
  709. _local6 = this.ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 3)], 10, 2399980690);
  710. _local5 = this.ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 10)], 15, 4293915773);
  711. _local4 = this.ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 1)], 21, 2240044497);
  712. _local3 = this.ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 8)], 6, 1873313359);
  713. _local6 = this.ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 15)], 10, 4264355552);
  714. _local5 = this.ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 6)], 15, 2734768916);
  715. _local4 = this.ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 13)], 21, 1309151649);
  716. _local3 = this.ii(_local3, _local4, _local5, _local6, _arg1[(_local7 + 4)], 6, 4149444226);
  717. _local6 = this.ii(_local6, _local3, _local4, _local5, _arg1[(_local7 + 11)], 10, 3174756917);
  718. _local5 = this.ii(_local5, _local6, _local3, _local4, _arg1[(_local7 + 2)], 15, 718787259);
  719. _local4 = this.ii(_local4, _local5, _local6, _local3, _arg1[(_local7 + 9)], 21, 3951481745);
  720. _local3 = (_local3 + _local8);
  721. _local4 = (_local4 + _local9);
  722. _local5 = (_local5 + _local10);
  723. _local6 = (_local6 + _local11);
  724. _local7 = (_local7 + 16);
  725. };
  726. return ([_local3, _local4, _local5, _local6]);
  727. }
  728. private function rol(_arg1:uint, _arg2:uint):uint{
  729. return (((_arg1 << _arg2) | (_arg1 >>> (32 - _arg2))));
  730. }
  731. private function cmn(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint):uint{
  732. return ((this.rol((((_arg2 + _arg1) + _arg4) + _arg6), _arg5) + _arg3));
  733. }
  734. private function ff(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint, _arg7:uint):uint{
  735. return (this.cmn(((_arg2 & _arg3) | (~(_arg2) & _arg4)), _arg1, _arg2, _arg5, _arg6, _arg7));
  736. }
  737. private function gg(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint, _arg7:uint):uint{
  738. return (this.cmn(((_arg2 & _arg4) | (_arg3 & ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
  739. }
  740. private function hh(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint, _arg7:uint):uint{
  741. return (this.cmn(((_arg2 ^ _arg3) ^ _arg4), _arg1, _arg2, _arg5, _arg6, _arg7));
  742. }
  743. private function ii(_arg1:uint, _arg2:uint, _arg3:uint, _arg4:uint, _arg5:uint, _arg6:uint, _arg7:uint):uint{
  744. return (this.cmn((_arg3 ^ (_arg2 | ~(_arg4))), _arg1, _arg2, _arg5, _arg6, _arg7));
  745. }
  746. public function tostring():string{
  747. return ("md5");
  748. }
  749.  
  750. }
  751. }//package com.hurlant.crypto.hash
  752. package com.hurlant.util {
  753. import flash.utils.*;
  754.  
  755. public class Hex {
  756.  
  757. public static function toArray(_arg1:string):ByteArray{
  758. _arg1 = _arg1.replace(/\s|:/gm, "");
  759. var _local2:ByteArray = new ByteArray();
  760. if (((_arg1.length) && ((1 == 1)))){
  761. _arg1 = ("0" + _arg1);
  762. };
  763. var _local3:uint;
  764. while (_local3 < _arg1.length) {
  765. _local2[(_local3 / 2)] = parseint(_arg1.substr(_local3, 2), 16);
  766. _local3 = (_local3 + 2);
  767. };
  768. return (_local2);
  769. }
  770. public static function fromArray(_arg1:ByteArray, _arg2:boolean=false):string{
  771. var _local3 = "";
  772. var _local4:uint;
  773. while (_local4 < _arg1.length) {
  774. _local3 = (_local3 + ("0" + _arg1[_local4].tostring(16)).substr(-2, 2));
  775. if (_arg2){
  776. if (_local4 < (_arg1.length - 1)){
  777. _local3 = (_local3 + ":");
  778. };
  779. };
  780. _local4++;
  781. };
  782. return (_local3);
  783. }
  784. public static function tostring(_arg1:string):string{
  785. var _local2:ByteArray = toArray(_arg1);
  786. return (_local2.readUTFBytes(_local2.length));
  787. }
  788. public static function fromString(_arg1:string, _arg2:boolean=false):string{
  789. var _local3:ByteArray = new ByteArray();
  790. _local3.writeUTFBytes(_arg1);
  791. return (fromArray(_local3, _arg2));
  792. }
  793.  
  794. }
  795. }//package com.hurlant.util
  796. package com.nova {
  797.  
  798. public class VideoClient {
  799.  
  800. private static var Main;
  801.  
  802. public var setControls:boolean = true;
  803.  
  804. public function setParent(_arg1):void{
  805. Main = _arg1;
  806. }
  807. public function onMetaData(_arg1:object):void{
  808. if (Main.mp4 == false){
  809. if (_arg1.seekpoints){
  810. Main._keyframes = this.convertSeekpoints(_arg1.seekpoints);
  811. Main.mp4 = true;
  812. } else {
  813. Main.mp4 = false;
  814. Main._keyframes = _arg1.keyframes;
  815. };
  816. Main._duration = _arg1.duration;
  817. Main._videoWidth = _arg1.width;
  818. Main._videoHeight = _arg1.height;
  819. Main._aspectRatio = (_arg1.width / _arg1.height);
  820. Main.checkVideoSize();
  821. };
  822. if (this.setControls){
  823. Main.initControls();
  824. };
  825. }
  826. private function convertSeekpoints(_arg1:object):object{
  827. var _local3:string;
  828. var _local2:object = new object();
  829. _local2.times = new array();
  830. _local2.filepositions = new array();
  831. for (_local3 in _arg1) {
  832. _local2.times[_local3] = number(_arg1[_local3]["time"]);
  833. _local2.filepositions[_local3] = number(_arg1[_local3]["offset"]);
  834. };
  835. return (_local2);
  836. }
  837. public function onCuePoint(_arg1:object):void{
  838. }
  839. public function onLastSecond(_arg1:object):void{
  840. Main.playPause();
  841. Main.replay();
  842. }
  843. public function onPlayStatus(_arg1:object):void{
  844. Main.replay();
  845. }
  846.  
  847. }
  848. }//package com.nova
  849. package com.nova {
  850. import flash.net.*;
  851.  
  852. public class FlashCookiesStore {
  853.  
  854. private var SharedObjectName:string = "novaPlayer";
  855. private var mySo:sharedobject;
  856. private var _StartedTimeLimit:number = 0;
  857. private var _StartedBytes:number = 0;
  858. private var _Volume:number = 80;
  859.  
  860. public function FlashCookiesStore(){
  861. this.mySo = sharedobject.getlocal(this.SharedObjectName);
  862. if ((this.mySo.data.StartedTimeLimit is number)){
  863. this._StartedTimeLimit = this.mySo.data.StartedTimeLimit;
  864. };
  865. if ((this.mySo.data.StartedBytes is number)){
  866. this._StartedBytes = this.mySo.data.StartedBytes;
  867. };
  868. if ((this.mySo.data.volume is number)){
  869. this._Volume = this.mySo.data.volume;
  870. };
  871. }
  872. public function get StartedTimeLimit():number{
  873. return (this._StartedTimeLimit);
  874. }
  875. public function set StartedTimeLimit(_arg1:number):void{
  876. this._StartedTimeLimit = _arg1;
  877. }
  878. public function get StartedBytes():number{
  879. return (this._StartedBytes);
  880. }
  881. public function set StartedBytes(_arg1:number):void{
  882. this._StartedBytes = _arg1;
  883. }
  884. public function get Volume():number{
  885. return (this._Volume);
  886. }
  887. public function set Volume(_arg1:number):void{
  888. this._Volume = _arg1;
  889. }
  890. public function flush():void{
  891. this.mySo.data.StartedTimeLimit = this._StartedTimeLimit;
  892. this.mySo.data.StartedBytes = this._StartedBytes;
  893. this.mySo.data.volume = this._Volume;
  894. try {
  895. this.mySo.flush();
  896. } catch(e:error) {
  897. };
  898. }
  899.  
  900. }
  901. }//package com.nova
  902. package com.nova {
  903. import flash.events.*;
  904. import flash.display.*;
  905. import com.hiro.*;
  906.  
  907. public class AdvManager extends movieclip {
  908.  
  909. private var adv;
  910. private var advUrl:string;
  911. private var advDomain:string;
  912. private var advType:uint = 1;
  913. private var _player;
  914.  
  915. public function AdvManager(_arg1:string, _arg2:string, _arg3:number=1, _arg4=null){
  916. this._player = _arg4;
  917. this.advUrl = _arg1;
  918. this.advDomain = _arg2;
  919. this.advType = _arg3;
  920. addEventListener(Event.ADDED_TO_STAGE, this.init);
  921. }
  922. private function init(_arg1:Event):void{
  923. switch (this.advType){
  924. case 1:
  925. this.adv = new Longtailvideo(this.advUrl, this.advDomain);
  926. break;
  927. case 2:
  928. this.adv = new Hiro(this.advUrl);
  929. break;
  930. case 4:
  931. this.adv = new Longtailvideo(this.advUrl, this.advDomain);
  932. break;
  933. default:
  934. this.adv = new Longtailvideo(this.advUrl, this.advDomain);
  935. };
  936. this.adv.setPlayer(this._player);
  937. addChild(this.adv);
  938. }
  939. public function getAdvWidth():number{
  940. return (this.adv.width());
  941. }
  942. public function getAdvHeight():number{
  943. return (this.adv.height());
  944. }
  945. public function expandAd():void{
  946. if (this.advType == 2){
  947. this.adv.expand();
  948. };
  949. }
  950. public function resizeAd(_arg1:int, _arg2:int, _arg3:string):void{
  951. this.adv.resizeAd(_arg1, _arg2, _arg3);
  952. }
  953. public function colapseAd():void{
  954. if (this.advType == 2){
  955. this.adv.colapse();
  956. };
  957. }
  958.  
  959. }
  960. }//package com.nova
  961. package com.nova {
  962. import flash.events.*;
  963. import flash.display.*;
  964. import flash.net.*;
  965. import flash.utils.*;
  966. import flash.text.*;
  967. import com.hurlant.crypto.hash.*;
  968. import com.hurlant.util.*;
  969. import flash.external.*;
  970.  
  971. public class LoginForm extends movieclip {
  972.  
  973. private static var parentObj;
  974.  
  975. private var serverHandler:URLLoader;
  976. public var DownloadUrl:string;
  977. private var file:FileReference;
  978. public var userName:string = "";
  979. public var userPass:string = "";
  980. public var userType:string = "";
  981. public var downloadLink:string = "";
  982. private var mySO:sharedobject;
  983. private var SharedObjectName:string = "novaPlayer";
  984. private var authInit:boolean = false;
  985. public var srvReqAuth:boolean = false;
  986. private var authType:string = "";
  987. public var username:object;
  988. public var password:object;
  989. public var recoverPassMC:movieclip;
  990. public var recover_bg:movieclip;
  991. public var price1:textfield;
  992. public var price1Description:textfield;
  993. public var price2:textfield;
  994. public var price2Description:textfield;
  995. public var price3:textfield;
  996. public var price3Description:textfield;
  997. public var NormalUserMsg:textfield;
  998. public var MemberMsg:textfield;
  999. public var logoutBtn:movieclip;
  1000. public var loginBtn:movieclip;
  1001. public var loginFormCloseBtn:movieclip;
  1002. public var creditcart1:movieclip;
  1003. public var creditcart2:movieclip;
  1004. public var creditcart3:movieclip;
  1005. public var ErrorText:textfield;
  1006. public var password_text_mc:movieclip;
  1007. public var username_text_mc:movieclip;
  1008. public var NormalUserName:textfield;
  1009. private var _loginForm:movieclip;
  1010.  
  1011. public function LoginForm(_arg1:movieclip){
  1012. this._loginForm = _arg1;
  1013. this._loginForm.x = (this._loginForm.y = 0);
  1014. addChild(this._loginForm);
  1015. visible = false;
  1016. addEventListener(Event.ADDED_TO_STAGE, this.init);
  1017. }
  1018. public function setParent(_arg1):void{
  1019. parentObj = _arg1;
  1020. if (((((parentObj.getConfig().price1) && (parentObj.getConfig().price1membershipTime))) && (parentObj.getConfig().price1membershipPerDay))){
  1021. this.price1.text = parentObj.getConfig().price1;
  1022. this.price1Description.text = ((parentObj.getConfig().price1membershipTime + "\n") + parentObj.getConfig().price1membershipPerDay);
  1023. };
  1024. if (((((parentObj.getConfig().price2) && (parentObj.getConfig().price2membershipTime))) && (parentObj.getConfig().price2membershipPerDay))){
  1025. this.price2.text = parentObj.getConfig().price2;
  1026. this.price2Description.text = ((parentObj.getConfig().price2membershipTime + "\n") + parentObj.getConfig().price2membershipPerDay);
  1027. };
  1028. if (((((parentObj.getConfig().price3) && (parentObj.getConfig().price3membershipTime))) && (parentObj.getConfig().price3membershipPerDay))){
  1029. this.price3.text = parentObj.getConfig().price3;
  1030. this.price3Description.text = ((parentObj.getConfig().price3membershipTime + "\n") + parentObj.getConfig().price3membershipPerDay);
  1031. };
  1032. }
  1033. private function init(_arg1:Event):void{
  1034. this.logoutBtn = this._loginForm.logoutBtn;
  1035. this.loginBtn = this._loginForm.loginBtn;
  1036. this.loginFormCloseBtn = this._loginForm.loginFormCloseBtn;
  1037. this.MemberMsg = this._loginForm.MemberMsg;
  1038. this.NormalUserMsg = this._loginForm.NormalUserMsg;
  1039. this.price3Description = this._loginForm.price3Description;
  1040. this.price3 = this._loginForm.price3;
  1041. this.price2Description = this._loginForm.price2Description;
  1042. this.price2 = this._loginForm.price2;
  1043. this.price1Description = this._loginForm.price1Description;
  1044. this.price1 = this._loginForm.price1;
  1045. this.recover_bg = this._loginForm.recover_bg;
  1046. this.recoverPassMC = this._loginForm.recoverPassMC;
  1047. this.username = this._loginForm.username;
  1048. this.creditcart1 = this._loginForm.creditcart1;
  1049. this.creditcart2 = this._loginForm.creditcart2;
  1050. this.creditcart3 = this._loginForm.creditcart3;
  1051. this.password = this._loginForm.password;
  1052. this.ErrorText = this._loginForm.ErrorText;
  1053. this.password_text_mc = this._loginForm.password_text_mc;
  1054. this.username_text_mc = this._loginForm.username_text_mc;
  1055. this.NormalUserName = this._loginForm.NormalUserName;
  1056. var _local2:textformat = new textformat();
  1057. _local2.font = "Verdana";
  1058. _local2.size = 16;
  1059. this.username.setstyle("textFormat", _local2);
  1060. this.recoverPassMC.buttonMode = true;
  1061. this.recoverPassMC.visible = false;
  1062. this.recover_bg.visible = false;
  1063. this.NormalUserMsg.visible = false;
  1064. this.logoutBtn.visible = false;
  1065. this.loginFormCloseBtn.buttonMode = true;
  1066. this.loginBtn.buttonMode = true;
  1067. if (!this.loginFormCloseBtn.addEventListener(MouseEvent.CLICK, this.closeForm)){
  1068. this.loginFormCloseBtn.addEventListener(MouseEvent.CLICK, this.closeForm);
  1069. };
  1070. this.loginBtn.addEventListener(MouseEvent.CLICK, this.login);
  1071. this.serverHandler = new URLLoader();
  1072. if (!this.serverHandler.addEventListener(Event.COMPLETE, this.loginResult)){
  1073. this.serverHandler.addEventListener(Event.COMPLETE, this.loginResult);
  1074. };
  1075. this.loginBtn.buttonMode = true;
  1076. if (!this.loginBtn.addEventListener(MouseEvent.CLICK, this.login)){
  1077. this.loginBtn.addEventListener(MouseEvent.CLICK, this.login);
  1078. };
  1079. this.logoutBtn.buttonMode = true;
  1080. if (!this.logoutBtn.addEventListener(MouseEvent.CLICK, this.logoutBtnClick)){
  1081. this.logoutBtn.addEventListener(MouseEvent.CLICK, this.logoutBtnClick);
  1082. };
  1083. this.creditcart1.buttonMode = true;
  1084. if (!this.creditcart1.addEventListener(MouseEvent.CLICK, this.creditcart1Click)){
  1085. this.creditcart1.addEventListener(MouseEvent.CLICK, this.creditcart1Click);
  1086. };
  1087. this.creditcart2.buttonMode = true;
  1088. if (!this.creditcart2.addEventListener(MouseEvent.CLICK, this.creditcart2Click)){
  1089. this.creditcart2.addEventListener(MouseEvent.CLICK, this.creditcart2Click);
  1090. };
  1091. this.creditcart3.buttonMode = true;
  1092. if (!this.creditcart3.addEventListener(MouseEvent.CLICK, this.creditcart3Click)){
  1093. this.creditcart3.addEventListener(MouseEvent.CLICK, this.creditcart3Click);
  1094. };
  1095. if (!this.username.addEventListener(FocusEvent.FOCUS_IN, this.checkFullScr)){
  1096. this.username.addEventListener(FocusEvent.FOCUS_IN, this.checkFullScr);
  1097. };
  1098. if (!this.password.addEventListener(FocusEvent.FOCUS_IN, this.checkFullScr)){
  1099. this.password.addEventListener(FocusEvent.FOCUS_IN, this.checkFullScr);
  1100. };
  1101. this.recoverPassMC.buttonMode = true;
  1102. if (!this.recoverPassMC.addEventListener(MouseEvent.CLICK, this.recoverPass)){
  1103. this.recoverPassMC.addEventListener(MouseEvent.CLICK, this.recoverPass);
  1104. };
  1105. this.recover_bg.visible = false;
  1106. this.ErrorText.visible = false;
  1107. this.recoverPassMC.visible = false;
  1108. }
  1109. public function doAuthCheck(_arg1:string, _arg2:string, _arg3:string):void{
  1110. this.authType = _arg3;
  1111. var _local4:URLRequest = new URLRequest(parentObj.getConfig().authURL);
  1112. var _local5:URLVariables = new URLVariables();
  1113. this.userName = _arg1;
  1114. _local5.user = _arg1;
  1115. _local5.pass = _arg2;
  1116. _local5._type = _arg3;
  1117. _local5.key = _arg2;
  1118. _local5.file = parentObj.getConfig().url.substring((parentObj.getConfig().url.lastindexof("/") + 1));
  1119. _local4.method = URLRequestMethod.get;
  1120. _local4.data = _local5;
  1121. this.serverHandler.load(_local4);
  1122. }
  1123. private function closeForm(_arg1:Event):void{
  1124. this.hideform();
  1125. }
  1126. private function hideform():void{
  1127. parentObj.showLoginForm();
  1128. this.authInit = true;
  1129. }
  1130. private function login(_arg1:Event):void{
  1131. this.doLogin(false);
  1132. }
  1133. private function doLogin(_arg1:boolean):void{
  1134. var _local2:URLRequest;
  1135. var _local3:URLVariables;
  1136. var _local4:ByteArray;
  1137. var _local5:MD5;
  1138. var _local6:ByteArray;
  1139. if (_arg1 == false){
  1140. this.userName = this.username.text;
  1141. this.userPass = this.password.text;
  1142. this.srvReqAuth = true;
  1143. };
  1144. if (((this.userName.length) && (this.userPass.length))){
  1145. _local2 = new URLRequest(parentObj.getConfig().authURL);
  1146. _local3 = new URLVariables();
  1147. _local3.user = this.userName;
  1148. _local4 = new ByteArray();
  1149. _local4.writeUTFBytes(this.userPass);
  1150. _local5 = new MD5();
  1151. _local6 = _local5.hash(_local4);
  1152. this.userPass = Hex.fromArray(_local6);
  1153. _local3.pass = Hex.fromArray(_local6);
  1154. _local3.file = parentObj.getVideoControler().geturl().substring((parentObj.getVideoControler().geturl().lastindexof("/") + 1));
  1155. _local3.key = parentObj.getConfig().key;
  1156. _local2.method = URLRequestMethod.get;
  1157. _local2.data = _local3;
  1158. this.serverHandler.load(_local2);
  1159. };
  1160. }
  1161. private function loginResult(_arg1:Event):void{
  1162. var _local4:string;
  1163. this.recoverPassMC.buttonMode = true;
  1164. this.recoverPassMC.visible = false;
  1165. this.recover_bg.visible = false;
  1166. this.ErrorText.text = "";
  1167. var _local2:sharedobject = sharedobject.getlocal(this.SharedObjectName);
  1168. if (ExternalInterface.available){
  1169. };
  1170. var _local3:URLVariables = new URLVariables(this.serverHandler.data);
  1171. switch (number(_local3.status)){
  1172. case 1:
  1173. this.ErrorText.visible = false;
  1174. this.username.visible = false;
  1175. this.password.visible = false;
  1176. this.loginBtn.visible = false;
  1177. this.MemberMsg.visible = false;
  1178. if (this.srvReqAuth){
  1179. if (_local3.id){
  1180. parentObj.userInfo.visible = true;
  1181. parentObj.userInfo.userName.text = ("user:" + this.userName);
  1182. this.userType = "Premium";
  1183. parentObj.logoutBtn.visible = true;
  1184. parentObj.premiumBtn.visible = false;
  1185. if (((_local3.seekparm) && (!((_local3.seekparm == "0"))))){
  1186. parentObj.getConfig().seekparm = _local3.seekparm;
  1187. };
  1188. if (((_local3.url) && (!((_local3.url == "0"))))){
  1189. parentObj.getVideoControler().premiumChangeUrl(_local3.url);
  1190. };
  1191. parentObj.diableAdvertaising(this.userName, this.userPass, 1);
  1192. this.hideform();
  1193. } else {
  1194. parentObj.logoutBtn.visible = false;
  1195. parentObj.premiumBtn.visible = true;
  1196. this.userType = "Normal";
  1197. this.NormalUserMsg.visible = true;
  1198. this.logoutBtn.visible = true;
  1199. this.username_text_mc.visible = false;
  1200. this.password_text_mc.visible = false;
  1201. this.NormalUserName.text = this.userName;
  1202. parentObj.diableAdvertaising(this.userName, this.userPass, 0);
  1203. };
  1204. } else {
  1205. if (this.authType == "1"){
  1206. parentObj.userInfo.visible = true;
  1207. parentObj.userInfo.userName.text = ("user:" + this.userName);
  1208. this.userType = "Premium";
  1209. parentObj.logoutBtn.visible = true;
  1210. parentObj.premiumBtn.visible = false;
  1211. if (((_local3.url) && (!((_local3.url == "0"))))){
  1212. _local4 = _local3.url;
  1213. parentObj.getConfig().url = _local4.substring((_local4.lastindexof(".") + 4), -1);
  1214. parentObj.getConfig().EnableLimit = false;
  1215. parentObj.getVideoControler().setPremiumMode();
  1216. };
  1217. };
  1218. if (this.authType == "0"){
  1219. parentObj.logoutBtn.visible = false;
  1220. parentObj.premiumBtn.visible = true;
  1221. this.userType = "Normal";
  1222. this.username_text_mc.visible = false;
  1223. this.password_text_mc.visible = false;
  1224. this.NormalUserMsg.visible = true;
  1225. this.logoutBtn.visible = true;
  1226. this.NormalUserName.text = this.userName;
  1227. };
  1228. };
  1229. break;
  1230. case 0:
  1231. if (this.srvReqAuth){
  1232. this.ErrorText.visible = true;
  1233. this.ErrorText.text = "Invalid username or password.";
  1234. this.recoverPassMC.visible = true;
  1235. this.recover_bg.visible = true;
  1236. };
  1237. break;
  1238. default:
  1239. this.recoverPassMC.visible = false;
  1240. this.recover_bg.visible = false;
  1241. };
  1242. }
  1243. public function doLogout():void{
  1244. if (ExternalInterface.available){
  1245. try {
  1246. ExternalInterface.call("logout");
  1247. this.userType = "";
  1248. this.NormalUserName.text = "";
  1249. this.username_text_mc.visible = true;
  1250. this.password_text_mc.visible = true;
  1251. this.MemberMsg.visible = true;
  1252. this.ErrorText.visible = true;
  1253. this.username.visible = true;
  1254. this.password.visible = true;
  1255. this.loginBtn.visible = true;
  1256. this.NormalUserMsg.visible = false;
  1257. this.logoutBtn.visible = false;
  1258. this.username.text = "";
  1259. this.password.text = "";
  1260. } catch(error:SecurityError) {
  1261. } catch(error:error) {
  1262. };
  1263. };
  1264. }
  1265. private function logoutBtnClick(_arg1:MouseEvent):void{
  1266. this.doLogout();
  1267. }
  1268. private function creditcart1Click(_arg1:MouseEvent):void{
  1269. if (parentObj.getVideoControler().isFullscreen){
  1270. parentObj.getVideoControler().setFullScreen(false);
  1271. };
  1272. navigateToURL(new URLRequest(parentObj.getConfig().creditCardURL1));
  1273. }
  1274. private function creditcart2Click(_arg1:MouseEvent):void{
  1275. if (parentObj.getVideoControler().isFullscreen){
  1276. parentObj.getVideoControler().setFullScreen(false);
  1277. };
  1278. navigateToURL(new URLRequest(parentObj.getConfig().creditCardURL2));
  1279. }
  1280. private function creditcart3Click(_arg1:MouseEvent):void{
  1281. if (parentObj.getVideoControler().isFullscreen){
  1282. parentObj.getVideoControler().setFullScreen(false);
  1283. };
  1284. navigateToURL(new URLRequest(parentObj.getConfig().creditCardURL3));
  1285. }
  1286. private function recoverPass(_arg1:MouseEvent):void{
  1287. if (parentObj.getVideoControler().isFullscreen){
  1288. parentObj.getVideoControler().setFullScreen(false);
  1289. };
  1290. navigateToURL(new URLRequest(parentObj.getConfig().recoverPassword));
  1291. }
  1292. private function checkFullScr(_arg1:FocusEvent):void{
  1293. if (parentObj.getVideoControler().isFullscreen){
  1294. parentObj.getVideoControler().setFullScreen(false);
  1295. };
  1296. }
  1297.  
  1298. }
  1299. }//package com.nova
  1300. package com.nova {
  1301. import flash.events.*;
  1302. import flash.display.*;
  1303. import com.yume.*;
  1304.  
  1305. public class Longtailvideo extends movieclip {
  1306.  
  1307. private var loader:Loader;
  1308. private var advCoontent:movieclip;
  1309. private var yume_par_obj:object;
  1310. private var advUrl:string;
  1311. private var advDomain:string;
  1312. public var yume_ad:object;
  1313. private var player;
  1314.  
  1315. public function Longtailvideo(_arg1:string, _arg2:string){
  1316. this.advUrl = _arg1;
  1317. this.advDomain = _arg2;
  1318. addEventListener(Event.ADDED_TO_STAGE, this.init);
  1319. }
  1320. private function init(_arg1:Event):void{
  1321. removeEventListener(Event.ADDED_TO_STAGE, this.init);
  1322. this.yume_ad = new play_ad(this);
  1323. this.yume_ad.addEventListener("ad_completed", this.onAdsEnd);
  1324. this.yume_ad.addEventListener("ad_playing", this.onAdsPlaying);
  1325. this.yume_ad.addEventListener("ad_present", this.onAdsPrsent);
  1326. this.initParams();
  1327. }
  1328. public function resizeAd(_arg1:int, _arg2:int, _arg3:string):void{
  1329. }
  1330. private function onAddLoadComplate(_arg1:Event):void{
  1331. var _local2:LoaderInfo = (_arg1.target as LoaderInfo);
  1332. this.advCoontent = _arg1.target.content;
  1333. addChild(this.advCoontent);
  1334. this.initParams();
  1335. }
  1336. private function initParams():void{
  1337. this.yume_par_obj = new object();
  1338. this.yume_par_obj.parent_mc = this;
  1339. this.yume_par_obj.ad_type = "before_content";
  1340. this.yume_par_obj.playlist = ((("http://" + this.advUrl) + "/dynamic_preroll_playlist.fmil?domain=") + this.advDomain);
  1341. this.yume_par_obj.update_interval = 100;
  1342. this.yume_par_obj.ad_volume = 100;
  1343. this.yume_par_obj.normalscreen_x = 0;
  1344. this.yume_par_obj.normalscreen_y = 0;
  1345. this.yume_par_obj.normalscreen_width = 480;
  1346. this.yume_par_obj.normalscreen_height = 360;
  1347. this.yume_par_obj.fullscreen_x = 0;
  1348. this.yume_par_obj.fullscreen_y = 0;
  1349. this.yume_par_obj.fullscreen_width = 0x0400;
  1350. this.yume_par_obj.fullscreen_height = 710;
  1351. this.yume_ad.start_ad(this.yume_par_obj);
  1352. }
  1353. public function setPlayer(_arg1):void{
  1354. this.player = _arg1;
  1355. this.player.advSymbol.visible = true;
  1356. }
  1357. public function width():number{
  1358. return (480);
  1359. }
  1360. public function height():number{
  1361. return (360);
  1362. }
  1363. private function onAdsPlaying(_arg1:Event):void{
  1364. this.player.dispatchEvent(new Event("AdvPlaying"));
  1365. }
  1366. private function onAdsEnd(_arg1:Event):void{
  1367. this.player.dispatchEvent(new Event("endAdv"));
  1368. }
  1369. private function onAdsPrsent(_arg1:Event):void{
  1370. this.player.dispatchEvent(new Event("onAdsPrsent"));
  1371. }
  1372.  
  1373. }
  1374. }//package com.nova
  1375. package com.nova {
  1376. import flash.events.*;
  1377. import flash.display.*;
  1378. import flash.net.*;
  1379.  
  1380. public class ConfigParser {
  1381.  
  1382. private var _player;
  1383. private var flashvars:object;
  1384. private var _width:int = 600;
  1385. private var _height:int = 450;
  1386. private var _autoplay:boolean = false;
  1387. private var _bufferTime:number = 2;
  1388. private var _authURL:string = "http://www.videoweed.com/authcheck.php";
  1389. private var _creditCardURL1:string = "http://www.novamov.com/premium.php?m=1";
  1390. private var _creditCardURL2:string = "http://www.novamov.com/premium.php?m=2";
  1391. private var _creditCardURL3:string = "http://www.novamov.com/premium.php?m=3";
  1392. private var _recoverPassword:string = "http://www.novamov.com/recover.php";
  1393. private var _advURL:string = "";
  1394. private var _premiumLink:string = "";
  1395. private var _BytesLimit:number = 7;
  1396. private var _TimeLimit:number = 2;
  1397. private var _EnableLimit:boolean = false;
  1398. private var _LoadAds:boolean = true;
  1399. private var _advVUrl:string = "http://software.hiro.tv/Clients/Matomy/AdNet/matomy/MatomyVpaid-Game.xml";
  1400. private var _advVUrl2:string = "http://software.hiro.tv/Clients/Matomy/AdNet/matomy/MatomyVpaid-Game.xml";
  1401. private var _advVDomain:string = "810lXxWqqol";
  1402. private var _advVType:number = 2;
  1403. public var advDelay:number = 0;
  1404. private var _user:string = "";
  1405. private var _key:string = "";
  1406. private var cid:string = "0";
  1407. private var cid2:string = "0";
  1408. private var cid3:string = "0";
  1409. private var _type:string = "";
  1410. private var _seekparm:string = "?start";
  1411. private var _url:string;
  1412. private var _NormalSpeedUrl:string = "";
  1413. private var _shareTitle:string = "";
  1414. private var _shareUrl:string = "";
  1415. private var _price1:string;
  1416. private var _price2:string;
  1417. private var _price3:string;
  1418. private var _price1membershipTime:string;
  1419. private var _price2membershipTime:string;
  1420. private var _price3membershipTime:string;
  1421. private var _price1membershipPerDay:string;
  1422. private var _price2membershipPerDay:string;
  1423. private var _price3membershipPerDay:string;
  1424. private var errorsUrls:array;
  1425. private var nu

Download source

Quality Control: Decoding problems? Report!   http://www.showmycode.com/?f04c7f0b6d8cb3a2f56a1aed21ba87b2

Valid CSS!