<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
  <channel>
    <title>Comments on snippet: 'AS3: Circle pie'</title>
    <description>Snipplr comments feed</description>
    <link>https://snipplr.com/</link>
    <lastBuildDate>Sun, 05 Apr 2026 20:15:06 +0000</lastBuildDate>
    <item>
      <title>burnandbass said on 03/Dec/2010</title>
      <link>https://snipplr.com/view/45022/as3-circle-pie</link>
      <description>&lt;p&gt;Here is some mod to make it use Tweener:&#13;
&#13;
Comment:&#13;
&#13;
/*addEventListener(Event.ENTER_FRAME, onLoop);&#13;
function onLoop(evt:Event):void {&#13;
    with (circleSegment.graphics) {&#13;
        clear();&#13;
        beginFill(0x000000);&#13;
       &#13;
        // count by two, up to coords.length (drawCommands is exactly half the length of coords)&#13;
        maxIndex =  Math.ceil((mouseX / stage.stageWidth)  * drawCommands.length) * 2;&#13;
 &#13;
        drawPath(drawCommands, coords.slice(0, maxIndex));&#13;
    }&#13;
}*/&#13;
&#13;
and add:&#13;
&#13;
import caurina.transitions.Tweener;&#13;
&#13;
var numProxy:Object = {};&#13;
numProxy.numValue = 0&#13;
&#13;
Tweener.addTween(numProxy, {numValue:100, time:6, onUpdate:draww, transition:"easeInQuad"})&#13;
&#13;
function draww(e:Event = null):void{&#13;
	with (circleSegment.graphics) {&#13;
        clear();&#13;
        beginFill(0x000000);&#13;
       &#13;
        // count by two, up to coords.length (drawCommands is exactly half the length of coords)&#13;
        maxIndex =  Math.ceil((numProxy.numValue/100)  * drawCommands.length) * 2;&#13;
 &#13;
        drawPath(drawCommands, coords.slice(0, maxIndex));&#13;
    }&#13;
}&lt;/p&gt;</description>
      <pubDate>Fri, 03 Dec 2010 23:38:45 UTC</pubDate>
      <guid>https://snipplr.com/view/45022/as3-circle-pie</guid>
    </item>
  </channel>
</rss>
