ciao ragazzi!
ho un video player che carica dei video che son sotto al player.... aggiungendo dei video all'xml lo scroll non me li visualizza tutti e 10 ad esempio....
non capisco che variabile modificare
vi posto la parte del codice
codice:function setupVideoThumbs() { clearInterval(slider); var _loc5 = -200; for (var _loc3 = 0; _loc3 < videoThumb.length; ++_loc3) { var _loc4 = videoThumbContainer.attachMovie("videoSelection", "videoThumbHolder" + _loc3, _loc3 * 1050); _loc4.thumbHolder.loadMovie(videoThumb[_loc3]); _loc4.thumbCaption.text = videoCaption[_loc3]; _loc4.referenceNum.text = _loc3; _loc4._y = 0; _loc4._x = (spacing + _loc4._width) * _loc3 - 40; if (debugMode) { trace ("I made: videoThumbHolder" + _loc3 + " and gave it the thumb: " + videoThumb[_loc3]); trace ("X Position: " + videoThumbContainer["videoThumbHolder" + _loc3]._x); } // end if videoThumbContainer["videoThumbHolder" + _loc3].onRelease = function () { switchVideo(this.referenceNum.text); }; slider = setInterval(slideThumbs, 200); ++maxVideoIndex; } // end of for _root.gotoAndPlay(3); } // End of the function function slideThumbs() { var _loc2 = videoThumb.length * 500 - 100 + rightSpacing; if (_root._xmouse >= 15 && _root._xmouse <= _loc2 && _root._ymouse >= 300 && _root._ymouse <= 800) { _root.videoThumbContainer.xSlideTo(-1 * (_root._xmouse - 60), 2, "easeOutExpo"); } else if (_root.videoThumbContainer._x != slideHolderX) { _root.videoThumbContainer.xSlideTo(slideHolderX, 1, "easeOutExpo"); } // end else if } // End of the function var selectedVideoPath; var selectedVideoCaption; var selectedVideoThumb; var selectedVideoIndex = 10; var maxVideoIndex = 10; var spacing = -10; var rightSpacing = 0; var slider; setupVideoThumbs(); stop ();

Rispondi quotando