Polygon intersection

hey,

I am trying to find the intersection of any two polygons by using flash. anybody tried anything like this? the most used method is the sweep-line bentley-ottmann algorithm. you can find a java applet of it what i wanted to do at http://www.lupinho.de/gishur/html/Sweeps.html#polygon