Zoque.Forum
»
Oluşturulmuş Diziye kendi düğmemi bir türlü ekeleyemedim?
|
| ActionScript ve Arşiv Bölümü Flash, Director, Live Motion Bölümünde önemli olduğunu düşündüğümüz mesajların toplandığı yeni bölüm. Arama motorundan daha eski mesajlara ulaşılabilir. |
![]() |
|
|
LinkBack | Seçenekler |
|
|
#1 (permalink) |
|
Üyelik Tarihi: 20.04.2004
Yer: BURSA
Yaş: 26
Mesaj: 6
|
arkadaşlar kaynak sitelerin birinde çok güzel slider efekti kodu buldum ama okudum okudum anlamadım.
şimdi yapmak istediğim şu, sahnede 6 adet bulunan btn1 , btn2 isimli düğmelerin isimlerini dügme_btn, gez_btn şeklinde değiştirmeye niyetlendim ama kurulmuş olan +i dizisini iptal edip kendi dizimi bir türlü oluşturamadım. nasıl olacağı hakkında bi fikri olan varsa ve yardım ederse çok dua felan ederim. şimdiden çok teşekkürler. Stage.align = ""; Stage.scaleMode = "noScale"; Stage.showMenu = false; _root.connURL1 = "Google.com"; _root.connURL2 = "Google.com"; _root.connURL3 = "Google.com"; _root.connURL4 = "Google.com"; _root.connURL5 = "Google.com"; _root.connURL6 = "Google.com"; _root.connURL7 = "Google.com"; _root.connGET1 = "_blank"; _root.connGET2 = "_blank"; _root.connGET3 = "_blank"; _root.connGET4 = "_blank"; _root.connGET5 = "_blank"; _root.connGET6 = "_blank"; _root.connGET7 = "_blank"; _global.menuNum = 7; _global.spd = 4; movX = [0, 327, 379, 431, 483, 535, 586, 639]; for (i=1; i<=menuNum; i++) { this["img"+i]._xscale = this["img"+i]._yscale=70; this["img"+i]._y = 50; this["img"+i]._x = this["mak"+i]._x=this["line"+i]._x-45; this["c"+i]._y = 30; this["btn"+i].onRollOver = function() { leffetson = new Sound(this); leffetson.attachSound("psch"); leffetson.start(); name = this._name.substring(3, 4); attachMovie("mov"+name, "mov", 100); mov._x = movX[name]; mov._y = 32; }; this["btn"+i].onRollOut = function() { leffetson.stop(); delete leffetson; name = false; }; this["btn"+i].onRelease = function() { name = this._name.substring(3, 4); getURL(_root["connURL"+name], _root["connGET"+name]); }; } // end of for this.onEnterFrame = function() { for (i=1; i<=menuNum; i++) { if (name) { if (name == i) { this["line"+i]._x = this["line"+i]._x+(276+i*52-this["line"+i]._x)/spd; } else if (name>i) { this["line"+i]._x = this["line"+i]._x+(i*52-this["line"+i]._x)/spd; } else if (name<i) { this["line"+i]._x = this["line"+i]._x+(i*52+276-this["line"+i]._x)/spd; } // end else if if (name == i) { this["img"+i]._xscale = this["img"+i]._xscale+(100-this["img"+i]._xscale)/spd; this["img"+i]._yscale = this["img"+i]._yscale+(100-this["img"+i]._yscale)/spd; this["img"+i]._x = this["img"+i]._x+(this["line"+i]._x-53-this["img"+i]._x)/spd; this["img"+i]._y = this["img"+i]._y+(80-this["img"+i]._y)/spd; this["c"+i]._alpha = this["c"+i]._alpha+-this["c"+i]._alpha/spd; this["line"+(i-1)]._alpha = this["line"+(i-1)]._alpha+(40-this["line"+(i-1)]._alpha)/spd; } else { this["img"+i]._xscale = this["img"+i]._xscale+(60-this["img"+i]._xscale)/spd; this["img"+i]._yscale = this["img"+i]._yscale+(60-this["img"+i]._yscale)/spd; this["img"+i]._x = this["img"+i]._x+(this["line"+i]._x-10-this["img"+i]._x)/spd; this["img"+i]._y = this["img"+i]._y+(93-this["img"+i]._y)/spd; this["c"+i]._alpha = this["c"+i]._alpha+(50-this["c"+i]._alpha)/spd; this["line"+i]._alpha = this["line"+i]._alpha+(15-this["line"+i]._alpha)/spd; } // end else if this["mak"+i]._width = 150; this["txt"+i]._visible = false; } else { this["line"+i]._x = this["line"+i]._x+(i*93-this["line"+i]._x)/spd; this["img"+i]._xscale = this["img"+i]._xscale+(80-this["img"+i]._xscale)/spd; this["img"+i]._yscale = this["img"+i]._yscale+(80-this["img"+i]._yscale)/spd; this["img"+i]._x = this["img"+i]._x+(this["line"+i]._x-45-this["img"+i]._x)/spd; this["mak"+i]._width = 93; this["img"+i]._y = this["img"+i]._y+(60-this["img"+i]._y)/spd; this["c"+i]._alpha = this["c"+i]._alpha+(100-this["c"+i]._alpha)/spd; this["line"+i]._alpha = this["line"+i]._alpha+-this["line"+i]._alpha/spd; this.line0._alpha = 0; this["txt"+i]._visible = true; } // end else if this["mak"+i]._x = this["line"+i]._x; this["c"+i]._x = this["line"+i]._x-2; this["btn"+i]._x = this["line"+i]._x; this["btn"+i]._width = this["line"+i]._x-this["line"+(i-1)]._x; } // end of for if (name) { this.mov.nextFrame(); } else { removeMovieClip("mov"); } // end else if }; |
|
|
|
Zoque'a hoşgeldiniz!