code: function () {
              var carousel = this, timer;
  
              if (JS.isUndefined(carousel._autoPlayTimer)) {
                  timer = carousel.get("autoPlayInterval");
                  if (timer <= 0) {
                      return;
                  }
                  carousel._isAutoPlayInProgress = true;
                  carousel.fireEvent(startAutoPlayEvent);
                  carousel._autoPlayTimer = setTimeout(function () {
                      carousel._autoScroll();
                  }, timer);
              }
          }
docs: Start auto-playing the Carousel.
  
  @method startAutoPlay
  @public