![]() |
|
||||||||||
|
|||||
|
Регистрация: Oct 2004
Адрес: Jerusalem
Сообщений: 31
|
Это скролл галерея. Когда картинки начинают двигаться, появляются лишние расстояния между ними. Как это можно устранить. Спасибо.
nClipEvent (load) { for (i=1; i<10; i++) { this.attachMovie("img"+i, "tnimg"+i, i); this["tnimg"+i]._x=xpos; this["tnimg"+i]._y=0; xpos+=70; } xpos-=100; myArray=new Array(this.tnimg1, this.tnimg2, this.tnimg3, this.tnimg4, this.tnimg5, this.tnimg6, this.tnimg7, this.tnimg8, this.tnimg9); reelSpeed=2; imageCount=9; } onClipEvent (enterFrame) { if (this.hitTest( _root._xmouse, _root._ymouse, true)) { } else { myArray[0]._x-=reelSpeed; myArray[1]._x-=reelSpeed; myArray[2]._x-=reelSpeed; myArray[3]._x-=reelSpeed; myArray[4]._x-=reelSpeed; myArray[5]._x-=reelSpeed; myArray[6]._x-=reelSpeed; myArray[7]._x-=reelSpeed; myArray[8]._x-=reelSpeed; if (myArray[0]._x<=-300) { myArray[0].removeMovieClip(); myArray[0]=myArray[1]; myArray[1]=myArray[2]; myArray[2]=myArray[3]; myArray[3]=myArray[4]; myArray[4]=myArray[5]; myArray[5]=myArray[6]; myArray[6]=myArray[7]; myArray[7]=myArray[8]; if (imageCount==26) { imageCount=0; } imageCount++; this.attachMovie("img"+imageCount, "tnimg"+imageCount, imageCount); this["tnimg"+imageCount]._x=xpos; this["tnimg"+imageCount]._y=0; myArray[7]=this["tnimg"+imageCount]; trace("Trace output 1"); |
![]() |
Часовой пояс GMT +4, время: 22:45. |
|
|
« Предыдущая тема | Следующая тема » |
| Опции темы | |
| Опции просмотра | |
|
|