Can Adobe Air (AS3) use socket.io directly? - actionscript-3

I have a desktop app made with Adobe Air (as3). The app will send and receive notifications over the web with online users.
I'm trying to find a way to connect Adobe Air (as3), not Flex, directly with socket.io, but I found nothing.
Can anybody help?

What are you trying to accomplish? Why not just use NetConnection? Does the server have to use WebSockets?
UPDATE: Here is an implementation of WebSockets in ActionScript.

Related

AS3 - Flash to AIR - ExternalInterface

I have a flash project that I am trying to convert to Adobe AIR to be compatible with steam. The flash project uses ExternalInterface calls into Javascript that embeds the swf that are essential to the app (PHP logins, Facebook interactions, etc).
What are my options for getting around a lack of ExternalInterface when using Adobe AIR?
You need to re-implement all this features (login, social network integration) without ExternalInterface. I think, you need to use Steam API for much part of this.

Flash Air Android transfer data via bluetooth

it is possible to transfer data via bluetooth in Air Flash with as3? I want to make an application that is able to share data like some strings between 2 devices. I search on google, but I don't found same concret thing. I'm waiting for same solutions. Thank you very much!
Not possible using AIR, but it might be possible using an AIR Native Extension (ANE). Basically, you would need to do the data transfer via native Android (Java) and the ANE would be the bridge between the Java and the ActionScript. I searched for an ANE a few weeks ago to do this while scoping out a project and was able to find a few through Google, but I didn't test any of them myself.

Using Bluetooth ANE for Android

I'm relatively new to flash, air and AS3 so I'm sorry if this comes of as a beginners question. I have made an application in AIR to run on windows and communicate with my atmega8 chip through serial communication via serproxy.
Now I want to port that application to android to perform the same basic functions but communicate to the atmega8 via bluetooth. So I created a new Air for android file in Flash CS6 copied my code from my previous application excluding the communication through sockets part and created an apk which ran on an android phone:). It did everything except the communication as expected.
Now I have been trying to implement the as3breeze.com/bluetooth-ane and use it to communicate but I'm not too sure how to go about the whole thing. I have imported the ane through actionscript settings and have implemented the classes but when I try to test I get this error.
The content cannot be loaded because there was a problem loading an extension: Error: Extension namespace is invalid for C:\Users\AppData\Local\Temp\Tmp_ANE_File_Unzipped_Packages\AndroidBluetooth.ane
So after some searching I found posts talking about as3 sdk and flash builder. Do I really need all these things or can I make my bluetooth app work some how with just flash cs6? Also what exactly does my error mean and how can I solve it. Thanks in advance for any help. I have been searching so a solution to this for days and I either get an explanation that does not work or I lack the knowledge to understand.
The path that can't be accessed makes me believe you haven't extracted the ANE (basically you're trying to access a temporary directory). Try extracting the ANE file to somewhere, like My Documents or wherever your flash project is, and include (in the actionscript settings) that path instead.
Hope it helps.

Sound Cloud and FLASH

I'm having troubles with connecting flash and sound cloud api so i would really appriciate if someone with bigger experience could help me out.
Is it possible to stream an audio file through flash without
embedding the sc player? What i mean is accessing the audio file
without any redirects plus granting access through crossdomain.xml.
Is there an up to date documentation how to autenticate an
application, how to get tokens and everything necessary?
Are there any sample solutions or tutorials in flash wich is up to date and really works (what i found was pretty much outdated)?
Thank you for your answer in advance.
Regards:
Gabe
Point 2) How to authenticate with Flash?
If you are building a flash web application, you could use the Javascript SDK to authenticate, then pass the access token back to the flash app via the flash external interface.
There's tons of information on how to authenticate in Javascript. One great walkthrough is on codecademy: http://www.codecademy.com/courses/javascript-intermediate-en-txGOj/0/1

Telephone call from AIR application

Since there is no actionscript API for skype, is there a http call API which I can use for actionscript 3? I want to make telephone calls from AIR app.
Check out http://www.ribbit.com/platform/ Its the only solution I know of, and while I've never worked with it myself I have heard really good things.
Adobe has created a product which allows this:
http://labs.adobe.com/technologies/flashmedia_gateway/
There's always red5phone, if air is backwards compatible with flash.
Twilio Client is a simple JavaScript and Flash based softphone that allows you to send and receive calls from a browser. It should work great from Adobe Air, though I haven't tried it yet.
(I work for Twilio)