Convert Drawing Applet To As 2
December 29th, 2009
I have a simple special pie chart drawing applet viewable here.
http://troyworks.tripod.com/troyworks/flashwork/SunburstViewer2.html
I need to put in a new AS3.0 project.
but the original is written in AS1.0 (the script is attached). So some things have changed.
The code is clean shouldn’t take more than an hour or so to get the syntax changed over.
Need to
1) switch the functions from e.g.
drawfunction = function(AllRings, zoom, timepan)
to
private function drawfunction(allRings:Array, zoom:Number, timepan:Number):void{
2) Change the xml sytax to E4X style e.g.
parentNode.attributes.pa;
to
parentNode. (at) pa;



