Port C++ To Swf With Alchemy?

Feb 12, 2010

Alchemy allows users to compile C and C++ code that is targeted to run on the open source ActionScript Virtual Machine (AVM2).

View 1 Replies


Similar Posts:


ActionScript 3.0 :: Serial Port Communication - Read Input Data From A Serial Port

Jul 24, 2009

In a project that I'm working on, I have to be able to read input data from a serial port. The input data will be very simplistic in nature. I'm guessing more like a on/off, yes/no, true/false style of operation.I have found some examples in other languages, but nothing in AS3 or AS2. Could anyone send any sample code or a link to a tutorial that gives me some lead way on this? Which approach is better, going with a Flash projector piece, or building it in AIR? The final piece will be on a PC based system.

View 2 Replies

Flash :: Use STL With Alchemy?

Sep 14, 2011

While Alchemy supports compiling C++, it seems that using the using the STL is trouble, mostly due to a problem with std::string. What's strange is that Alchemy seems to be using GNU libstd++ v3.4.6. It's hard to believe that std::string is broken in GNU's STL.

View 1 Replies

Using Opencv In Flash Alchemy?

Jan 25, 2012

I have a project that uses quite a few opencv libs to do some image processing tasks. Now I need to build a Flash app for it. I read that Alchemy allows compiling c++ libs for FlashI wonder if anyone has tried to build flash apps using opencv libs and dlls

View 1 Replies

Flash - Crash When Linking SWC With Alchemy

Apr 12, 2010

I have a project I'm trying to compile with alchemy. It will compile .o and .a files, but when trying to create a .swc, it will fail. It appears to crash with this error:

g++ -swc -o mylib.swc my-flex-interface.cpp mylib.a
Cannot yet select: 0x279c810: ch,flag = AVM2ISD::CALL - A call instruction 0x279c7a0, 0x29c4350
0 llc 0x00636dfe _ZNSt8_Rb_treeIN4llvm3sys4PathES2_St9_IdentityIS2_ESt4lessIS2_ESaIS2_EE13insert_uniqueERKS2_ + 6078
1 llc 0x006373a2 .....

View 1 Replies

Flash :: Alchemy's AS3_Shim Broken?

Sep 13, 2010

I'm trying to use AS3_Shim in my alchemy code but it doesn't seem to be working.It always returns a NULL function pointer. There don't seem to be any examples of AS3_Shim's use, so I'm not sure what I'm doing wrong.Here is some example code:

