
main_init = function(mc){

 if (hide_mouse) Mouse.hide();
 subs_done = true;
 mc._alpha = 0;
 s_angle = 0;
 angle = 0;

 tr_x = [0,0,0,0,0,0,0,0];
 tr_y = [0,0,0,0,0,0,0,0];
 tr_r = [0,0,0,0,0,0,0,0];
 tr_i = 0;

}

// main_effect function

main_effect = function(mc,frame){

 tr_i = ( tr_i + trail_length - 1 ) % trail_length;
 tr_x [ tr_i ] = mc._xmouse + Math.cos(angle) * radius;
 tr_y [ tr_i ] = mc._ymouse - Math.sin(angle * motion) / 2 * radius;
 tr_r [ tr_i ] = s_angle;

 angle = (angle + deg15 / 4 * speed) % deg360;
 s_angle = (s_angle + shape_rotation * shape_rotation * 4.5) % 360;

 for (i = 0; i < trail_length; i++){

  ti = (tr_i + i ) % trail_length;
  mc.duplicateMovieClip("t"+1,-i,{ _x: tr_x[ti], _y: tr_y[ti], _rotation: tr_r[ti], _alpha: 100 - (i / trail_length) * 100 });

 }


}

// sub_init function

sub_init = function(mc){
}

// sub_effect function

sub_effect = function(mc,frame){
}

