Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-31-2012, 12:47 PM   PM User | #1
kaktusman
New to the CF scene

 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
kaktusman is an unknown quantity at this point
newbie game socket problem

Hi,
I'm newbie learning socket programming between windows and linux.

In a simple program I'm developing like a game, the air client from windows sends movement commands for a game object to the linux socket.

My requirements:
1. mouseDown: move
2. mouseUp: stop

Now in practice, if I press and hold mouse, then release it after a while, all works ok. If I just click, then the movement starts and never stops before I either repeat as above, or press the stop button separately.

I need a guarantee that if the gap between press and release of the mouse button is some less than a second, no event handler is triggered. Or, the condition is that handlers must work only if there is a delay>1s between mouseDown and mouseUp.

Is such a thing possible with this solution or a better one please?
kaktusman is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:29 PM.


Advertisement
Log in to turn off these ads.