
main_init = function(mc){
 subs_done = true;
 sqrt = Math.sqrt;
 max = Math.max;
}

// main_effect function

main_effect = function(mc,frame){
 var mx = mc._xmouse; var my = mc._ymouse;
 for(i=0;i<$sub_cnt;i++){
  var s = $smc[i];
  var dx = mx - s._x; var dy = my - s._y;
  var d = sqrt(dx * dx + dy * dy) / sensitivity_area;
  if (use_alpha) s._alpha = max(0, 100 - d);
  s._xscale = s._yscale = max( min_scale, max_scale - d );
 }
}

// sub_init function

sub_init = function(mc){
}

// sub_effect function

sub_effect = function(mc,frame){
}
