ActionScript 3.0 :: AIR Air2 NativeProcess -- Launching Python Scripts?
Jun 2, 2010
I gave up on Python and wrote the stdout interface with a C++ Win32 Console .exe file. It works fine. Bleegghh.
Old post: I'm trying to communicate with a Python script. It is not going well. So, first off, I can't get the damned thing to launch for the life of me -- so I'm focusing on that issue. I can get CERTAIN .exe files to launch, but not all of them. If I bundle putty.exe (lol) in a folder called NativeProcess it works fine, but I can't launch python.exe from my computer.
[Code]...
View 2 Replies
Similar Posts:
Oct 6, 2011
I want to interact with a .jar-file in my AIR-project.I am using the NativeProcess feature in AIR2 for this, but it seems like I can't just define 'myJavaFile.jar' as the executable.On Windows, you can give 'java.exe' as the executable, the problem is Mac can't handle .exe-files.So my question is: how can I use .jar-files with the NativeProcess feature in AIR2. Or maybe there is an other solution to communicate with a .jar-files in AIR / AS3?
View 1 Replies
Jun 4, 2009
I am using AS3 on a website. Part of the AS has been setup by an external source and I ma now updating and adapting it. My knowledge of AS is limited but slowly expanding.
Currently the site is a main flash file with all the content delivered via a main.as file and then populated via images and videos held in folders on the web.
In one section we have an email link.
I was using Email[url]... and it worked fine. It launched the email program and put the email address in ready to go.
When I added the subject element as below[url]...
it now does what it should with the email program but it also opens a blank webpage.
What can I do to get rid of the blank web page opening?
View 4 Replies
Jul 14, 2011
I experience strange behavior of sockets in Python (3.2). Client connects to my application using Flash. Most of the time there is nothing unusual but sometimes python crashes in a way that should not have taken place - enter into infinite loops. Below I attach to the loop code and error message in the log. Python hang on bytesRecived = sock.recv(64) and receive b'' witch is visible in log.
code:
try:
buff = ''
[code].........
View 1 Replies
Feb 22, 2010
I am using python and webapp framework in app engine for backend and flex 4 for front end.I would like to pass a string form backend to front end, so i write the following code in the main.py:
[Code]...
View 3 Replies
Feb 14, 2011
I have created a flex application in the Python Gae sdk and I got the error 2048, so I put a crossdomain.xml under the static folder.
The crossdomain.xml is following:
<?xml version="1.0"?>
<!DOCTYPE cross-domain-policy SYSTEM "/xml/dtds/cross-domain-policy.dtd">
<cross-domain-policy> [code].....
However, I still got the error 2048. Therefore, I would like to know is anything I need to configure or miss in my case and how to fix the error.
View 2 Replies
Jun 15, 2011
Does Adobe Flash expose any Automation or hosting interfaces through COM or a DLL in %systemroot%system32? I'm working with Python and wxWidgets to host a flash application to monitor lunar phases.
View 1 Replies
Aug 7, 2010
i develop one project on python and upload on google app can i use swf file to import in python web application?
View 1 Replies
Jul 27, 2010
i need a simple python lib that check the uploaded files to my webserver are flash media (FLV), by reading the flv header (metadata) and not the mimetype extension.
View 1 Replies
Apr 12, 2011
If swf file is embedded in html it is easy to call ActionScript methods via ExternalInterface using JavaScript. Now I want to use the swf file outside of a browser and still be able to access its methods, but now I want to use Python to call ActionScript. Is it possible? There is so little information about it in the Internet. Probably I can use AMF (pyAmf) for this, can I?
View 2 Replies
Sep 21, 2009
I'm trying to find out if there is a way I could embed a Python back-end into an AIR application? I'm looking to employ an approach similar to the one outlined here to implement the business logic for my application, but additionally, I would like to provide the user with a single binary which they can load. I don't want the user to have to fire up a seperate server process to make this work.
View 3 Replies
Dec 3, 2011
I am using FlashDevelop4, in there I could select FlashPlayer11 and AIR3.0..But on FlashCS5's end there's only FlashPlayer10 and AIR2.5...How can I upgrade it on Flash? (the update center in CS5 suite says Flash is at the latest update)
View 6 Replies
Jan 5, 2011
I have a magazine of 40 frame. each frame is a different page. in one page (frame) i have imported an flv video from a url. but when i publish it and go to the next frame the video keeps playing, even if im not seeing it.
View 7 Replies
Dec 19, 2011
I have an xml snippet that contains an object hierarchy:
doc = """
<RootObj val1="ValueOne" stat1="Stat1" stat2="Stat2">
<internalarray type="array">
<InternalObject val1="12" val2="12" />
<InternalObject val1="13" val2="13" />
[Code]...
View 1 Replies
Jun 29, 2010
I have built a application that use a nativeProcess to open exe. The application into Flex Builder 3 run whitout errors. Then the problem come when I export the aplicaction AIR in .air and install the applicaction in the developer pc or other pc. When I push the button to open the .exe, appear the message "Native Process is not supported". The code in the main.mxml that I use:
[Code]...
View 3 Replies
Oct 30, 2010
Is AIR nativeprocess able to receive message from Java program and process every line of message as fast as possible in milliseconds? Does it has a miss read or delay?
View 2 Replies
Nov 29, 2010
I need to pass the "" to the mm.exe that run with nativeprocess. When I pass "In From MIDI Yoke: 1" even using " to the nativeprocess, it won't launch the application properly and caused it to crash. What wrong this the code?
[Code]...
View 2 Replies
May 26, 2011
I have a program in AIR 2.6 for Windows and Mac Os platform. Use NativeProcess class to execute native apps that i have included in the project.
[Code]...
View 2 Replies
Aug 24, 2011
I would like to launch an external program on the server from a server-side ActionScript. My server-side scripting is in ActionScript 1.0 so I can't use the NativeProcess class, right? Can I use ActionScript 3.0 on the server? Is there another way?
View 3 Replies
Jul 8, 2010
I want to pass two parameter to nativeProcess. While i am running exe file using windows command with parameter, it is working. Command for window is "abc.exe a.txt b.txt"How can I pass two parameters to the exe in that format using flex nativeProcess?This is what I have so far:
<?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]....
View 9 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
Nov 23, 2010
How can I find the return value of a executable which has been invoked by a AIR app using the NativeProcess API? I am using Flash Builder 4. The following c++ generated executable
festival --tts "HelloSpeak.txt"
works fine on the Windows cmd line , but on invoking by the NativeProcess API like in the example article doesn't produce the desired result. I invoke the command with the arguments on a button click handler, but there is no TTS generated output.
View 1 Replies
Mar 22, 2011
I'm trying to use Imagemagick convert.exe with Flex4 NativeProcess. I know I have it configured properly because I can get a successful result with a simple call with no options to convert.
[Code]....
View 1 Replies
Mar 2, 2009
I'd like to replace my current functionality of just launching a new url in a new window to loading a .swf in lightwindow. I've seen a previous post on this but I was having trouble following it.
My current function looks like this:
protected function clickHandler(me:MouseEvent):void {
trace("PortfolioItem::click ");
var request:URLRequest = new URLRequest("http://" + _url);
[Code]....
I think I am supposed to add the ExternalInterface class to help adapt the lightwindow javascript to work within flash.
View 2 Replies
Jan 28, 2012
I've made some games using Adobe Director and I would like to open them in a separate projector window.I tried attaching this code to my button.[code]I placed my .exe file in a folder named 'fscommand', that folder is in the same folder as my .fla and .swf files.It doesn't work, unfortunately. : When I click, nothing happens.
View 1 Replies
May 22, 2011
why the below line of code launches notepad.exe twice?
fscommand("execfile", '"C:\Windows\Notepad.exe"'); //opens notepad 2x - path in double quotes
verses this line of code which opens it only once?
fscommand("execfile", "C:\Windows\Notepad.exe"); //opens notepad once
I'm working on a FP10 .exe projector project and noticed this odd behavior.If I had spaces in my file path, I'd want to surround it in double quotes, but that has the undesired effect of opening the app 2x.Since I don't have full control over all the elements in the project, I'm forced to use fscommand in this scenario.
View 1 Replies
Aug 2, 2011
Need to launch an external program through Flash AIR. Tried reading up but are unable to get it working. Think there is something else I need to perform before launching my external file (exe). It is a exercise that is like a game.
var myApp:File = File.applicationDirectory.resolvePath("Hazards.exe"); var myAppProcessStartupInfo:NativeProcessStartupInfo = new NativeProcessStartupInfo(); var myAppProcess = new NativeProcess();
[code].....
View 6 Replies
Oct 27, 2003
Launching EXE'S from within flash?
View 5 Replies
Oct 6, 2008
I am using Flash CS3 and am attempting to simply launch a new window from a .swf ad when clicked. For the publisher I have to use the clickTAG property to track the ad. I have made an invisible button (just the hit state the same size as my stage) and am placing this code on my button on the timeline:
on (release) {
if (clickTAG.substr(0,5) == "[URL]") {
getURL(clickTAG, "_blank");
}}
There are 2 problems. Firstly, the debugger generates errors:
1087: Syntax error: extra characters found after end of program.
View 2 Replies
Sep 4, 2008
I have a project where a swf is going to call another swf via a url and the calling swf needs to detect when the child swf is done. The child will not have any means of communicating with the calling swf so the calling swf will need some means of launching the child and detecting when the child is exited (either by ending or the user closing it).
Below is the current code. flashThickBox throws an error because it apparently doesn't understand the format of the data passed to it.
flash.net.naviagetourl launches the child correctly but does not provide any means for detecting when the child is exited.
The url is [URL] which is a simple html page that loads player.swf. It has to be done in this format as we currently have older authorware files that need to be launched via this same method.
View 1 Replies