Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > AIR (Apollo)

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-23-2009, 12:52 AM   #1
Cyanide
Registered User
 
Join Date: May 2003
Posts: 76
Default Can AIR do Client/Server?

I'm in the process of designing a new application, and I'm interested in using AIR to do it because I am already very familiar with AS and adobe's products. What I want to know is, can Air support a client/server architecture without any support from back-end stuff like Cold Fusion or PHP? I want somebody to be able to run this app on their desktop, and have multiple other users connect to them, and be able to send data (asynchronously) back and forth. I also want to save data sent by clients to the hard drive on the server machine.

Basically I want to know if Adobe has finally taken the Flash/AS framework and given it some real power, or are we still playing with safety scissors?

Thanks in advance.
Cyanide is offline   Reply With Quote
Old 04-23-2009, 09:37 AM   #2
kukoc
Registered User
 
Join Date: Mar 2008
Posts: 11
Default

i think it is possible. ofcourse without a server everybody need to have public ip or be in the same lan.
so in my opinion doing things with server is beter becouse everybody can connect eachother even under the NAT.

well. there is something like SocketMonitor class which probably is for reciving requests of connection. so im pretty sure that connection p2p using AIR is possible (i've never tried that).

second part is easy to do. just send the data by POST using http connection.
but there are some security restrictions:
"The POST operation must be performed in response to a user-initiated action, such as a mouse click or key press."
kukoc is offline   Reply With Quote
Old 04-23-2009, 12:51 PM   #3
evride
2006 Man Of The Year
 
evride's Avatar
 
Join Date: Mar 2007
Posts: 880
Default

I havent used the SocketMonitor but I'm pretty certain it will not allow what you wanna do. I would suggest creating a windows service or something with C#, C++, or VB and have that act as the server for all computers to connect to (even the localhost). You would also have to create your own installer that would create shortcuts to the service only and then after its started start the AIR app.
__________________
I've curiosity on my side.
evride is offline   Reply With Quote
Old 10-31-2009, 01:02 PM   #4
GuyFawkes
Member
 
Join Date: Oct 2007
Posts: 67
Default

You should be able to do what your talking about using binary sockets. Since its an Air application you are creating you don't need to worry about security issues. I'm in the process of creating an irc client in air and working with the binary sockets in as3 so far has been pretty straight forward.
GuyFawkes is offline   Reply With Quote
Old 11-06-2009, 09:50 PM   #5
MZDisaster
Registered User
 
Join Date: Jul 2009
Posts: 12
Default

i don't know any thing about soket connection,where can i get a socket server application?
MZDisaster is offline   Reply With Quote
Reply


Thread Tools
Display Modes 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
exe installer for AIR runtime and program evride AIR (Apollo) 1 09-14-2009 10:15 PM
How to run Adobe AIR application without installing Adobe AIR tarjinder80 AIR (Apollo) 2 06-25-2009 02:43 PM
Do I need Flash CS4 to create AIR app with AIR 1.5??? CyanBlue AIR (Apollo) 3 03-30-2009 10:57 AM
[CS4] issues with export preview for AIR jet AIR (Apollo) 0 02-19-2009 02:54 AM
Lauch Air app from another air app. saravanan AIR (Apollo) 0 12-12-2008 11:34 AM


All times are GMT. The time now is 12:14 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.