1 Reply Latest reply on Sep 18, 2007 8:43 AM by kglad

    Tweening a wedge...

      I need to create a count-down timer that has a round "face" and an inner "fill" element within the face that starts as a full 360 degree circle and decreases down to zero degrees as the timer counts down and reaches 0.

      See the "Be The Referee" demo at the link below for an example of the kind of thing I mean....


      The initial count-down value will be dynamic and not always the same, so it might be a 30 second timer or 10...etc..

      I have been playing around with various bits of pie-chart code to see if I could create a wegde that starts at 360 and decreases, but it's not that smooth and I figured that some kind of combination of Drawing API and Tween would be better, however I have no idea where to start.

      Any ideas anyone...?