Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

class _0x4f6def extends Laya['\x53\x63\x65\x6e\x65'] { constructor() { super(), thi..

Decoded Output download

<?  class _0x4f6def extends Laya['Scene'] { 
		constructor() { 
			super(), this['show']; 
		} ['onOpened'](_0x42e201) { 
			var _0x34875b = _0x47b9fc; 
			this[_0x34875b(0x22f)]['visiable'] = !0x1, this[_0x34875b(0xaf)][_0x34875b(0x9c)] = !0x1, this['skeleton'] = new Laya['Skeleton'](), this['title'][_0x34875b(0x225)](this['skeleton'], 0x0), this['skeleton'][_0x34875b(0xda)](this[_0x34875b(0x201)][_0x34875b(0x18e)] / 0x2, this['title']['height'] / 0x2 + 0xa), this[_0x34875b(0x85)][_0x34875b(0x15e)](_0x34875b(0x1dd), Laya[_0x34875b(0x197)]['create'](this, function() { 
				var _0x4f7330 = _0x34875b; 
				this[_0x4f7330(0x85)]['play'](0x0, !0x0); 
			})), Laya['timer'][_0x34875b(0x144)](0x3e8, this, function() { 
				var _0xc47d40 = _0x34875b; 
				this['closeBtn'][_0xc47d40(0x9c)] = !0x0, this['getBtn']['visiable'] = !0x0; 
			}), this['show'] = Laya['Sprite3D']['instantiate'](_0x298e12[_0x34875b(0x94)][_0x34875b(0x181)]('showCamera'), _0x298e12['curScene']), this['updateShow'](_0x42e201 - 0x1), this['show'][_0x34875b(0x1a6)][_0x34875b(0x12a)] = new Laya[(_0x34875b(0x1c6))](0x2710, 0x2710, 0x2710); 
			var _0x38bce0 = this['show']['getChildByName'](_0x34875b(0x165))[_0x34875b(0x181)]('Camera'); 
			_0x38bce0['renderTarget'] = new Laya['RenderTexture'](0x2d0, 0x258, Laya['RenderTextureFormat']['R8G8B8A8']), _0x38bce0['clearFlag'] = 0x0, _0x38bce0['clearColor'] = new Laya['Vector4'](0x0, 0x0, 0x0, 0x0); 
			var _0x511db9 = new Laya['Texture'](_0x38bce0[_0x34875b(0x213)], Laya['Texture']['DEF_UV']); 
			this['showBg']['graphics']['drawTexture'](_0x511db9), this['closeBtn']['on'](Laya['Event']['CLICK'], this, function(_0x75526) { 
				var _0x5a3b08 = _0x34875b; 
				_0x298e12['PlaySound']('Btn'), null != _0x298e12[_0x5a3b08(0x17a)] && (_0x2107ea['pushUI'] = 0x0, _0x298e12['curPlayerControl'][_0x5a3b08(0x11b)](_0x75526)), this[_0x5a3b08(0xac)](); 
			}), this['getBtn']['on'](Laya[_0x34875b(0x7f)][_0x34875b(0x111)], this, function(_0x357799) { 
				var _0x106732 = _0x34875b; 
				_0x298e12[_0x106732(0x84)](_0x106732(0x1bd)), SdkUtil[_0x106732(0x211)](_0x106732(0xfb)), window['SdkUtil']['ShowVideo'](function(_0x2fe203) { 
					var _0xc9bf21 = _0x106732; 
					0x1 == _0x2fe203 && (null != _0x298e12['curPlayerControl'] && (_0x2107ea['pushUI'] = 0x0, _0x298e12['currentPiFuType'] = _0x42e201, _0x298e12['curPlayerControl']['updateShopYifu'](_0x42e201 - 0x1), _0x298e12[_0xc9bf21(0x17a)][_0xc9bf21(0x11b)](_0x357799)), this[_0xc9bf21(0xac)](), SdkUtil[_0xc9bf21(0x211)](_0xc9bf21(0x1bc))); 
				} ['bind'](this)); 
			}), null != this[_0x34875b(0x226)] && SdkUtil['ShowNeiZhiAD'] && SdkUtil['ShowNeiZhiAD'](this['ADPanel'], 0x1); 
		} [_0x47b9fc(0x244)](_0x216d62) { 
			var _0x50a49d = _0x47b9fc; 
			var _0x315e68 = this['show'][_0x50a49d(0x181)](_0x50a49d(0xb6)); 
			for (let _0x2ab0bf = 0x0; _0x2ab0bf < 0x6; _0x2ab0bf++) _0x315e68[_0x50a49d(0x134)](_0x2ab0bf)['active'] = _0x216d62 == _0x2ab0bf; 
		} ['onDisable']() { 
			var _0x54b992 = _0x47b9fc; 
			null != this[_0x54b992(0x121)] && this['show']['destroy'](); ?>

Did this file decode correctly?

Original Code

class _0x4f6def extends Laya['\x53\x63\x65\x6e\x65'] {
		constructor() {
			super(), this['\x73\x68\x6f\x77'];
		} ['\x6f\x6e\x4f\x70\x65\x6e\x65\x64'](_0x42e201) {
			var _0x34875b = _0x47b9fc;
			this[_0x34875b(0x22f)]['\x76\x69\x73\x69\x61\x62\x6c\x65'] = !0x1, this[_0x34875b(0xaf)][_0x34875b(0x9c)] = !0x1, this['\x73\x6b\x65\x6c\x65\x74\x6f\x6e'] = new Laya['\x53\x6b\x65\x6c\x65\x74\x6f\x6e'](), this['\x74\x69\x74\x6c\x65'][_0x34875b(0x225)](this['\x73\x6b\x65\x6c\x65\x74\x6f\x6e'], 0x0), this['\x73\x6b\x65\x6c\x65\x74\x6f\x6e'][_0x34875b(0xda)](this[_0x34875b(0x201)][_0x34875b(0x18e)] / 0x2, this['\x74\x69\x74\x6c\x65']['\x68\x65\x69\x67\x68\x74'] / 0x2 + 0xa), this[_0x34875b(0x85)][_0x34875b(0x15e)](_0x34875b(0x1dd), Laya[_0x34875b(0x197)]['\x63\x72\x65\x61\x74\x65'](this, function() {
				var _0x4f7330 = _0x34875b;
				this[_0x4f7330(0x85)]['\x70\x6c\x61\x79'](0x0, !0x0);
			})), Laya['\x74\x69\x6d\x65\x72'][_0x34875b(0x144)](0x3e8, this, function() {
				var _0xc47d40 = _0x34875b;
				this['\x63\x6c\x6f\x73\x65\x42\x74\x6e'][_0xc47d40(0x9c)] = !0x0, this['\x67\x65\x74\x42\x74\x6e']['\x76\x69\x73\x69\x61\x62\x6c\x65'] = !0x0;
			}), this['\x73\x68\x6f\x77'] = Laya['\x53\x70\x72\x69\x74\x65\x33\x44']['\x69\x6e\x73\x74\x61\x6e\x74\x69\x61\x74\x65'](_0x298e12[_0x34875b(0x94)][_0x34875b(0x181)]('\x73\x68\x6f\x77\x43\x61\x6d\x65\x72\x61'), _0x298e12['\x63\x75\x72\x53\x63\x65\x6e\x65']), this['\x75\x70\x64\x61\x74\x65\x53\x68\x6f\x77'](_0x42e201 - 0x1), this['\x73\x68\x6f\x77'][_0x34875b(0x1a6)][_0x34875b(0x12a)] = new Laya[(_0x34875b(0x1c6))](0x2710, 0x2710, 0x2710);
			var _0x38bce0 = this['\x73\x68\x6f\x77']['\x67\x65\x74\x43\x68\x69\x6c\x64\x42\x79\x4e\x61\x6d\x65'](_0x34875b(0x165))[_0x34875b(0x181)]('\x43\x61\x6d\x65\x72\x61');
			_0x38bce0['\x72\x65\x6e\x64\x65\x72\x54\x61\x72\x67\x65\x74'] = new Laya['\x52\x65\x6e\x64\x65\x72\x54\x65\x78\x74\x75\x72\x65'](0x2d0, 0x258, Laya['\x52\x65\x6e\x64\x65\x72\x54\x65\x78\x74\x75\x72\x65\x46\x6f\x72\x6d\x61\x74']['\x52\x38\x47\x38\x42\x38\x41\x38']), _0x38bce0['\x63\x6c\x65\x61\x72\x46\x6c\x61\x67'] = 0x0, _0x38bce0['\x63\x6c\x65\x61\x72\x43\x6f\x6c\x6f\x72'] = new Laya['\x56\x65\x63\x74\x6f\x72\x34'](0x0, 0x0, 0x0, 0x0);
			var _0x511db9 = new Laya['\x54\x65\x78\x74\x75\x72\x65'](_0x38bce0[_0x34875b(0x213)], Laya['\x54\x65\x78\x74\x75\x72\x65']['\x44\x45\x46\x5f\x55\x56']);
			this['\x73\x68\x6f\x77\x42\x67']['\x67\x72\x61\x70\x68\x69\x63\x73']['\x64\x72\x61\x77\x54\x65\x78\x74\x75\x72\x65'](_0x511db9), this['\x63\x6c\x6f\x73\x65\x42\x74\x6e']['\x6f\x6e'](Laya['\x45\x76\x65\x6e\x74']['\x43\x4c\x49\x43\x4b'], this, function(_0x75526) {
				var _0x5a3b08 = _0x34875b;
				_0x298e12['\x50\x6c\x61\x79\x53\x6f\x75\x6e\x64']('\x42\x74\x6e'), null != _0x298e12[_0x5a3b08(0x17a)] && (_0x2107ea['\x70\x75\x73\x68\x55\x49'] = 0x0, _0x298e12['\x63\x75\x72\x50\x6c\x61\x79\x65\x72\x43\x6f\x6e\x74\x72\x6f\x6c'][_0x5a3b08(0x11b)](_0x75526)), this[_0x5a3b08(0xac)]();
			}), this['\x67\x65\x74\x42\x74\x6e']['\x6f\x6e'](Laya[_0x34875b(0x7f)][_0x34875b(0x111)], this, function(_0x357799) {
				var _0x106732 = _0x34875b;
				_0x298e12[_0x106732(0x84)](_0x106732(0x1bd)), SdkUtil[_0x106732(0x211)](_0x106732(0xfb)), window['\x53\x64\x6b\x55\x74\x69\x6c']['\x53\x68\x6f\x77\x56\x69\x64\x65\x6f'](function(_0x2fe203) {
					var _0xc9bf21 = _0x106732;
					0x1 == _0x2fe203 && (null != _0x298e12['\x63\x75\x72\x50\x6c\x61\x79\x65\x72\x43\x6f\x6e\x74\x72\x6f\x6c'] && (_0x2107ea['\x70\x75\x73\x68\x55\x49'] = 0x0, _0x298e12['\x63\x75\x72\x72\x65\x6e\x74\x50\x69\x46\x75\x54\x79\x70\x65'] = _0x42e201, _0x298e12['\x63\x75\x72\x50\x6c\x61\x79\x65\x72\x43\x6f\x6e\x74\x72\x6f\x6c']['\x75\x70\x64\x61\x74\x65\x53\x68\x6f\x70\x59\x69\x66\x75'](_0x42e201 - 0x1), _0x298e12[_0xc9bf21(0x17a)][_0xc9bf21(0x11b)](_0x357799)), this[_0xc9bf21(0xac)](), SdkUtil[_0xc9bf21(0x211)](_0xc9bf21(0x1bc)));
				} ['\x62\x69\x6e\x64'](this));
			}), null != this[_0x34875b(0x226)] && SdkUtil['\x53\x68\x6f\x77\x4e\x65\x69\x5a\x68\x69\x41\x44'] && SdkUtil['\x53\x68\x6f\x77\x4e\x65\x69\x5a\x68\x69\x41\x44'](this['\x41\x44\x50\x61\x6e\x65\x6c'], 0x1);
		} [_0x47b9fc(0x244)](_0x216d62) {
			var _0x50a49d = _0x47b9fc;
			var _0x315e68 = this['\x73\x68\x6f\x77'][_0x50a49d(0x181)](_0x50a49d(0xb6));
			for (let _0x2ab0bf = 0x0; _0x2ab0bf < 0x6; _0x2ab0bf++) _0x315e68[_0x50a49d(0x134)](_0x2ab0bf)['\x61\x63\x74\x69\x76\x65'] = _0x216d62 == _0x2ab0bf;
		} ['\x6f\x6e\x44\x69\x73\x61\x62\x6c\x65']() {
			var _0x54b992 = _0x47b9fc;
			null != this[_0x54b992(0x121)] && this['\x73\x68\x6f\x77']['\x64\x65\x73\x74\x72\x6f\x79']();

Function Calls

None

Variables

None

Stats

MD5 6f7697200a6af4c8dc6294410575e660
Eval Count 0
Decode Time 55 ms