main_init = function(mc){
 subs_done = true;       				//we don't use the sub functions for this effect

 sl_x = mc.__x;
 sl_y = mc.__y;
 
 _bd = (_begin_degree * .0174532925)			//convert degrees to radians
 _ed = (_end_degree * .0174532925)
 
}
 
// main_effect function

main_effect = function(mc,frame){
 perc = frame / lastframe;                   		//calculate percentage done
 
 _curr_rad = (_bd * (1 - perc)) + (_ed * perc)		//based on percentage done,
 							// calculate the current angle in radians
 
 x_perc = Math.cos (_curr_rad);				//get the current x and y positions
 y_perc = Math.sin (_curr_rad);				// based on the current radian
 
 mc._x = sl_x + (_radius * x_perc);			//change the movieclip's position
 mc._y = sl_y + (_radius * (0 - y_perc));
 
 if (_fadein == 1) mc._alpha = perc * 100;		//if fade in, gradually update transparency
 
 if (frame == lastframe) end_effect = true;  		// set end_effect if effect has ended
}

// sub_init function

sub_init = function(mc){
}

// sub_effect function

sub_effect = function(mc,frame){
}