C++ :: Pass An Image To The Native Process?

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


Similar Posts:


ActionScript 3.0 :: Communicate With A Native Process?

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

Actionscript 3 :: Run A Native Process In Flex Library?

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

Flex :: Running A Java Program With A .dll From Adobe AIR's Native Process

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

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

Flash :: Error Writing Data To A Native Process From An Air Application

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

Actionscript :: Adobe Air Native Process Only Works In The Flash Environment But When Deployed Get Error #3219

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

Flash - File System, Native Process Utility Libraries For Adobe AIR/flex Applications?

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

Flex - Runing Native Process In Admin Mode In FLEX AIR 2 In Vista 6 Bit?

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

ActionScript 3.0 :: Pass Variables From Flash To Php To Process And Get Back The Result To Flash

Oct 17, 2009

How to pass variables from flash to php to process and get back the result to flash

this is th php code
<?
$money = $_POST["fname"];
$persent = $_POST["age"];

[Code]......

View 5 Replies

Actionscript 3 :: Speeding Up The Image Loading Process?

Mar 6, 2012

How can we speed up the process of loading hundred's of images in as3? it seams to be taking a very long time to load 100's of images.

View 7 Replies

ActionScript 2.0 :: Incorporate In A Xml Based Slideshow(slideshow.zip) To Show Image Loading Process?

Feb 6, 2008

I have created a pie preloader(preloader.zip) which is working fine. Same preloader I am trying to incorporate in a xml based slideshow(slideshow.zip) to show image loading process but some how I got stuck. I am new to flash. Suggestions are welcome.

1. How to solve the problem of preloader2. Is it possible to integrate everything in a movie clip (including AS). I mean no AS on main time line but inside the movie clip. It would be much easier then to to create multiple slideshows by duplicating mc and changing the xml file.

View 1 Replies

Flex :: How To Pass ID Of Image Currently Clicked

Nov 10, 2009

My application is going to have multiple images..
<mx:Image id="img1" source="@Embed(source='assets/mrute1.jpg')"
mouseDown="mouseMoveHandler(event);"/>
<mx:Image id="img2" source="@Embed(source='assets/mrute2.jpg')"
mouseDown="mouseMoveHandler(event);"/>
<mx:Image id="img3" source="@Embed(source='assets/mrute3.jpg')"
mouseDown="mouseMoveHandler(event);"/>

Then on the function I want to be able to know the id of the image that was currently being clicked. How do i do that?
mouseMoveHandler(event, ??)

View 2 Replies

AS3 :: Php - Pass Dynamic Image From Flex?

Nov 1, 2011

Need to:1) Create bytearray from BitmapData in Flex2) Pass this bytearray (or maybe converted to string with b64) to php script3) Convert this bytearray again to image in PHP and show it.

View 1 Replies

C# :: Asp.net - Pass Image From A Flex Application To A Asp Net C# Web Service?

Apr 18, 2011

I want to store images from the flex application to a asp net web service and at a later point will be sending these images back to flex application . Can you please give a example web method in c# or suggest a website to read about how to do this.

View 1 Replies

ActionScript 3.0 :: Pass Image Src From Js On HTML To Flash?

Nov 16, 2009

i'm trying to pass image src from js on my html to flashe from some reason it's not working...

