![]() |
|
||||||||||
|
|||||
|
Вот код
#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, время: 00:31. |
|
|
« Предыдущая тема | Следующая тема » |
|
|