$.widget("ui.flashplayerNode",$.ui.videoNode,{category:"flashplayers",defaultValues:{type:"",id:"",rotation:0,opacity:1,zIndex:0,position:{x:0,y:0},size:{width:800,height:450},src:0,hiddenAtStart:!1},sourceProp:["src","size"],needToUpdateJson:!0,initElement:function(){$.ui.sceneResource.prototype.initElement.apply(this,arguments);this.$inner.addClass("flashplayer-element")},initData:function(){$.ui.sceneResource.prototype.initData.apply(this,arguments)},getCurrentData:function(){var t=this,e={};this.jsonProperties.forEach(function(i){t[i]&&(e[i]=t[i]())});e.hiddenAtStart||delete e.hiddenAtStart;e.zIndex||delete e.zIndex;e.src||delete e.src;return e},updatePreview:function(t){var e=this,i=e.element;t||(t=this.zoomValue);var h=(this.position(),this.size());i.css({width:h.width*t,height:h.height*t});var s=this.$inner,n=Math.min(h.width/this.bgSize.width,h.height/this.bgSize.height);s.css({width:this.bgSize.width*n*t,height:this.bgSize.height*n*t,position:"absolute",left:(h.width-this.bgSize.width*n)*t/2+"px",top:(h.height-this.bgSize.height*n)*t/2+"px"})}});