
main_init = function(mc){
 subs_done = true;
 mc._alpha = 0;
 for (i=1;i<=8;i++){
  x = mc._x + Math.cos(deg45 * i) * thickness;
  y = mc._y - Math.sin(deg45 * i) * thickness;
  mc.duplicateMovieClip('m'+i,5+i,{_x:+x,_y:+y});
 }
}

// main_effect function

main_effect = function(mc,frame){
 perc = frame / lastsubframe;
 if (perc == 1){
  for (i=1;i<=8;i++) mc._parent['m'+i].removeMovieClip();
  end_effect=true;
 } else {
  mc._alpha = perc * 100;
  for (i=1;i<=8;i++){
   if (special){
    angle = deg45 * i + (special_rotation ? perc * deg360 : 0);
    offset = thickness + (1-perc) * special_initial_distance;
    x = mc._x + Math.cos(angle) * offset;
    y = mc._y - Math.sin(angle) * offset;
    mc.duplicateMovieClip('m'+i,5+i,{_x:+x,_y:+y,_alpha:mc._alpha});
   } else mc._parent['m'+i]._alpha = mc._alpha;
  }
 }
}

// sub_init function

sub_init = function(mc){
}

// sub_effect function

sub_effect = function(mc,frame){
}

