I was wondering if there is a framework for determining if an AIR
application has been opened by more than one person on a network?

I have a data file that the AIR application opens and allows editing for.
Works great, however instances of the application all open the same data
file. The chances are slim that more than one person will be accessing that
single data file at a time, but I think I need to allow for detection and
alert a user that someone else is also accessing the data & therefore they
could stomp on each other's changes.

I was going to use a simple XML file and when the app loads, check a value
in the XML. Each time someone opens the app, it checks the number and adds 1
to it & writes to the XML. Each time the app (instance) is quit, it
decrements the number until 0 (no one else is accessing). Not sure if this
is a good approach or not since it's based solely on happening when one
starts the application up and I was going to avoid polling the XML to see if
it changed over time.

So looking for an easy to implement solution to this problem. Perhaps my XML
file thing is the way to go - not sure.

Thanks for any insight,
Eric
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to