var result:Object = call("progress");
function call(func:String):Object
{

[code]....

View 2 Replies

ActionScript 2.0 :: Pass The Properties Into OnLoadComplete Even Of The Image?

May 8, 2008

i have and xml that passes these image details to be loaded into flash. image path, x,y,heigt,width, rotation i use moviecliploader and attachemovies with a for loop to load the images. but find difficult set images there respected property after onLoadComplete even if the movieclip loader as i can pass the approriate values in to movies.how to pass the properties into onLoadComplete even of the image

View 3 Replies

ActionScript 3.0 :: Pass ByteArray Image To PHP And A Variable At Same Time

Feb 4, 2009

I pass an image ByteArray to PHP.Along with the image ByteArray I would also like to pass a single string variable to the same PHP script.[code]

View 2 Replies

ActionScript 3.0 :: Pass As XMLList, Or Parse And Pass As An Object?

Oct 28, 2009

I'm having to pass data (originally read via an XML file loaded by the parent class) to a child class upon instantiation, and I can't decide which is the better method.I could parse the XML in the parent and throw the data into an Object and pass that object to the child class....or just pass the part it needs as an XMLList and let the child class do the parsing.Seems like a trivial decision, yes, but I'm not sure of longer-term implications.

View 3 Replies

ActionScript 2.0 :: Pass A Variable As Well And Can't Seem To Escape To Pass It?

Apr 6, 2008

Trying to pass a variable as well and cant seem to escape to pass it. How can I pass using window.open as such: Trying to pass (pid) all i get back is (pid) and not actual pid.How to on a jscommand?

Code:
something.onRelease = function () {
var jscommand:String = "window.open('http://www.someform.php?proj= + (pid)','win','height=200,width=300,toolbar=no,scrollbars=yes');"; getURL("javascript:" + jscommand + " void(0);"); }

I can do a standard getUrl("http://www.someform.php?proj=" + (pid), "_blank"); works fine but no control over window properties.

View 1 Replies

OSX :: How To Put Native Window Over Menubar

Jan 3, 2012

I'm developing a multi monitor fullscreen application with Adobe Air 2.6. I can create a window for every monitor, and put those windows to fullscreen.
theWindow.stage.displayState = StageDisplayState.FULL_SCREEN_INTERACTIVE;
The problem comes when interacting with those windows. If I click the window on the main monitor (the one with the dock and menu bar) no problem, but when I click any other window the system menu bar becomes visible. I've tried resizing the main window to match the monitor size and moving it to a negative coordinate but it always stays behind the bar. Is it possible to do this in Air?

View 1 Replies

Ios :: Using Flash Inside A Native App?

Apr 2, 2012

I'm working on a native Objective-C iOS app and I'm wondering if it is possible to embed an animation created in Flash into my app. The animation doesn't have to be interactive, all I need is a couple of animated screens (intro screen, loading screen). Is this posible?

View 2 Replies

ActionScript 3.0 :: Closing A Native Window

Jun 30, 2009

I'm trying to add an event listener to a window that pops up (to the whole window) that will close that window when clicked on. Basically it's your typical about window that would be found in any program by hitting help, then about this program. I am using no chrome on it so I'd like to just be able to click it and have it close.

On a less important note I'd like to center the window on the stage when it pops up. Right now I'm just using the x and w properties to get it close to center on my monitor but obviously that won't work for everyone. Below is the code I've tried. No luck whatsoever. Window pops up but stays up if I click it. Any help as always would be AMAZING!

[Code]...

View 10 Replies

ActionScript 3.0 :: Load Swf In Native Window?

Jul 17, 2011

How do I load an external swf into an external window? I'm using the following code, it works if i add the swf to the original window's stage but not if i add it to the new window's stage.

[Code]...

View 9 Replies

Professional :: Printing From A Native Mobile App?

Dec 3, 2011

I'm on to designing my 3rd app. I have two already in the Android and Apple stores. Fairly simple ideas these were. Now, I've come across a bit of a challenge. I want to design an app that contains a database of text files, many also containing pictures. I'd like to have it where you can view these files on, lets say, the iPad, and then print them wirelessly, or send them to yourself in an email, so they can be printed elsewhere.

I have considered just creating an ebook and selling that on the store, but I don't think apple allows you to print from these books. Has to be in PDF, and having an app would be a much better way of distributing and updating it. My idea is creating something quite siimilar to how Apples 'Pages' works, just without any editing capabilities. Select document and print. Sounds simple enough but I can't find any code or tutorials to help me out with this. What I want to know is... can I add a button, that will open up and use the printing options built into iOS? Is this possible to do in Flash with AS3 or would I need to learn how to use Flash Builder and Flex? Could it possibly be done in InDesign?

View 1 Replies

Actionscript 3 :: AIR SDK: Performance Of SWF Compiled Into IOS Native App

Apr 6, 2012

It's a great thing that it's possible to compile an SWF into iOS native app. I think AIR is now the best option to write e.g. small games or interactive books. Of cause AIR app will be slowler than the same app written on e.g. objective C. The question is how slower AIR app will be. Can simple AIR apps be launched e.g.on iPhone 3G or iPAd 1?

And another question is, can arbitrary flash app be compiled into iOS native app?

View 2 Replies

Flex :: Packaging Air App In Native Install

Feb 22, 2010

I have tried the options given on Adobe Livedocs : adt -package -target native myApp.exe myApp.air, but I keep getting the message "-storetype required". I then try with adt -package -target native -storetype pkcs12 -keystore myCert.pfx myApp.exe myApp.air and get the same message. I have already created the .air file and the .p12 cert file in flexbuilder, and am just pointing to these in the command prompt in the specified places, but the same problem occurs. Any ideas?

View 1 Replies

Actionscript :: Update Native Air Appilication?

May 19, 2010

I created native air 2.0 app. (exe file) how to implement auto update for it?

View 1 Replies

Java :: Package AIR 2 Native Installer?

Jun 16, 2010

I have made an AIR 2.0 app that uses NativeProcess so it needs to be packaged as a native installer (.exe) rather than a .air file.

I first tried using Package Assistant but I kept getting an error telling me it cannot load keystore file. so I tried using the command line

[Code]...

View 1 Replies

Actionscript 3 :: Create A Native Installer In AIR?

Dec 29, 2010

I want to create a native installer for windows, mac and linux machines, Instead of .air file I want to create .exe , .dmg and .deb files respectively. So that i can enable the application to be installed natively.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved