Показать сообщение отдельно
Старый 20.01.2008, 19:34
wvxvw вне форума Посмотреть профиль Отправить личное сообщение для wvxvw Найти все сообщения от wvxvw
  № 6  
Ответить с цитированием
wvxvw
Modus ponens
 
Аватар для wvxvw

модератор форума
Регистрация: Jul 2006
Адрес: #1=(list #1#)
Сообщений: 8,049
Записей в блоге: 38
Код:
var r_mc:MovieClip = rct(this, Stage.width, Stage.height, Math.random()*0xffffff, 100);
r_mc._x = Stage.width/2;
r_mc._y = Stage.height/2;
var r_mc:MovieClip = rct(r_mc, Stage.width/2, Stage.height/2, Math.random()*0xffffff, 100);
r_mc._rotation = Math.floor(Math.random()*360-180);
var r_mc:MovieClip = rct(r_mc, Stage.width/4, Stage.height/4, Math.random()*0xffffff, 100);
r_mc._rotation = Math.floor(Math.random()*360-180);
var r_mc:MovieClip = rct(r_mc, Stage.width/8, Stage.height/8, Math.random()*0xffffff, 100);
r_mc._rotation = Math.floor(Math.random()*360-180);
r_mc.onRelease = function(){
	this._rotation -= rotateBack(this);
}
function rotateBack(mc:MovieClip):Number {
	if(!mc._parent){
		return mc._rotation;
	} else {
		return mc._rotation + rotateBack(mc._parent);
	}
}
function rct(_mc:MovieClip, w:Number, h:Number, c:Number, a:Number):MovieClip {
		var mc:MovieClip = _mc.createEmptyMovieClip("rct"+_mc.getNextHighestDepth(), _mc.getNextHighestDepth());
		mc.beginFill(c,a);
		mc.moveTo(-w/2,-h/2);
		mc.lineTo(w/2,-h/2);
		mc.lineTo(w/2,h/2);
		mc.lineTo(-w/2,h/2);
		mc.lineTo(-w/2,-h/2);
		mc.endFill();
		return mc;
	}
__________________
Hell is the possibility of sanity