Adobe AIR application to receive back events from native Windows application - apache-flex

I'm trying to develop a simple mxml Flex application to start Skype from the AIR/Flashplayer runtime. Is it possible to get back events from a native Windows application? In the simple example of Skype, the OS returns control to the Flex app when Skype exits. But what about native applications which have their own event model and wants to communicate with the Flex event model. For example, a Face detection system which shows "Hello" on a Flex app when the camera detects a face. Can this be done in the current Flex framework?

You'll have to use a NativeProcess to get data / info back from a native windows application.

Related

desktop application data send to web application

Work on .net application my application has one desktop(windows form) and web application(MVC5), in desktop application have one button, client on button want to display one image in my web application.
Is there any idea how to do ?
What about using SignalR.
You can make connection between your Desktop App and Web App
then you can call any method you need from Desktop to Web and vice versa.
ASP.NET SignalR is a library for ASP.NET developers that simplifies
the process of adding real-time web functionality to applications.
Real-time web functionality is the ability to have server code push
content to connected clients instantly as it becomes available, rather
than having the server wait for a client to request new data
Read more here: Asp.net SignalR.
Through the webapi it will works.

Can we convert standalone JavaFX application to WAR?

We've a stand alone application developed using JavaFX technology. Now we have a requirement to make it accessible using browser from remote machines(basically a web-app). I'm just wondering if there is any way to convert the said JavaFX application to war file so that it can be deployed on the web server. Any pointers would be appreciated.
A JavaFX based Application is an application that is running on a desktop. It's no server application that needs an application container or something. Therefore you should not build a WAR file.
By default you can't run JavaFX applications in a browser. You could use applet technology or webstart but this is a workflow that will create problems - wrong JRE version on client, etc. (Java Applets - is it a wrong choice today?).
The best way to build and share a JavaFX application is by creating an executable JAR or a native application / bundle (http://code.makery.ch/library/javafx-8-tutorial/part7/).
There are some prototypes that can be used to render JavaFX in the browser (by using HTML5 Canvas) but I would not use

Server-side Flex/AIR app possible?

Are there any clean ways to implement a server-side Flex/AIR app? The basic idea is that a large Flex app would run off a server. A user would then see client-side only the current view of the Flex app and be able to interact with it. The interactions would be sent to the server, and it would process them accordingly. The overall goal of this is to not force the client to download a very large Flex app just to use the application.
NO. And this is a ridiculous idea. Why wouldn't you just use Flashplayer as a delivery device?
You will bog down the server. No way you'd want to manage flex app instances. NO. do not do this. What, you gonna give each person an RDP to a virtual server running it's own flex app? hahahahahahah
if you need collaboration, setup an RTMP server.

Can we make facebook application using Adobe Air

I know that we can make application using Adobe air that will run on mobile, desktop and web environments. Can we deploy same application on facebook? like we do with other flash applications.
Thanks
I know that we can make application
using Adobe air that will run on
mobile, desktop and web environments.
That is not accurate. Adobe AIR applications will not run in a web (AKA Browser) based environment. You can reuse the code you use to create an Adobe AIR application--often very easily--to also create a browser based application. But, that is not the same as running an Adobe AIR Application in a web environment.
Can we deploy same application on
facebook? like we do with other flash
applications.
Well, I do not expect you'd be able to deploy an AIR based application to facebook; as facebook is a web site. But, yes you can deploy a Flash Application (SWF) to Facebook.

which is better for desktop application?

i'm new to creating desktop applications. I've a working site in php with mysql support. I want to convert this site into a desktop application. Is Adobe AIR or Adobe Flex better?
can i use php as such in both AIR and Flex? or should i convert them to xml or something which it uses?
AIR is Flex on the desktop... So... I suppose you mean whether you can use AIR with PHP? AIR/Flex should be able to handle whatever communication protocol you're using on the server.
Saying 'should i convert them to xml or something' is a bit nebulous.
I guess what you really asking is: Should I rewrite my application entirely in Adobe technologies or Can I/Should I integrate it with my existing PHP code.
I would recommend you expose the existing PHP functionality as RESTful web services and redo the user interface in Adobe AIR. That way you can leverage the existing site to make the desktop application. There is a ton of information of building applications like this, just research REST, SOA (service oriented architecture), SAAS (Software as a Service).
Adobe AIR/Flex is fine, especially if you want it to work on multiple operating systems, but the Application won't necessary have the looking and feel of its host desktop environment.
Adobe AIR is a runtime that adds to the capabilities of Adobe Flash Player to allow the creation of desktop applications.
Adobe Flex is a framework to build rich user interfaces. Flex applications are supported both in Flash Player and AIR.
This cannot be a question of one or the other. Flex can be used together with AIR. If you want a desktop app that allows you to use Adobe's Flash Platform technologies, definitely use AIR. If you want a set of pre-built UI controls to use in that AIR app, use Flex too!
You can communicate with PHP on your server in both Flash Player and AIR. PHP cannot be run directly in AIR. If you want the application to be entirely self-contained with no server, then you can't use PHP.

Resources