# Woot! Sockets! Stupid flickering ball, though

**URL:** <https://forum.kirupa.com/t/woot-sockets-stupid-flickering-ball-though/315354>\
**Category:** Uncategorized\
**Created:** [October 24, 2010, 12:07am UTC](https://forum.kirupa.com/t/woot-sockets-stupid-flickering-ball-though/315354 "2010-10-24T00:07:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Twinfun](https://avatars.discourse-cdn.com/v4/letter/t/eada6e/32.png) [@Twinfun](https://forum.kirupa.com/u/Twinfun)\
**Post date:** [October 24, 2010, 12:07am UTC](https://forum.kirupa.com/t/woot-sockets-stupid-flickering-ball-though/315354/1 "2010-10-24T00:07:41Z")

</div>

[Project Files](http://www.mediafire.com/?f98lv4fe7a815rw)

I wrote this program in CS5 to have a general idea of how the sockets work in flash. After getting my feet wet with sockets, I have come across a flickering problem that I will have to remedy eventually.

The server application tracks the X and Y of the mouse cursor, and then transmits it to the client. The client then assigns the transmitted X and Y coords to the ball, but the ball constantly flickers for an unknown reason. How do I get it to stop flickering?

Note: The client can be run either as a Flash Movie or an AIR application, where the server MUST be run as an AIR application. They also must both be run within the debug environment as I have not yet implemented security policies.

Thanks!
