How to delay the timing on one slide out of 5 slides?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Heidi Jung
    New Member
    • Dec 2010
    • 1

    How to delay the timing on one slide out of 5 slides?

    I've set up a timer for 5 slides flash banner including 5 buttons and play/pause button with infinite loop. Now I want to make the fifth slide stay twice as long as the other four. Can you help me on this? Below is the script.


    <CODE>

    timer = 1;

    onEnterFrame = function(){

    if(_root.autopl ay == 1) {

    timer = timer + 1;

    if (timer > 210) {
    nextpic = _root.pic + 1;
    lastpic = _root.pic;

    if(nextpic > 5){
    nextpic = 1;
    }

    _root.buts.b["item"+last pic].gotoAndStop(94 );
    _root.buts.b["item"+next pic].gotoAndPlay("s 1");

    _root.pic = nextpic;
    _root.gallery.p ics.gotoAndStop (lastpic);
    _root.gallery.g otoAndPlay("s1" );

    timer = 0;
    }

    }
    else
    {
    timer = 0;
    }

    }

    </CODE>
Working...