开发者

run executable code that accept input parameter and produce output, in flex 3

开发者 https://www.devze.com 2023-03-14 23:30 出处:网络
I have written a jquery/javascript editor in FLEX 3 and actionscript 3. It has syntax checking facility. I will write a syntax checking parser either in C or in java. Here, I will include executable f

I have written a jquery/javascript editor in FLEX 3 and actionscript 3. It has syntax checking facility. I will write a syntax checking parser either in C or in java. Here, I will include executable file only with flex code. That executable file should accept fully qualified开发者_Python百科 file name as input parameter and it produce compilation result as output, that i need to display in flex.

Please anybody provide suitable solution that how to add executable file in flex, that will accept input parameter and produce output.

thanks in advance.


You can send parameters via NativeProcess in AIR 2 to a console application for example

lee brimelow has nice two part tutorial here's the part2 link that you will need:

http://gotoandlearn.com/play.php?id=126

to receive data you can use the standarOutPutData Event

documentation : http://help.adobe.com/en_US/FlashPlatform/beta/reference/actionscript/3/flash/desktop/NativeProcess.html#event:standardOutputData

0

精彩评论

暂无评论...
验证码 换一张
取 消