Answered
e.updateAfterEvent() slow down
Hi
I'm new to AS3 so apologies if this one has been done before but I have a problem in a scrolling routine I am trying to write.
Bacially I am trying to create a draggable moving axis on a 3D graph and everything works just fine until I start to try and drag it around really quickly.
The main code is an Event Listener atatched to the Mouse Move event and the code is triggered when a drag is taking place. As part of the processing I shuffle some arrays as the user moves along the axis and then redraw the axis and the graph components followed by an e.updateafterevent() to update the stage.
As far as I can tell my array shuffling routines work just fine but the screen update gets slower and slower until it almost stops after a period of fast dragging.
I have had a look around and there seems to be some doubt about updateafterevent working properly when you are doing a lot of processing - my question is - should I be using it and if not is there a decent alternative to cause the stage to update ?
Thanks
I'm new to AS3 so apologies if this one has been done before but I have a problem in a scrolling routine I am trying to write.
Bacially I am trying to create a draggable moving axis on a 3D graph and everything works just fine until I start to try and drag it around really quickly.
The main code is an Event Listener atatched to the Mouse Move event and the code is triggered when a drag is taking place. As part of the processing I shuffle some arrays as the user moves along the axis and then redraw the axis and the graph components followed by an e.updateafterevent() to update the stage.
As far as I can tell my array shuffling routines work just fine but the screen update gets slower and slower until it almost stops after a period of fast dragging.
I have had a look around and there seems to be some doubt about updateafterevent working properly when you are doing a lot of processing - my question is - should I be using it and if not is there a decent alternative to cause the stage to update ?
Thanks
