![]() |
MX COMPONENT HELP programer -ы
Вот код
#initclip function Vertical_menu(){ this._xscale=this.mn_scale; this._yscale=this.mn_scale; Mouse.addListener(this); } Vertical_menu.prototype= new MovieClip(); Vertical_menu.prototype.AddButton=function(n){ trace("addbutton"); n++; this.attachMovie("button","mnu_button_"+n, n,{prev_obj:"mnu_button_"+(n-1)}); } Vertical_menu.prototype.CreateButtons=function(success){ trace(success); if(success){ // Здесь всё срабатывает for( var n_key in this){ this.n++; trace(n_key+" "+this); this._parent.AddButton(this.n); //здесь нехочет хоть убей( ни this.AddButton() ни просто AddButton() ) } } } Vertical_menu.prototype.onLoad=function(){ this.params= new LoadVars(); this.params.load(this.target_obj); this.params.onLoad=this.CreateButtons; } Vertical_menu.prototype.onMouseMove=function(){ if (this._xmouse<this._height/2){ this.mov_speed*=-1; } else if(this._xmouse>this._height/2){ this.mov_speed*=-1; } } Object.registerClass("vert_menu", Vertical_menu); #endinitclip |
| Часовой пояс GMT +4, время: 13:49. |
Copyright © 1999-2008 Flasher.ru. All rights reserved.
Работает на vBulletin®. Copyright ©2000 - 2026, Jelsoft Enterprises Ltd. Перевод: zCarot
Администрация сайта не несёт ответственности за любую предоставленную посетителями информацию. Подробнее см. Правила.