
main_init = function(mc){
 var delay = 5-effect_speed;
 var r = Math.random; var j=intensity/2;
 loop_delay=-1; end_effect = true;
 createEmptyMovieClip("s",6);
 mc.duplicateMovieClip("m",7);
 s.setMask(m); b = mc.getBounds();
 xm = b.xMax-b.xMin; ym = b.yMax-b.yMin;
 s._x = b.xMin; s._y = b.yMin; s.f = 0;
 s.onEnterFrame = function(){
  if(this.f==0){
   this.clear();
   this.lineStyle(1,color1,alpha1);
   for(var i=0;i<j;i++){
    var x = r()*xm; var y = r()*ym;
    this.moveTo(x,y-2); this.lineTo(x,y+2); this.moveTo(x-2,y); this.lineTo(x+2,y);
   }
   this.lineStyle(1,color2,alpha2);
   for(var i=0;i<j;i++){
    var x = r()*xm; var y = r()*ym;
    this.moveTo(x,y-2); this.lineTo(x,y+2); this.moveTo(x-2,y); this.lineTo(x+2,y);
   }
  }
  this.f = (this.f+1) % delay; 
 }
}

// main_effect function

main_effect = function(mc,frame){
}

// sub_init function

sub_init = function(mc){
 if (hide_original) mc._alpha = 0;
}

// sub_effect function

sub_effect = function(mc,frame){
}

