Groups | Blog | Home
all groups > flash actionscript > march 2006 >

flash actionscript : Interactive "pie graph" - is this possible?...


shmooney
3/3/2006 4:42:59 PM

[quoted text, click to view]

I am thinking it should be possible, using a mask rather than
growing/shrinking the movie clip, and using a motion guide as the point
where the mask is moved to reveal more of either movie clip.

DIY_Lobotomy
3/3/2006 8:16:53 PM
I know this may be more complicated than you can fully detail in this thread,
but even getting me started would be great...

I was wondering how you could make a circular graph with two parts, such that
a user could click a dividing line to dynamically alter the amount that is
filled on each part?...

Visually (for example), let's say there was a circle with the left half red
and the right half blue - that would be 50%/50%. I would want to be able to
drag a line so that I could make the pie chart be, say, 60%/40%...

I'd imagine this would be difficult for a couple reasons:

1) The two MCs (for each "half") would have to grow and shrink dynamically in
relation to one another.

2) The growing and shrinking would have to be on a circular axis, and not just
linear as if you were growing/shrinking a rectangle or a square.

I hope this made sense. If not, please post back and I'll try to post some
graphic examples or something. The concept is simple, but I think this
execution would be difficult. Thanks!...

--Matt
sly one
3/3/2006 9:19:15 PM
Check out animationPackage... it is a free collection of AS classes that, once
installed, allows you to easily animate things like pie charts.

http://www.alex-uhlmann.de/flash/animationpackage/index.htm
AddThis Social Bookmark Button