I am not sure which "flashing" problem you are talking about here. If you are talking about refreshing objects then I have a few quick suggestions:
if it's a repeated movement use $mw->repeat() function wish short timeouts (like 100ms) and have your routine move the object(s) a little bit at a time.Try not to move EVERYTHING. Move only the things that in your scope of view.Put more RAM into your computer.I hope this helps. If you have any more questions, feel free to drop me a line.