Questions tagged [alchemy]

Alchemy is a research project from Adobe Systems that allows for the compilation of C and C++ code to AVM2 bytecode, so that it can be run on Flash Player or Adobe AIR. This is accomplished by an initial compilation to LLVM bytecode as an intermediate step.

Alchemy is a research project from Adobe Systems that allows for the compilation of C and C++ code to AVM2 bytecode, so that it can be run on Flash Player or Adobe AIR. This is accomplished by an initial compilation to LLVM bytecode as an intermediate step.

148 questions
2
votes
1 answer

How to convert AS3 ByteArray into wchar_t const* filename? (Adobe Alchemy)

How to convert AS3 ByteArray into wchar_t const* filename? So in my C code I have a function waiting for a file with void fun (wchar_t const* filename) how to send to that function my ByteArray? (Or, how should I re-write my function?)
Rella
  • 65,003
  • 109
  • 363
  • 636
2
votes
0 answers

Use Box2D 2.2.1 on Flash? WCK, Adobe Crossbridge, Alchemy etc

In fact, I have few questions caused by one problem. I use Box2D Alchemy port in one of my Flash gaming projects. This port is compiled from original C++ Box2D v.2.2.0 by guys who made World Construction Kit. However, version 2.2.0 has a nasty bug,…
madfatcat
  • 43
  • 5
2
votes
1 answer

LuaAlchemy callglobal

I'm using LuaAlchemy with AS3 and am currently trying to call global function in lua script. Running whole script file works perfectly, but when I try to call callGlobal(), I get Lua error: attempt to call a nil value. function…
user1760770
  • 365
  • 5
  • 17
2
votes
1 answer

Adobe Alchemy compiled SWC - not sure how to compile library for FlasCC

I'm trying to get game-music-emu-flash working with FlasCC. It uses the C/C++ Game_Music_Emu library and was originally compiled with Alchemy, but I want to see if there is a performance increase with FlasCC. I'd like to use SWIG with typemaps to…
2
votes
3 answers

FlasCC SWC within Mobile AIR Project

I am writing a barcode scanner for iOS and Android using Flex Mobile and ZXing. I have optimized ZXing as much as I can, but it is still too slow to use for continual scanning on some older devices. I extracted some of the heavy work into a C SWIG…
Colin
  • 53
  • 6
2
votes
1 answer

Hello World in FlasCC - Getting FlasCC running for the first time in WIndows

I am reading the README.html instructions. It says: Extract the contents of the ZIP file onto your hard drive. This can be extracted to anywhere on your hard drive, but this readme will assume it is located at C:\flascc\ Ensure 64-bit Java is…
AturSams
  • 7,568
  • 18
  • 64
  • 98
1
vote
2 answers

Issue with Shine MP3 Encoder on Alchemy

I have been trying to use the "Shine MP3 Encoder on Alchemy" in my action script file: import fr.kikko.lab.ShineMP3Encoder But always seems to get 2 errors: 1180: Call to a possible undefined method CLibInit 1172: Definition cmodule.shine:ClibInit…
Tricks By Sam
  • 438
  • 1
  • 4
  • 11
1
vote
2 answers

Error: unsupported network (argument="network", value={"name":"sepolia","chainId":11155111}, code=INVALID_ARGUMENT, version=providers/5.7.2)

I am trying to interact with my smart contract for my nextjs app. I cannot interact with the contract because my alchemy provider is not working. Attempt 1: const provider = new ethers.providers.AlchemyProvider( "sepolia", …
1
vote
0 answers

How to get a sample of random rows in redshift using SQL alchemy efficiently

Theres a data set of size 200M how to get random sample data(of size 100rows) efficiently using SQLalchemy or any other possible way.
DEV
  • 31
  • 3
1
vote
0 answers

Provider Error : Provider : Transaction Reverted without Reason String

We have been working on Document Signing App which sends an email when a user uploads a document and sends it to sign to another 3-4 users. The user gets the email and tries to sign the document which does a blockchain transaction whose status is…
aneesh kapur
  • 69
  • 1
  • 3
1
vote
1 answer

Weird Adobe Alchemy compiler fail

I'm trying to build a project using OpenCV with alchemy. My idea was to isolate the parts I need from OpenCV (v.2.2), compile them with alchemy g++ and link with my code statically. So here's what I do: First I compile needed opencv sources one by…
bonext
  • 147
  • 5
1
vote
0 answers

Is there a simple API to transfer ERC-1155(Polygon Mainnet) tokens to other users?

Sorry I am new to blockchain development, so pardon my silly basic question. I have created a bunch of ERC-1155 using Polygon main net. I have all the address and ids of the token. Now I want to transfer them to other users from my backend(nodejs)…
Shafqat Jamil Khan
  • 1,039
  • 1
  • 9
  • 17
1
vote
3 answers

× Error: Alchemy URL protocol must be one of http, https, ws, or wss. Recieved: undefined React.js

I just clone smart contract react application in VS code and installed node modules. When i try to npm start, it gave me the error " Error: Alchemy URL protocol must be one of http, https, ws, or wss. Recieved: undefined React.js". How can i solve…
Teshie Ethiopia
  • 586
  • 8
  • 27
1
vote
1 answer

Adobe Alchemy thread support

I've managed to compile (without errors) fluidsynth library that uses pthreads in old version and glib gthreads in newer version. However, in swf I get runtime errors Undefined sym: _pthread_attr_init and Undefined sym: _g_thread_init…
bgr
  • 147
  • 2
  • 8
1
vote
2 answers

Using Adobe Alchemy to get the OpenGL image from c++ code to flash app

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
EthanHunt
  • 473
  • 2
  • 9
  • 19
1 2
3
9 10