!function(){function e(e){QyObject.call(this);var t=this.currentSprite=(new PIXI.Flashplayer).setAnchorPoint(0,0).setSrc(e.src||""),i=e.position;i&&t.setPosition(i.x,i.y);var r=e.size;r&&t.setSize(r.width,r.height);e.hiddenAtStart&&this.hide();this.zIndex=e.zIndex||0;t.qyobj=this}PIXI.Flashplayer=function(){PIXI.Iframe.call(this)};inherits(PIXI.Flashplayer,PIXI.Iframe);PIXI.Flashplayer.prototype.createDomElement=function(){var e="embed",t=function(){this.domElement=this.rootElement=this.containerElement=document.createElement(e);this.domElement.setAttribute("type","application/x-shockwave-flash");this.domElement.setAttribute("wmode","opaque");this.domElement.setAttribute("allowfullscreen","true");this.dirty=!0};if(this.domElement){var i=this.domElement.tagName.toLowerCase();if(i!=e){var r=this.rootElement;t.call(this);r.parentNode&&r.parentNode.replaceChild(this.rootElement,r)}}else t.call(this)};PIXI.Flashplayer.prototype._renderWebGL=function(){if(this.dirty){this.createDomElement();game.director&&game.director.domElement&&game.director.domElement.appendChild(this.domElement);var e=this.domElement;this.maskTarget_=!0;this.update();e.style.display=this.hidden_?"none":"block";e.setAttribute("src",this.getSrc());e.style.transform="";this.dirty=!1}};PIXI.Flashplayer.prototype._renderCanvas=PIXI.Flashplayer.prototype._renderWebGL;inherits(e,QyIframe);window.QyFlashplayer=e}();