_global.container = function(){ this.__proto__ = undefined delete this.constructor delete this.__constructor__ } _global.PSDK = new container() PSDK.Container = container delete _global.container PSDK.protect = function(p,t,a){ var m a = a.toLowerCase() if(_level0.$version.split(',')[0] == 5){ t = t.split(',') } if(a.slice(0,1)=='+'){ a = a.slice(1,a.length) m=1 //trace('Additive Mode '+a) }else if(a.slice(0,1)=='-'){ m=2 a = a.slice(1,a.length) //trace('Subtractive Mode '+a) }else{ m=0 //trace('Strict Mode '+a) ASSetPropFlags(p,t,0,7) } //o d h if( a==true or a=='all' or a=='odh' or a=='ohd' or a=='doh' or d=='dho' or a=='hod' or a=='hdo'){ //trace(' o d h') ASSetPropFlags(p,t,7) } //o d !h if( a=='od' or a=='do' ){ //trace(' o d !h') if(m==1 or m==0){ return ASSetPropFlags(p,t,6) } if(m==2){ return ASSetPropFlags(p,t,0,6) } } //o !d h if( a=='oh' or a=='ho' ){ //trace(' o !d h') if(m==1 or m==0){ return ASSetPropFlags(p,t,5) } if(m==2){ return ASSetPropFlags(p,t,0,5) } } //o !d !h if( a=='o' ){ //trace(' o !d !h') if(m==1 or m==0){ return ASSetPropFlags(p,t,4) } if(m==2){ return ASSetPropFlags(p,t,0,4) } } //!o d h if( a=='dh' or a=='hd'){ //trace(' !o d h') if(m==1 or m==0){ return ASSetPropFlags(p,t,3) } if(m==2){ return ASSetPropFlags(p,t,0,3) } } //!o d !h if( a=='d'){ //trace(' !o d !h') if(m==1 or m==0){ return ASSetPropFlags(p,t,2) } if(m==2){ return ASSetPropFlags(p,t,0,2) } } //!o !d h if( a=='h' ){ //trace(' o !d h') if(m==1 or m==0){ return ASSetPropFlags(p,t,1) } if(m==2){ return ASSetPropFlags(p,t,0,1) } } //!o !d !h if( a==false or a=='none'){ //trace(' !o !d !h') } } Object.prototype.protect = function(t,a){ PSDK.protect(this, t, a) } PSDK.protect(Object.prototype,'protect',true) PSDK.protect(_global,'psdk',true)