Показать сообщение отдельно
Старый 15.02.2011, 21:27
dream'r вне форума Посмотреть профиль Отправить личное сообщение для dream'r Посетить домашнюю страницу dream'r Найти все сообщения от dream'r
  № 5  
Ответить с цитированием
dream'r

Регистрация: Nov 2000
Адрес: russia, moscow
Сообщений: 21
Отправить сообщение для dream'r с помощью ICQ
Код AS1/AS2:
private function generateOsnMenu(def_lang) 
	{		
		_root.createEmptyMovieClip("osnMenu", _root.getNextHighestDepth());
		_root.osnMenu._y = 18;
		_root.osnMenu._x = _root.rd_logo._x + _root.rd_logo._width + 130;
		var menupunkts:Number = _root.menuXML.firstChild.childNodes.length;
 
		for(i = 0; i < menupunkts; i++){		
			var osnmenu:MovieClip = _root.osnMenu.attachMovie("menuText", "menuText"+i, _root.osnMenu.getNextHighestDepth());
			osnmenu.punktText.autoSize = true;
			osnmenu.punktText.htmlText = true;
 
			var title = _root.menuXML.firstChild.childNodes[i].attributes["title_ru"];
			osnmenu.punktText.htmlText = title;
 
			var what_load = _root.menuXML.firstChild.childNodes[i].attributes["what_load"];
 
			osnmenu._y = 0;
			if(i == 0){
				osnmenu._x = 0;
			}
			else{
				osnmenu._x = _root.osnMenu["menuText"+(i-1)]._x + _root.osnMenu["menuText"+(i-1)]._width + 40;
			}
 
			osnmenu.onRollOver = function() 
			{
				TweenMax.to(this.punktText, 0.5, {tint:"0x000000", ease:Circ.easeOut});
			}
			osnmenu.onRollOut = _root.osnMenu["menuText"+i].onReleaseOutside = function(){
				TweenMax.to(this.punktText, 0.5, {tint:"0x838383", ease:Circ.easeOut});
			}
			osnmenu.onRelease =  Proxy.create(this, gotoRazdel);
		}
	}
 
	private function gotoRazdel():Void 
	{
		trace("WHAT LOAD ");
	}
}
__________________
весь хлеб свежий