enterFrame:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/components/Application.html#eventSummary
On Wed, Oct 12, 2016 at 8:35 AM, Maxim Solodovnik
wrote:
> Hello All,
>
> just have tried to find "screenRedraw" event to add listener and was
> unable to :( which one sh
Hello All,
just have tried to find "screenRedraw" event to add listener and was
unable to :( which one should I use?
I tried to add
stage.addEventListener("screenRedraw", drawLine);
But unfortunately got only 1 point instead of series.
I'll to experiment with predefined FPS, setting it in runtim
Might be time to run the profiler to see how much work is being done on
each mouse event.
And you can try an ActionScript-only version of your test. A variant of
such a test would track timestamps on the mouse events and not draw
anything until "much later" so you can get a sense for how many mous
And don't forget :)
On Thu, Oct 6, 2016 at 10:24 AM, Maxim Solodovnik
wrote:
> >> Another possibility: don't attach the events to the stage, but to the
> "area" object instead.
> Maybe I'm doing something wrong, but this is what I have started from,
> and it completely not working in my quickst
>> Another possibility: don't attach the events to the stage, but to the "area"
>> object instead.
Maybe I'm doing something wrong, but this is what I have started from,
and it completely not working in my quickstart app
will try "screenRedraw", we'll see it will allow more precise coordinates :)
And the 60fps? :)
Also, try this: attach ALWAYS the mousemove event listener (even directly
on MXML) instead of attaching it "on demand", and make mouseDown and
mouseUp just set a "capturing" variable to either true of false.
Another possibility: don't attach the events to the stage, but to the
"
I tried to change the code as follows
grab points in event handler [1], then actually draw it after
capturing is over [2]
The result curve is not smooth in case of fast, long distance moves
[1] https://github.com/solomax/FlexSandbox/blob/master/web/src/Main1.mxml#L37
[2] https://github.com/solomax
Yes, I understood, but you can do it in many ways:
- Capture mouse coordinates, and draw the new pixel on a bitmap placed
underneath
- Capture mouse coordinates, and draw a new object from the last
captured point to the new coordinates, and so on
- Capture mouse coordinates, and pe
It sort of "pencil drawing" by mouse/pen
I'll try to capture points and draw it later(or better in separated thread)
Thanks for the pointer
On Thu, Oct 6, 2016 at 2:23 PM, Javier Guerrero García
wrote:
> Hi Maxim!
>
> Are you capturing the points on line objects, or on a bitmap drawn at the
> bo
Hi Maxim!
Are you capturing the points on line objects, or on a bitmap drawn at the
bottom that has to be interpolated and redrawn on every mouse movement? Try
separating the capture and paint areas, capturing line objects instead of
pixels on a bitmap, or at least draw the bitmap with the lowest
changing FPS to 60 doesn't help :( (originally it was 30)
Final code for capturing events and drawing is the same as prototype code
still got ugly, non-smooth curve in case mouse moving very fast
Line in much smoother in Gimp
In fact Flex desktop app produces smooth enough line
will try to create
Hello,
Thanks a lot for the quick answers, definitely flex is one of my
favorite communities :)
Here is example project: https://github.com/solomax/FlexSandbox
since it is desktop and tiny it looks not that bad
In my main project the resulting line is not smooth at all :(
I'll try to check the co
Alex Harui wrote
>>can't you just up the frame per second of the swf to say 60, and if
>>needed interpolate data points to smooth it?
> That is a possibility, but the interpolation code may also affect input
> rate.
For this approach it might be helpful to google with "spline interpolation"
and "F
x27;t you just up the frame per second of the swf to say 60, and if needed
> interpolate data points to smooth it?
>
> -Original Message-
> From: Clint M [mailto:cmod...@gmail.com]
> Sent: Wednesday, October 05, 2016 10:07 AM
> To: users@flex.apache.org
> Subject: Re:
mod...@gmail.com]
>Sent: Wednesday, October 05, 2016 10:07 AM
>To: users@flex.apache.org
>Subject: Re: Get mouse coordinates on high speed
>
>I think the simple answer to what you're asking is no.
>
>Try posting the code you're using to draw the curve though.
>
&g
can't you just up the frame per second of the swf to say 60, and if needed
interpolate data points to smooth it?
-Original Message-
From: Clint M [mailto:cmod...@gmail.com]
Sent: Wednesday, October 05, 2016 10:07 AM
To: users@flex.apache.org
Subject: Re: Get mouse coordinates on
On 10/5/16, 9:57 AM, "Maxim Solodovnik" 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 c
I think the simple answer to what you're asking is no.
Try posting the code you're using to draw the curve though.
Someone might spot something to help speed it up.
On Wed, Oct 5, 2016 at 9:57 AM, Maxim Solodovnik
wrote:
> Hello,
>
> Recently I got request to capture hand drawing from pen devi
18 matches
Mail list logo