Показать сообщение отдельно
Старый 06.11.2005, 17:06
KUZEN вне форума Посмотреть профиль Отправить личное сообщение для KUZEN Посетить домашнюю страницу KUZEN Найти все сообщения от KUZEN
  № 7  
Ответить с цитированием
KUZEN
Ветеран форума
 
Аватар для KUZEN

Регистрация: Jun 2005
Адрес: MOSCOW
Сообщений: 6,852
Отправить сообщение для KUZEN с помощью ICQ Отправить сообщение для KUZEN с помощью Yahoo Отправить сообщение для KUZEN с помощью Skype™
Лови

Код:
import flash.geom.*;
MovieClip.prototype.p_drawGradient = function(gWidth,gHeight,aLeft,aRight) {
	with (this) {
		colors = [0xFFFFFF, 0xFFFFFF];
		fillType = "radial";
		alphas = [aLeft, aRight];
		ratios = [0, 0xFF];
		spreadMethod = "pad";
		interpolationMethod = "linearRGB";
		focalPointRatio = 0;
		matrix = new Matrix();
		matrix.createGradientBox(gWidth, gHeight, 0, 0, 0);
		beginGradientFill(fillType, colors, alphas, ratios, matrix, spreadMethod, interpolationMethod, focalPointRatio);
		moveTo(0, 0);
		lineTo(0, gHeight);
		lineTo(gWidth, gHeight);
		lineTo(gWidth, 0);
		lineTo(0, 0);
		endFill();
	}
};
_root.createEmptyMovieClip("circle",1);
circle.p_drawGradient(100,100,100,0);
__________________
BestMasterиZация