Performance of Flash application is bogged down due to vector graphics rendering

Hi All,
**
Overview of the application:-**

I have designed and developed a Flash application where in there are two functions exposed to its Activex container i.e. Dot Net application through External Interface.

These two functions are getting called after some time interval in millisecs.

One of them calls lineTo() function of graphics instance as attached sensor moves. Sensor connectivity is managed at Dot Net tier.

Now when the user moves this sensor fast and wierdly performance of the application is bogged down.

There is one button say “showDrawing” which displays this drawing.

My understanding/concerns/requirements:-

  1. When I stored all the sensor points in an internal data-structure (array) and join them (using lineTo()) at last, the performance is saved.

2.If a user clicks on this button we have to display the drawing until the button is clicked and further. So, clicking this button again slows down the application performance.

  1. This application has essentially a call for real-time performance that means I can not hold back call to redraw().

My queries:-

  1. I am still unsure about whether it was due to the graphics content or, graphics rendering of Flash Player (9 and upwards) or redraw() being called after each call to lineTo() function.

Please suggest.