Jump to content
Search Community

phifunk

Members
  • Posts

    1
  • Joined

  • Last visited

phifunk's Achievements

0

Reputation

  1. folks I inherited this code which runs an image carousel in flash cs3. The carousel is at the end of the flash movie but keeps cycling. I just need the tween to stop. here is the code. thanks much import gs.TweenLite; var CarouselCounter:Number; var CarouselArray:Array = new Array("Image1","Image2"); CarouselCounter = 0; NextCarouselImage = function() { //creates empty holder var container:MovieClip = Carousel.createEmptyMovieClip("container", getNextHighestDepth()); container._alpha = 0; container._xscale = 100; container._yscale = 100; //loads container.attachMovie( CarouselArray[CarouselCounter], "newContainer", getNextHighestDepth()); TweenLite.to(container, .5, {_alpha:100, overwrite:false} ); TweenLite.to(container, .5, {_alpha:0, delay:4.5, overwrite:false} ); var CarouselInterval = setInterval(Next, 5*1000); function Next() { clearInterval(CarouselInterval); if (CarouselCounter >= CarouselArray.length - 1) { CarouselCounter = 0 } else { CarouselCounter++; } NextCarouselImage(); } } NextCarouselImage();
×
×
  • Create New...