static AS3_Val thunk_logtest(void *self, AS3_Val args) {
warning: this leaks
AS3_Val ns= AS3_String("mx.logging");[code]..........

View 1 Replies

LibFLAC Porting Using Adobe Alchemy?

May 16, 2011

I'm trying to port FLAC encoder using Adobe Alchemy for use in flash but can't figure out where the problem is. I'm using Alchemy for Cygwin on Windows. It is properly installed and configured. The following are the steps that I have followed in order to port FLAC encoder:

[Code]...

View 2 Replies

Flex Alchemy - Returning A ByteArray From C Function?

Oct 28, 2009

I am using Flex's Alchemy library to generate SWC's out of C files. I have a byte array (unsigned char buffer[size]) in the c-layer that I'd like to return to the ActionScript layer as a ByteArray. Do I have to iterate through the array and explicitly call AS3_Set on each element or is there a way to just return the entire C array at once?

View 2 Replies

Flex :: Looping OGG Files With Adobe Alchemy

Jul 30, 2010

I'm trying to use Adobe's OggVorbis library. But I can't seem to get the Sound object to loop. I even tried looping the _sound object inside the AudioDecoder.as in the "com.automatastudios.audio.audiodecoder" package. Do you really have to reload the file and stream it over and over?

View 1 Replies

C :: Give The Path For The Associated Header Files In Alchemy?

Jan 11, 2011

I am converting a speexdecoder code to C in alchemy. The problem is that i am importing a header file #include <speex/speex.h>. Alchemy gcc gives an error that speex.h not found. I have placed the speex directory where my C code is.

View 1 Replies

Flex - Return Byte Array From Alchemy C?

Feb 3, 2011

I have written a alchemy code for reading the byte array that i have passed from flex.

When i print the value i get the error cannot convert "OggS" to flash.utils.ByteArray

Alchemy Code

[Code]....

View 1 Replies

Flex :: Pass ByteArray To C Code In Alchemy?

Feb 3, 2011

I want to pass a byte array object from flex code to C code.How to do that?

View 3 Replies

Dll :: Connect C++ Dll To .c File And Convert It To .swc With Adobe Alchemy?

Jun 7, 2011

Is it possible to connect c++ dll to .c file (with dllimport or something else) and convert it to .swc with adobe alchemy? If it does - how to do that?

View 2 Replies

Actionscript 3 :: Return Values From Calling A Function Using Lua Alchemy?

Jan 17, 2011

Im calling a function in lua from actionscript using callstack : Array =

luaAlchemyInstance.doString("luafunction");

my function should return some values

function luafunction()
return true, 125
end

When i look at the callstack array returned by the function in as3,I recieve only the success/fail part.The array length is 1, true, and contains none of my return values.

View 3 Replies

Flex :: Adobe Alchemy Byte Array Reading?

Feb 3, 2011

I am trying to send a bytearray extracted from a file to the C code and return that bytearray again from the C code..I am printing the contents of the return value from C in a text view contents.text but all i can see is the byte array object "OggS". I can't see the contents of the byte array. Can anyone say where i am going wrong?.. I have posted the C code and the AS code.

AS Code:
private function copyByteArray(content:String):void{
try{

[code].....

View 1 Replies

Actionscript 3 :: Get A Reference To An Alchemy Asm Declared Variable Into Flash?

Mar 28, 2011

i have a variable declared in alchemy asm:

asm("var buffer:Vector.<Number> = new Vector.<Number>(100, true);");

i can populate it with data like so:

asm("buffer[%0] = %1;" : : "r"(index) : "r"(value));

what i can't figure out is how to get a reference of that asm "buffer" variable into actionscript.

(i did think of one way... what i did was to throw the "buffer" from alchemy asm, and then catch it in actionscript, but unfortunately it seems to leak a lot of memory).

is there a better alternative to doing this?

note that performance is critical, and using default alchemy marshaling is way too slow.

View 1 Replies

Using Adobe Alchemy To Get OpenGL Image From C++ Code To Flash App

Jun 2, 2011

I have C++ application that use OpenGL. Need to convert this app to flash app. Is it possible to do this with Adobe Alchemy? Is it will be possible to get from that swc current image (for example, with glDrawPixels) and print it on screen

View 2 Replies

C :: Adobe Alchemy Compiler - It Generates .l.bc Files - Turn Them Into Swc's?

Jun 13, 2011

So I try to compile ffmpeg as I described here after this patch I started seeing .l.bc files but no .swc files. So how to use alchemy completion suite to turn .l.bc into .swc?

View 1 Replies

Actionscript 3 :: Alchemy ByteArray Float Conversion From Sound Extract?

Apr 6, 2011

I'm trying to do something simple: send a byteArray to a C library, fill up a buffer and read the memory, but I think I have float conversion problems.

Here is what I do in AS:
var memory:ByteArray = gstate.ds;
// get sound
var soundBytes:ByteArray = new ByteArray();
_source.extract(soundBytes, 4096);

[Code]...

View 1 Replies

Actionscript 3 :: Adobe 'Alchemy' Support The Posix Pthread Library?

Apr 19, 2011

When I use pthread_create function create a thread in the c code, it fails.

But, the pthread.h in the avm2-lib directory is declared pthread_* functions.

I want to know whether the 'Alchemy' support thread.

View 1 Replies

ActionScript 3 :: Flash - OGG Sound Delayed (Adobe Alchemy Library)

Feb 6, 2012

I wanted to make live drums play with keyboard shortcuts. The problem was that MP3 is not good enough in this case (encoders adds random silence at beginning of the sound) and also flash itself makes delay (I tried use already buffered file with play specified_start_point_in_miliseconds)). So my solution is OGG (this format is gapless). I use compiled swc file from Adobe Alchemy library and simple frontend for it. Everything works fine, OGG file is playing, but its still much delay - no matter if its lodeaded external or as embedded, and if its first or n time. How to make sound play fast equally to key press.

Here is my very simple example code:
import flash.display.Sprite;
import flash.events.*;
import flash.utils.ByteArray;
import flash.events.SampleDataEvent;
import com.mauft.OggLibrary.OggStream;
import com.mauft.OggLibrary.OggEmbed;
[Code] .....

View 1 Replies

Flex :: Adobe Alchemy Tool Create Faster Running Flash Byte Code Than The Compiler?

Dec 8, 2009

I have seen a few blog entries on this and have had a discussion or two with my team mates but I would like to see what the stack overflow community thinks.

So why does the Adobe Alchemy Tool create so much faster running flash byte code than the flex compiler?

Also, when will the flex compiler be able to make similar performance gains? Will it require programmer specific use of special Array's or something of that nature to get the same performance?

View 2 Replies

Port 80 Socket Limitation?

Jun 28, 2009

I don't need to deploy an HTTP server and all the connections are made on port 80, the default HTTP port, which is generally not blocked by firewall.Unfortunatly at the end of my work I realized that the flash socket component has some limitation on using port 80.[URL]As nobody is interested by this report, I now think that this limitation is done on purpose by Adobe. I don't know exactly why, may be to force to use their data service product.

I can understand that. But what I am hangry about is that nowhere in the documentation of the socket component there is an information about this limitation. I guess lot of people lost time trying to reach an unreachable goal ! And most of the time you find the problem at the end of the work because local connection is working ok on port 80.

View 1 Replies

ActionScript 2.0 :: XMLSocket Over Port 80?

May 3, 2005

On this page it says "The XMLSocket.connect method can connect only to TCP port numbers greater than or equal to 1024"This makes it hard to get a chatserver to work through a firewall.BUT I recently discovered on this page that you can set up "policies" for your flash movie that allow it to run on port 80.

View 1 Replies

Media Server :: Disabling Port 80 On FMS?

Jul 1, 2010

I am new to the Flash Media Server and have a question on its use of ports. Now if a server has IIS and FMS and one wished only to stream flash (VOD). Could I edit the fms.ini file and remove port 80 from adaptor.hostport?
 
In my thinking I would stream over port 1935 and would lose the ability to progressive download over port 80.Now I do not ever want to use progressive downloading so no issue so far. In addition I can now run my IIS server on port 80 for my administartor console into FMS.  All my clients are internal and thus I do not need a stream on port 80.
 
Is my thinking sound or am I misssing something?

View 1 Replies

Flash :: Port Python App To Silverlight?

Jan 9, 2010

Is there any such effort been made?

Some more info:

it's client application (gui intensive)

By porting I was thinking of cross-compiling.

View 2 Replies

Flex :: Way To Monitor USB Port With Flash?

Feb 21, 2010

I want to write an application that monitor the USB port, and when something is connected should show the contents of the drive (image viewer) automatically.there is any way to do that with Flex/Flash directly?or i might program another application in C in order to monitor the USB port and then comunicate with the front-end application with sockets?

View 2 Replies

Flash :: Fms Port Error After Installed

Mar 26, 2010

I installed fms 3.5 and actually am running apache for php in 8080 and want to make this fms service in different port and made it as 8083 while installing,

After installed when am starting fms using

./fmsmgr server fms start

it shows error message and i checked in messages file it gives already that port is used by someone

"Mar 26 03:59:51 u15393552 Adaptor[12576]: Failed to initialize listeners for adaptor admin, FMS is already running or other adaptor admin"

View 2 Replies

Flex :: Pass Data From Port To Xml()?

Mar 31, 2011

AM reading data from port in the form of bytes.my data will be like [code]...

View 3 Replies

Android :: Which Version Of AIR Should Be Used To Port Application

May 9, 2011

We have an AIR application which is running in client-server mode as a desktop application. Our application runs on AIR version-1.5;Flex version 3.5. We want this application to be ported to android. Will AIR 1.5 work with Android? if not which version of AIR should be used with Android? And also, Can I configure my Flex Builder to partucular version of AIR SDK? I am getting confused with AIR 2.0, 2.5 and recently released flex Hero SDK for mobile platforms.

View 1 Replies







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