6 Replies Latest reply on Jan 17, 2007 10:48 PM by gdmt

    time

    gdmt Level 1
      hi there!
      i'd like to stop in a frame, then, 'til 10 seconds go to the next frame...
      i was playing with getSeconds(), but it doesn't work..
      any idea to do this?
      it may be very easy, but i don't know how to do it...
      i hope soemone can help me
      thanx in advance!

      (sorry, my english isn't good)
        • 1. Re: time
          kglad Adobe Community Professional & MVP
          use setInterval() or setTimeout(). for example:

          }
          • 2. Re: time
            gdmt Level 1
            THANK YOU VERY MUCH!
            i'll check it!
            :D
            • 3. time
              Shandy Elliott Level 1
              whatever frame you want to stop on:
              • 4. Re: time
                kglad Adobe Community Professional & MVP
                you're welcome.
                • 5. Re: time
                  Shandy Elliott Level 1
                  Kglad's version is more streamline, but you can use either techique.
                  • 6. time
                    gdmt Level 1
                    i checked Kglad's version and didn't work
                    i tryed with Shan-Dysigns' version and yes... it worked!
                    :D
                    but anyway, thanx to both!
                    much apreciated!


                    oh, i forgot... i'm making a slideshow banner of 4 images with alpha transitions

                    mi first's frame AS is:
                    stop();
                    tiempo0 = getTimer();
                    segs = 10;
                    this.onEnterFrame = function() {
                    tiempo1 = getTimer();
                    if (tiempo0+segs*1000<tiempo1) {
                    nextFrame();
                    delete this.onEnterFrame;
                    }
                    };

                    and my second's frame AS is:
                    stop();
                    import mx.transitions.Tween;
                    var animacion:Tween = new Tween(banner1, "_alpha", mx.transitions.easing.Regular.easeOut, 100, 0, 1, true);
                    var animacion:Tween = new Tween(banner2, "_alpha", mx.transitions.easing.Regular.easeOut, 0, 100, 1, true);
                    animacion.onMotionFinished = function() {
                    nextFrame();
                    };

                    third frame's AS:
                    (same as first)

                    fourth frame's AS:
                    (same as second)
                    and so on...

                    alright, THANK YOU very much again!!!
                    goodbye!

                    ps: if you wanna see YOUR slideshow check http://hanache.com.ar/PRUEBA/haa.htm . any comments are welcome! ;)