C# :: Multiplayer Whiteboard Race Condition?
Jun 5, 2011
Imagine a multiplayer whiteboard where several people can draw at the same time. To keep it simple, lets say there's a single object on the whiteboard which can be moved or deleted by any user. There is no notion of user-owned objects (i.e. it's important that any user be allowed to manipulate any object... it's a free-for-all whiteboard)My problem is this... if two users try to do a different action on the object at the same time, i.e. one deletes it the other moves it, what happens?
Right now- in just letting the messages go through, it gets all out of whack.One idea was to have a serverside control which resolves who has control of the object, and nothing is allowed to happen clientside until that conflict is resolved. Conflict resolution can be based on a first-come, first-serve basis.Even though this can happen very fast, the small delay (~50-300ms) is unacceptable since movement must be instantaneous on the client side. For example, instead of manipulating objects, think of a pen. For there to be a delay till they've already started drawing... not good!
Another idea was to have a "request control" button, which asks the serverside extension for control.... same idea as before, but now they aren't frustrated by the initial delay of pen drawing. This is also not so good though since they must hit that button till they can do anything, and this whiteboard is really meant for kids..
View 3 Replies
Similar Posts:
May 20, 2010
in this how can rotate car when it goes to collied with the track side.
package
{
import flash.display.MovieClip;
import flash.events.Event;[code]............
View 1 Replies
Jul 15, 2009
I'm having a strange problem w/ race conditions when using attachmovie. I have a class linked to a movie clip that I'm attaching to the stage. The class is fired off when the movie clip is attached but also other classes are getting loaded at the same time while the movie clips is attached. Even though the other classes are called after the movieclip is attached, they are getting loaded faster and therefor the class linked to the attached movie clip cannot access their functions. I'm looking for a listener that will fire off an event ONLY when the attached movieclip is fully loaded but I can't seem to find any examples of associating a listener to a attachmovie method.
View 1 Replies
Jul 15, 2009
I'm having a strange problem w/ race conditions when using attachmovie.I have a class linked to a movie clip that I'm attaching to the stage.The class is fired off when the movie clip is attached but also other classes are getting loaded at the same time while the movie clips is attached.Even though the other classes are called after the movieclip is attached,they are getting loaded faster and therefor the class linked to the attached movie clip cannot access their functions.
I'm looking for a listener that will fire off an event ONLY when the attached movieclip is fully loaded but I can't seem to find any examples of associating a listener to a attachmovie method.
View 1 Replies
May 24, 2010
i want to develop AI car(opponent) in car race game what should be my direction to develop them with less complexity because i don't have any idea. because the player car is moving on the scrolling track plz suggest me should i have to use relative motion or way point concept but that should also be change on the scrolling track (i.e. player car movement)
View 3 Replies
Nov 5, 2009
I want to put a whiteboard on my website so users can draw something and then save the image to the server containing the drawing. Are you aware of any open source/free already made whiteboard application out there ? I also need the save image function.
View 2 Replies
Jun 3, 2010
Is there any opensource Flash+PHP multyuser whiteboard?
View 4 Replies
Aug 8, 2011
How can I make a Flash Application that can be shared? Shared in the sense of like a paint box. If someone is painting there then the painting must be shown to all users. This means each user can write and edit in the paint box at the same time..
View 1 Replies
May 13, 2008
Anyone know of an open source whiteboard in Flash? Something similar t
View 6 Replies
Sep 9, 2009
I am new to Flash. I downloaded the whiteboard component and it is really cool. I am trying to include a button to the component so that upon button click all the drawings like rectangle, line, arrow etc., must get cleared.
View 1 Replies
Nov 3, 2011
I manage a number of academic computer labs, three of which are Mac OS X 10.5.8 units with Adobe Flash CS5 installed. Users log in using AD credentials and the client computers are managed with settings in OD Workgroup Manager (MCX records). The AD plugin is set to not force local home directories and users' home directories are located on network storage. ~/Library/Caches/* has been redirected locally, but no other folders are redirected.
Users have been reporting an issue where Flash sometimes appears to freeze during loading. I've been told this has been happening for about two semesters, but I was not aware of the issue until today. It sounds like students have been powering off the machines and logging back in, and hoping Flash will work on that attempt. When a 'freeze' is encountered the Flash splash screen appears and the status below the "Adobe Flash Professional CS5" text states it is "Copying First Run Files..." Checking the console, I can see that Flash appears to be attempting to access files, but is encountering issues. Dozens of times, I see errors like the following:
11/3/11 3:17:41 PM /Applications/Adobe Flash CS5/Adobe Flash CS5.app/Contents/MacOS/Adobe Flash CS5[2801] Allocator race detected: transaction is not verified for -112/2 - Library/Application Support/Adobe/Flash CS5/en_US/Configuration/ProcScripts/svg/LineBrushArt10.svg [code]....
Messages like these, but listing different files, have been going on since I launched Flash at 11/3/11 3:06 PM.
View 2 Replies
May 2, 2010
I have prepared a CUSTOM WHITEBOARD. This whiteboard is shared by two clients. They BOTH can draw on the board using TOOLS in the WHITEBOARD PANEL SET of the application. When someone DRAWS I do following actions:
1: Capture the WHITEBOARD FULL AREA/CANVAS using jpgEncoder().
2: Then I send this BYTEARRAY to the FMS server as Remote Shared Object.
3: The client then draws that RSO onto the WHITEBOARD.
Pretty simple though.
BUT, I am having synchronization ISSUES. The issues are as follows:
Issue 1: Image updates with no synchronization and seems to be zig-zag/random when they both draw at a normal speed.
View 2 Replies
Sep 12, 2009
I have a BD return by PHP without problem : I have "all_good" and "no_good" If the variable change my condition don't change ..... why
[Code]....
View 3 Replies
Jun 17, 2009
How do I create a simple drawing board/whiteboard functionality in Flex ?
View 2 Replies
Dec 7, 2009
I am creating an application that will allow users to model system information by allowing them to Drag and Drop objects from a Flex Tree into some sort of canvas/grid ie: like a whiteboard application eg: Visio/MS Powerpoint etc. The application requires the following functionality:
Drag and drop items from a Tree to some sort of canvas/grid Move items within the canvas/grid Delete items from the canvas/grid Resize items in the canvas/grid
Save the position of the items to a database Has good performance in terms of rendering components with images I am not sure which Flex component is best suited to the canvas/grid. I was thinking of using either:
Datagrid or (can't drag/drop to cells easily though) Grid or (can drop to cells via gridrow/griditems mxml tags) TileList or (problem with this is that it rearranges all items when you move 1 item) some other list? I think the grid would suite my purposes the best as it would enforce objects to be placed within a gridrow/griditem.
View 1 Replies
Nov 19, 2009
I think Flash/Flex is a good aproach for this case.We need to build some like the following
View 2 Replies
Jul 27, 2005
I am looking for a tutorial called Senocular's 3D car race tutorial
View 1 Replies
Oct 13, 2009
Is flash 2.0 able to access two computers at once? I was thinking of making a system that could work like a text instant messager and the ability to use a very primitive drawing system to send other people pictures. If anyone knows if it can be done could you point me in the direction to start?
View 1 Replies
May 4, 2009
I am pretty good with C++, very good with PHP and MySQL, CSS, HTML, and JavaScript.What I want to do is make an online game where 2 people can play against each other online They will be able to pick their uniforms which will be saved to a MySQL database, and the uniforms will show the color they picked when they play online.Now I just want to know where to get started her
View 1 Replies
Aug 28, 2010
i've been looking in to making a multiplayer flash game.I downloaded and installed SmartfoxserverPRO with all the example files which are really awesome. I understand the idea/concept for those simple games like tic tac toe.So i'm here looking for information on making savable data to start off simple maybe just being able to save and store records for a tic tac toe game.
View 3 Replies
Apr 15, 2012
I am currently thinking about the best multi-platform language to build a multiplayer app with, and I was just wondering if anyone knows if AIR supports multiplayer locally between devices i.e over a LAN or bluetooth? Would I need to run some aspects of the game via a server?
Not to give too much away (of the game idea) but it would be similar to a "Simon" type game, with the only info being passed to each device either a score/amount of moves to beat or other simple piece of data.
View 2 Replies
May 12, 2011
Is there any free Open Source Multiplayer Flash Game (like Happyfarm... in facebook) that I can use and build my own small network?What I'm looking for is the source code of some Multiplayer Flash Game (like http:[url]....for example)I do not know to much thing to talk about it, but if there is some, I hope:
+The game can run without any other system (not a plug-in or mod)
+If there is server-slide script, it should be PHP
+There is an English document for deverloper
View 1 Replies
Jul 2, 2011
I have an idea to create a multiplayer online card game and I prefer to use flash, like yahoo chess(it is not a card game), zynga poker etc.
View 2 Replies
Nov 25, 2011
this question has been bugging me for a year. Basically I'm trying to replicate Club Penguin (multi-player game for kids who are their own penguin who play other penguins who are other kids online). So far Ive got it working: [URL]
but it creates a horrendous cache of XML as it simply sends and receives an xml file between players (poleing I believe). I want to convert this to a socket connection. However I really want to know: -do you need your own webserver (I have an old PC I can convert to one fine), but how do I set it up (php, Red5?) -the examples I have refer to old versions of Flah and sometimes use the (legendary Senoculars) class KeyObject.as So ~ I know what I want to do Ive got half way there anybody know the other half?
View 4 Replies
Nov 18, 2003
I am in the progress of making a game....its based off of the TV Show, Charmed. I want to try and make it an online multiplayer game so three people can play online together as a team. Is there any possible way I can do this?
View 12 Replies
Dec 17, 2004
I wont to make a multiplayer game and the problem is that i don't know how to make it multiplayer.
View 14 Replies
Mar 21, 2007
I think it's time I tried making a Flash project where multiple visitors to a website interact with one another. (I think this is called remoting, but I'm really not sure.) I'm currently deep into AS3, but would like to know how to implement an online multiplayer (or multi-user, I guess) system in both AS3 and AS2.
Where's a good place to get started? In particular, what online resources are available for someone interested in these technologies? And how do I test what I create- preferably, on one machine?
View 1 Replies
Nov 18, 2003
I am in the progress of making a game....its based off of the TV Show, Charmed. I want to try and make it an online multiplayer game so three people can play online together as a team. Is there any possible way I can do this? If there is.
View 12 Replies
Dec 17, 2004
i wont to make a multiplayer game and the problem is thet i dont know how to make it multiplayer
View 14 Replies
Mar 31, 2010
I want to make a simple game so that I can play against my friends at school. The school uses macs. Also if you can't make online games with flash what can I use. Also can they be 3-d if I eventually get good at making games?
View 4 Replies