10 Replies Latest reply on Mar 6, 2011 5:57 AM by kglad

    Spinning a wheel, randomly stops and then takes you to another frame.

    First Iggly

      I would like to be able to spin a wheel in flash, this wheel has 8 sections to it split up equally, it spins for a random amount of time, 3 - 7 seconds and then stops. the section which lands on the marker is the result and will take you to a specific frame. Also i would like it when it stops to gradually slow down however this is not vital.

       

      this code works for just rotating a wheel but i want to know how to randomly stop it and how to take it to another frame.

       

      onClipEvent (enterFrame){
      this.ang=ang+0.01;
      _alpha=190*Math.sin(this.ang)+190;
      _rotation++;
      _xscale=260*Math.sin(this.ang)+1900;
      }

       

      i do not know a lot of coding, so do not use complicated words and if you could post how to do this it would help alot.

       

      thanks