Actionscript :: AIR3 Native Process Will Not Start In Release Build?
Nov 2, 2011
Currently I am building an application that launches crtmpd (a rtmp server written in C++).
Whenever I launch the application from within Flash Builder it works great, if I install a release build from an air file the process.start() returns a generic "could not start process" error.
The crtmpserver.exe is stored in applicationDirectory and the config file is kept in applicationStorageDirectoy.
So I've moved it to the native storage directory. But the problem persists. I've found the following though:
startupInfo = new NativeProcessStartupInfo();
startupInfo.executable = binFile;
processArgs = new Vector.<String>();
processArgs.push(luaFile.nativePath);
startupInfo.arguments = processArgs;
In the IDE after this startupInfo is setup correctly. On client machines all properties of startupInfo are still null.
View 2 Replies
Similar Posts:
Aug 30, 2011
I am trying to make an AIR application, that needs to pass an image (.jpg/.png) to a C++ app, that does number crunching.(this needs to be done very often, like every 2-3 seconds.) I've managed to pass the image by saving it to disk via AIR, then opening this file with the C++ program (and passing the filename as an argument to the C++ program), but this method is really slow, because it involves lots of disk I/O.
Is there a method to send an image directly to a native process?
Edit: There is a good Flash-C++ communication example at [URL] using sockets. The big problem with this method is, that some firewall settings can block the communication (i get a windows firewall warning, when i start the app).
View 1 Replies
Sep 10, 2011
I see a lot of tutorials out there for the flex environment but none for Adobe Flash Cs5. Not even when it is using the AIR build.How exactly does one communicate with a native process using flash or air?
View 4 Replies
Sep 6, 2011
It could run a native process in an adobe air application by enable extendedDesktop.
But if create an flex library, does it support running an native process. If yes, how to configure it?
View 2 Replies
Jun 18, 2010
I would like to be able to operate a scanner from my AIR application. Since there's no support for this natively, I'm trying to use the NativeProcess class to start a jar file that can run the scanner. The Java code is using the JTwain library to operate the scanner. The Java application runs fine by itself, and the AIR application can start and communicate with the Java application. The problem seems to be that any time I attempt to use a function from JTwain (which relies on the JTwain.dll), the application dies IF AIR STARTED IT.[code]
View 2 Replies
Nov 16, 2011
I am writing an AIR application through which I want to open a native process 'wordpad.exe' and write data generated in the AIR application to a document.
My code is as follows:
import flash.desktop.*;
import flash.errors.*;
import flash.events.*;
[Code].....
The wordpad application opens with a blank document but it generates an error Error#2044: Unhandled IOErrorEvent:.text=Error #3128: Error while writing data to NativeProcess.standardInput.
View 1 Replies
Jul 30, 2011
I've been trying to use ffmpeg with an air app that I made in flash cs5.5. I have it so that ffmpeg.exe needs to be located in the directory where the air app is installed (File.applicationDirectory.nativePath). For some reason this only works when I run the program through the flash dev environment. But when I actually deploy the app, I get error #3219:The NativeProcess could not be started. ffmpeg.exe is located in the same folder.
I actually don't know the full message that it gives...not sure what the property of the error that will give me that message when I catch it. All I know is that it's error 3219. Would this be a profile issue? If i didn't have the extended desktop desktop profile, I don't think I would be able to get this error, I'd get a profiling error wouldn't I? I've disabled user access control as well...I'm using windows 7.
View 2 Replies
Dec 20, 2011
I am looking for utility/helper classes for Adobe AIR/actionscript 3.0 file system and native process utilization. Could someone point me to opensource library projects specific to Adobe AIR..
View 2 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
Jan 10, 2011
I'm using HaXe to make a few simple SWFs for RTMP video streaming. Everything is working great, but what I'd really like to do is tokenize a few properties so that the SWFs are compiled with environment specific properties ALA Ant.
[Code]...
I've poked around in documentation and on forum posts and can't see how to do this, though I'm sure it's possible. anyone point me in the right direction?
Note: I considered using flashvars and managing the address in the web application, but that seems less efficient. If that's the better way to handle this please explain why.
View 1 Replies
Feb 13, 2012
My issue is when I try to compile my .ipa using the adt tool (through Terminal) I get the following error:
ld: absolute addressing (perhaps -mdynamic-no-pic) used in -[MediaCaptureViewController showCamera] from /var/folders/NP/NPNiEhuUEwGiPRg0Bym7Sk+++TI/-Tmp-/97f7f1f9-6d5e-4486-9ba0- 147ff50f7157/libcom.luxson.mediacapture.a(MediaCaptureViewController.o) not allowed in slidable image. Use '-read_only_relocs suppress' to enable text relocs
Compilation failed while executing : ld64
The iOS native extension pops up an instance of the UIImagePickerController and it works apart from the following line of code, which causes the above adt error:
cam.mediaTypes = [NSArray arrayWithObject:(NSString *)kUTTypeMovie];
I have included the MobileCoreServices framework in my project and added the following to my header file:
#import <MobileCoreServices/MobileCoreServices.h>
I'm using Xcode 4.2.Project set to build with the following settings:
iOS Deployment Target: iOS 4.3
Enable Linking With Shared Libraties: No
View 1 Replies
Feb 8, 2010
I've noticed that, recently, builds in FlexBuilder have been taking much, much longer than they used to (30 or 40 seconds, as opposed to 3 or 4). What is the simplest way of profiling these builds to figure out what is taking so much time?
View 4 Replies
Sep 7, 2011
I have an xml that i want to be able to be edited after the release build, the xml is not included when i export the release build but the program still functions properly. How can I make the xml visible?
View 0 Replies
Jun 28, 2010
I have a Flex AIR2 application which uses native process to run CMD.exe. Application running fine on WinXP, Win R 2008 server. But not running on VISTA 64 bit OS. Flex not able to run CMD.exe when application installed in C:Program Files (x86). When I run application as Administrator mode it is working fine. Below is my code, I want to start cmd.exe as Administrator.
[Code]...
View 1 Replies
Oct 14, 2011
This is a bit of a crazy question, but does anyone out there know how to go about writing an extra compile step into the flex compiler. The idea would be that the MXML compiler would knock out the MXML to AS3 code as it does, but we have an extra step between the AS3 code and the bytecode.
The reason why I ask, is that this would be a great step to handle things like metadata tags to make code changes. A common practice in a lot of frameworks is to have an [Inject] tag before a variable. I.e. [Inject] public var user:IUser.
[Code]...
View 2 Replies
Jun 24, 2010
I am using Flash Builder 4. In the Flex Compiler option, I checked 'Generate HTML wrapper file', and then added some text to the alternateContent variable in the auto generated index.template.html wrapper found in html-template folder. For Run/debug settings I have the src/index.html file set as the file to be launched. In the bin-debug folder, the index.html incorporates the content of the html wrapper, and when I run the app in debug mode it behaves as I would expect. However, when I export a release build, the index.html file doesn't incorporate the content of the html wrapper file, and therefore doesn't do the check for a valid version of Flash Player. Do I have to manually copy the index.html file from bin-debug to bin-release each time I export a release build (this does seem to work)
View 1 Replies
Nov 28, 2010
On Windows XP 32bits, I find it strange that the FB4 Export Release Build doesn't have the option to export as EXE in contrast to the one I have in W7 64bit?
View 1 Replies
Apr 7, 2011
Which mxmlc attributes do I need to replicate the behaviour of Flash Builder 4's Export Release Build?debug=false and optimize=true seems obvious, but doesn't reduce the swf's file size as FB4's Export Release Build does.
View 1 Replies
May 26, 2011
I have a very stupid problem. I'm using Flash Builder (Flex) 4. My application displays a video using VideoDisplay component and some images. The video filename is always named video.mp4 and the images are inside a folder called "real/". The video file and the real folder are in the SAME location of the .swf built.
The video source in the code is set like this: videoDisplay.source = 'video.mp4';
and the images, loaded dynamically, are like:
img.source = 'real/' + imageFilename;
[Code]...
View 1 Replies
May 19, 2010
I opened up an old project in Flex Builder 3 which runs on Adobe AIR 1.0. I believe it was originally written in Flex Builder 2. When I try to run the Adobe Air application, nothing happens. When I try to export a release build, I get this error: If I change the main-app.xml file to use the 1.5 version of the namespace, it builds fine. Unfortunately, the clients environment runs on 1.0. Ideas?
View 2 Replies
Jul 20, 2010
I have my own conf.xml file (src/conf/conf.xml) consists some properties (alphas, colors,etc). When i try to export release build, I see list of files which not includes that file.Why? When i run my application at debug it file places in "bin-debug" folder.
View 1 Replies
May 12, 2011
So I was working normally, and accidentally hit the profiling button after that, I later decided to export my current.air.URL...Why would the export button disappear all the sudden? I cannot find it at all. It seems rather interesting not being able to export a .air and provide an installer.
View 1 Replies
Sep 6, 2011
I've a flex application which has actionscript file, images. When i run this in adobe flash builder, everything works. When i export it as a release build and run in other file, swf does not show images and interactivity of flex components is also lost.Is there a specific way to embed images?Here is image code,
View 1 Replies
Aug 15, 2010
I tried to built a project with AS3 only in Flex. When I run the project in flex, everything looks fine,but when I export the release build, the images that are supposed to be added are gone.
[Code]...
View 1 Replies
Dec 8, 2010
When i make a release build the folder is populated with a number of swfs. Are all these swfs necessary?Is there a option to generate one swf?
EDIT: The files I see are:
framework_4.5.0.18623.swf
osmf_1.0.0.16316.swf
rpc_4.5.0.18623.swf[code].....
View 2 Replies
May 10, 2011
I'm having an issue when trying to export the release build of my AIR application in Flash Builder 4.5. After choosing the key to sign the package and clicking finish to complete the export, it errors saying that "Error occurred while saving the project settings: "default" build target cannot be found for the selected project." I've included the error message output to the log in the .metadata folder.
!ENTRY com.adobe.flexbuilder.project 4 43 2011-05-10 15:56:11.432
!MESSAGE Failed to get build target settings: default
!STACK 0
java.lang.Exception
[Code].....
I have tried what J_A_X has recommended. Unfortunately none of those work. It seems to be a problem somewhere within the project settings. We have also tried running the export release build for this project on different machines with fresh installs of flash builder, but the same error message is produced every time. We've looked through so many settings it may come down to having to create a new project and copy all the code into the new application.
View 2 Replies
Nov 25, 2011
All I want, is to have a button (play_but) to start the process. I want to get rid of the enter frame business. I tried, but I had to click every time the button to draw the line. I just want to click the button once and have my line plotted.
var xspeed:Number = 2;
var yspeed:Number = -2;
var xpos:Number = 0;
var ypos:Number = stage.stageHeight;
graphics.lineStyle (2, 0xffffff);
[Code] .....
View 3 Replies
Apr 26, 2010
I'm loading a swf-file from my program written in as3 using the flash.display.Loader class. When I'm using the debug build configuration in FlashDevelop everything works fine. But when I'm using the release build configuration the program freezes for around two seconds efter the loader sends the progress events and before sending the complete event.
This is my program:
package
{
import flash.display.Loader;
import flash.display.Sprite;
[Code]....
After around two seconds where the program is frozen the line Completed on frame: 2 is added and the 'On frame X' counter starts ticking up. Debug build produces the same output but without the freeze.
Not all swf-files I have tried loading triggers the problem. The size of the file doesn't seem to affect anything. I have tried compiling and running on another computer with the same result.
Edit: I noticed that if the program is compiled with debug=true the flash player takes around two seconds to start, the same length of time the flash player is frozen when debug=false.
View 1 Replies
Jun 4, 2010
I have an AIR application i'm trying to release with flexbuilder. Launching application has no problem ... bin-debug dir is correctly filled with my files. But when i want to create the AIR file (export release fuild), AIR files content view is empty and bin-debug directory is never filled.
View 4 Replies
Jan 19, 2011
I made an application in Flex 4. When I export a release build, it generates a whole bunch of files. (including the skins used, etc, etc.)How do I make those plentiful files except the container HTML file, get compiled into a single SWF file?E.g.My folder should only contain:
my_app.swf
my_app.html
But my_app.swf should still run like a normal Flex 4 app, only this time, all the files, images, skins, etc are inside that one SWF file.
View 2 Replies