On 10/5/16, 9:57 AM, "Maxim Solodovnik" <solomax...@gmail.com> wrote:
>Hello, > >Recently I got request to capture hand drawing from pen device using >as3 (latest apache flex) >unfortunately I got ungly results in case drawing is fast >in case mouse/pen moves slowly I got smooth curve > >Is it possible to get mouse coordinates on higher frequency? Don't know for sure, but in general, since Flash does input and display in the same thread, the question is whether you are processing the response too slowly and events are being dropped, or the pen just doesn't output fast enough or there is some code in between like in the browser or in Flash itself that gates the input rate. Many years ago, most tablet and pen hardware couldn't keep up with fast hands. If you use the Pen in a native app (Windows Paint, Adobe Illustrator, etc), does it go fast enough? If yes, then you know the device and OS is fast enough. Then you could try a test app that instead of drawing on each mouse move, just queues them up and draws them "later" so you see if Flash can get enough events without dropping any. Then profile what happens in response to a pen event. I could imagine that Flex might be overthinking on each event. HTH, -Alex