Flex :: Launch EXE (Serproxy) With Adobe AIR?
Jun 8, 2011
I'm developing an AIR application in Flash Builder (Flex) and I needed the option to communicate with a serial port on the computer. I want to be able to launch serproxy.exe when my application runs. I've tried two methods, and neither of them are working for me.First method:
var file:File = File.applicationDirectory.resolvePath("assets/serproxy.exe");
file.openWithDefaultApplication();
This proceeds to open the program, but then immediately closes it. No errors are thrown.Second method:
var file:File = File.applicationDirectory.resolvePath("assets/serproxy.exe");
var nativeProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo();
nativeProcessStartupInfo.executable = file;
[code]....
View 3 Replies
Similar Posts:
Feb 22, 2010
How do i launched Terminal from air 2 passing arguments and command as well?
View 2 Replies
Feb 10, 2012
Is there a way to launch an Adobe Air Application from the browser? I am developing an application that uses webcam, and when the user enter on my site, I need to start this adobe air application installed on the user computer.
View 3 Replies
Mar 21, 2011
Multiple axis creation via MXML works fine:
http:[url]...
But when I'm trying dynamically create horizontal and vertical axis then I'm getting extra axes. I believe this is Adobe bug. How I can fix this behavior?
<?xml version="1.0" encoding="utf-8"?>
<s:Application
minHeight="600"[code].....
View 2 Replies
Apr 3, 2012
I would like to launch a MapMouseEvent via a combination of keyboard short cuts and a mouse click. This is a portion of what I have, and I am not sure if the logic is correct:[code]I have looked at similar examples on this site but still have not reach any solution. I am hoping that someone who knows FLEX can help me to basically launch a function via a series of Keyboard shortcut. For example: Alt + mouse click, or Shift + mouseclick, or something along those lines. The reason is that a simple mouse click already does something else on the screen.
View 1 Replies
Mar 5, 2009
I hope this is the right place to post this I am working on a flex project in AS3 (no mxml).. I unchecked the "Generate Html wrapper file" and when I compile for debug it works fine in my target deployment path (which is called WWW).
my problem is: if my document class is on the root of the sources folder, the generated SWF will be on the root of the Deployment folder (WWW/main.swf) .... but if my document class is inside a package like com.projectName.main.as for example, the generated swf file will be:
[Code]...
View 1 Replies
Jan 15, 2006
So I read through Kirupa's XML/Flash thumbnail gallery tutorial and have since modified some of its actionscripting to display my online design portfolio. How do I make it so that 'LAUNCH PROJECT' is a link? Here is the modified Actionscripting (I have one of each for the 3 sections):
Code:
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;[code]....
As you can see at the bottom of the actionscript, I added a gotoURL action, hoping that simply by making <launch> read <launch action="gotoURL" variables="http:url...> that it would become a link. I, however, have had no such luck. Perhaps I have to add something more. How do I make it so that <launch></launch> has the ability to link to an URL?
View 2 Replies
May 26, 2010
Is it possible to create a command line Abode Air app? I know thats not the intended use of the framework, but I have a lot of utility code written in as3, and I have a need to programatically run some utility functions from another app (not flash). I know I can pass command line parameters to the Air app, but I would like to avoid having a window pop up while the calculations are being made.
View 1 Replies
Jul 20, 2011
I have an Android AIR application (developed with Flex SDK 4.5.1) for which I need to block the Home Button, as the app is used by patients in a hospital without supervision, i.e. it is crucial that they cannot leave the app.
It seems that the only way to hijack the Home Button is to be registered as the default launcher, so that your own app gets the focus when home is pressed. This is easily achieved in the manifest, such as:
[Code]...
View 1 Replies
Sep 6, 2011
I've hit a snag when trying to debug an AIR app using adl.
Although adl successfully launches, the application never appears on screen / starts up.
eg:
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
[Code].....
Update: I've also since uninstalled and reinstalled Flash Builder (and therefore, the AIR SDK), and it still doesn't work. I think this adds weight to the port conflict, but still leaves me unsure of where / how to proceed
Further update Compiling exactly the same codebase to a AIR installer, installing, and running the application works fine. (Ie., a production release). However, the codebase fails to launch with adl. This pretty much confirms the issue as a local machine config problem somewhere with adl, and not an issue with the codebase.
View 5 Replies
May 30, 2009
Almost everything is in the title : Here's what I'd like to do :A nice html page with a php authentication process (http first then http**s** & so on) Launch a flex app which knows (I don't know how (this is the actual question !)) the user has already been authenticated and display his/her stuff he/she has to do for the day (or whatever...).
Of course if someone try to call directly the flex app I would display an "authentication error" message and then redirect to the authentication page.I'm sorry for my English which is perfectible.I was thinking about the session cookie : first authenticate then ass a variable on the server side, something like :
[Code]...
View 3 Replies
Feb 10, 2010
OK my project uses an xml file called Chart-app.xml inside this XML file there is a tag called <version></version> which I keep in the format like: <version>1.2.128</version> I am wondering if I can set it to append to the third number every time I run my project. So if I ran it now it would be 1.2.129, then if i ran it again it would be 1.2.130
View 2 Replies
Mar 15, 2011
I recently installed Adobe Flash Builder 4 in standalone mode on a new installation of Windows 7 x64.I can load and build an existing Flex 4.1 project I have been working on, but when I go to run the project in the browser (Firefox 3.6.15), I get:'Launching BensApp' has encountered a problem. An internal error occurred during: 'Launching BensApp'
Clicking the Details >> button reveals:
java.lang.NullPointerException
My project is creating the SWF and container HTML page as expected, but fails to load the browser.
View 2 Replies
Jul 20, 2010
I am trying to use a custom html wrapper for my application, but when I browse to choose my file it defaults to an absolute path to my custom-wrapper.html file. I want to be able to pass off this project via SVN without any necessary configuration changes, but I'm not sure how to input a relative URL into this configuration dialog. I tried standard back referencing from where my main actionscript application file is in the src directory (i.e. ../../bin-debug/custom-wrapper.html), but that does not work.
I think that I need to use properties like ${DOCUMENT} or ${FLEX_HOME}, but I'm not sure where these properties get defined and which ones come by default in the environment.
View 1 Replies
Nov 10, 2010
The NativeProcess is having a big issue which would hang/sudden stop response after 1-2 mins of running. I wonder if anyone else encounter the same issue?I have tested on Windows 7 (64bit).If there any way to launch an exe and release the Nativeprocess handler from monitoring the process or other method will be appreciate.
View 1 Replies
Mar 17, 2012
I need to display a "What's new in version x.x" Dialog with a checkbox to allow users to not show the dialog on future launches. Can anyone help me by telling me what I need to look up in the api, or possibly an example?
View 1 Replies
Feb 12, 2010
I have some shared code between an Adobe AIR App and an Adobe Flex App.
On one line of this code, the program must behave differently depending on if it is running within the Air runtime, or the Flex runtime.
How can I programmatically detect the difference?
View 1 Replies
Sep 1, 2010
I've been trying to launch a separate Air Application through my current Air Application.Both apps are compiled using the Adobe Air 2.0 SDK. The methods I have found so far involve passing the Publisher ID in addition to the Application ID, but I believe the Publisher ID became redundant past Air 1.5.3? Below is my current implementation whic seems to correctly ascertain the Air Application's version number, but when I try to launch it, nothing seems to happen.
private static var _air:Object;
private static var _loader:Loader;
private static var appID:String = "someOtherAirApplication";[code].....
I have changed the app-config.xml (app descriptor) on the application I am trying to load to allow browser invocation.The version number of the app descriptor of my application I am trying to load is "V1" which the versionDetectCallback seems to pickup. If this is the case I would expect to be able to launch it but this doesn't seem the case.
View 2 Replies
Aug 26, 2010
I want to send a html webpage with my application in installation package,is it possible?
View 1 Replies
Nov 12, 2010
I am building an offline [URL] application in Adobe Flex. Can we use [URL] Rich Text Area fields in the offline application? I do not see the field returned in a query.
View 2 Replies
Nov 12, 2011
I am using an component, and currently have a dataProvider working that is anArrayCollection (have a separate question about how to make this an XML file... but I digress).Variable declaration looks like this:
[Bindable]
private var _dpImageList : ArrayCollection = new ArrayCollection([
{"location" : "path/to/image1.jpg"},
[code]....
View 4 Replies
Jan 22, 2012
I have a drop down list for selecting the titles for a person, I want to employ smooth drop down when i select the drop down menu.
View 1 Replies
Nov 4, 2009
Does anyone know an Actionscript equivalent of the javascript getElementsByClassName.
What I would like to do is add a custom 'stylename' to various components which I can then use to get a collection of these objects and therefore process their visibility property.
The idea is I want to hide various components based on what roles a logged in user has - I just want to make this flexible by adding an array of rolenames to a custom property or use the stylename property on a Canvas or Panel etc.
View 1 Replies
Jan 29, 2010
How to get HTML text from inputed and edited text into Adobe Flex Builder RichTextEditor control? I mean with valid HTML coming from the Flex RichTextEditor component Not Badly formated HTML, with no spaces, with tags not closed! So we have some text edited with RTE a-la
View 2 Replies
Dec 23, 2010
I am in a situation where user gets the cars data from the database based on the selection and displays it in datagrid like below ( for example)
Company Model Year No
GM Chevy 2010 10
GM Chevy 2009 5
GM Pontiac 2010 12
Honda Civic 2009 12
and there will be a link next to datagrid to get Pie chart based on the data displays in the data grid . The pie graph should display grouping by company and the count . I mean for the above example that should give with two pie items , one for GM showing the number of vehicles ( in this case 3 ) and Honda showing the number of vehicles ( in this case 1 ).
I thought of getting it from the database by querying and grouping it .But here the problem is after getting the data above in the datagrid user can able to filter at client end ( By year or model ) and can say get graph . This time that should only display the graph for the data visible in Datagrid .Grouping on database for every operation is becoming expensive. Since we have already data available at client end , is there any way to group it at client ..?
View 2 Replies
Mar 30, 2011
Ive read a ton of online tutorials about this and cant seem to get a definite answer...
View1.mxml
navigator.pushView(views.view2, {response:"BLAH"});
View2.mxml
[code].....
View 2 Replies
Apr 1, 2011
Anyone can point me to free or commercial Ribbon component done for Adobe Flex or Aswing? I seen one at some point but for some reason cant find any now. (Please don't mention minddomo, since it has nothing to do do with my question).
View 2 Replies
Jul 22, 2011
overriding clone() while creating custom events?I read in the Flex cookbook that we need just in case we want to redispatch this event. Does this exactly means that when we want event to be bubbled up the display hierarchy , at that time our custom cloned event should be dispatched and not the Event object.
second - whats the need of metadata tag -
[Event(name="modelEvent", type="com.abc.data.model.ModelEvent")]
public class LoginModel extends EventDispatcher
I understand we need to extend EventDispatcher in case we want to dispatch evnet from class.. but In what cases i would need to specify the MetaData TAg
Third is.. If i write -- "dynamic customEventClass extends Event".. Is there any use of Dynamic i can make?
View 3 Replies
Jan 19, 2012
I have a flex mobile application that I am working on that I am having issues with selecting an image from roll/taking a picture. My application is not tabbed, however one part of it contains a Tabbed View Navigator with tabs across the bottom. Within one of those tabs, I have the ability to upload an image to a webservice that I have created. However, when I select an image or take the picture, it pops back out to the initial splash screen and the application restarts. If I use the component standalone (outside of the tabbed view navigator) it selects the image and uploads without any problem.
[Code]...
View 1 Replies
Jul 14, 2009
Suppose you have an encrypted video file and the associated AES key. Is it possible to play that video in a flex AIR application without saving the decrypted version of the file? How?
View 3 Replies