A Flash Developer Resource Site

Results 1 to 20 of 41

Thread: Flash XML Play/Pause Button?

Hybrid View

  1. #1
    :
    Join Date
    Dec 2002
    Posts
    3,518
    ???
    This worked...
    Code:
    ///////////////// New button to loop here ////////////
    function nextImage() {
    p = (p < total - 1) ? p + 1 : p;
    showPic(p);
    if (playState) {
    clearInterval(myInterval);
    myInterval = setInterval(slideshow, 4000);
    }
    }
    function prevImage() {
    p = (p > 0) ? p - 1 : p;
    showPic(p);
    if (playState) {
    clearInterval(myInterval);
    myInterval = setInterval(slideshow, 4000);
    }
    }
    And this disabled the buttons???
    Code:
    ///////////////// New button to loop here ////////////
    function nextImage() {
    p = (p < total - 1) ? p + 1 : 0;
    showPic(p);
    if (playState) {
    clearInterval(myInterval);
    myInterval = setInterval(slideshow, 4000);
    }
    }
    function prevImage() {
    p = (p > 0) ? p - 1 : total - 1;
    showPic(p);
    if (playState) {
    clearInterval(myInterval);
    myInterval = setInterval(slideshow, 4000);
    }
    }
    I'm missing something...

  2. #2
    Senior Member
    Join Date
    Dec 2004
    Posts
    459
    Sorry I posted the same code. My mistake. Let me repost it. sorry


    Quote Originally Posted by dawsonk
    ???
    This worked...
    Code:
    ///////////////// New button to loop here ////////////
    function nextImage() {
    p = (p < total - 1) ? p + 1 : p;
    showPic(p);
    if (playState) {
    clearInterval(myInterval);
    myInterval = setInterval(slideshow, 4000);
    }
    }
    function prevImage() {
    p = (p > 0) ? p - 1 : p;
    showPic(p);
    if (playState) {
    clearInterval(myInterval);
    myInterval = setInterval(slideshow, 4000);
    }
    }
    And this disabled the buttons???
    Code:
    ///////////////// New button to loop here ////////////
    function nextImage() {
    p = (p < total - 1) ? p + 1 : 0;
    showPic(p);
    if (playState) {
    clearInterval(myInterval);
    myInterval = setInterval(slideshow, 4000);
    }
    }
    function prevImage() {
    p = (p > 0) ? p - 1 : total - 1;
    showPic(p);
    if (playState) {
    clearInterval(myInterval);
    myInterval = setInterval(slideshow, 4000);
    }
    }
    I'm missing something...

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center