Questions tagged [flascc]

FlashCC is the second iteration of the Alchemy tool which allows C++ code to be compiled for execution in Flash Player (Actionscript Virtual Machine)

From the official website:

The Flash Runtime C++ Compiler provides a complete BSD-like C/C++ development environment based on GCC that lets you compile your C/C++ code to target the Adobe® Flash® Runtime (Flash Player and AIR®). With FlasCC you can port almost any existing C/C++ code to the web, across browsers.

FlasCC includes tools for building, testing, and debugging C/C++ projects, example projects with source code, and documentation.

FlasCC technical info The FlasCC SDK gives you everything you need to efficiently port your code to the Flash Runtime:

  • Use your existing C/C++ project files and makefiles. If you're already using GCC, just drop in FlasCC to target Flash Player with your existing C/C++ code.
  • Debug your code running in the Flash Runtime with GDB, just like your native toolchain.
  • Access the entire Flash Runtime API from C++ classes, including Stage3D for OpenGL/DirectX GPU accelerated graphics.
  • Leverage extensive documentation, tutorials, and working examples of C/C++ libraries ported to the Flash Runtime, including Lua, Box2D, and Bullet physics.
  • Take advantage of Pthreads multithreading support in the upcoming Flash Player 11.5.
  • FlasCC also lets you use C/C++ to create libraries (SWCs) for ActionScript developers: Use SWIG to automatically create AS3 interfaces to C code.
29 questions
4
votes
1 answer

From C++ to Actionscript via FLASCC

I'm hoping to get some feedback from anyone who is familiar with BOTH C++ AND Actionscript. I am not a C++ coder unfortunately. I am developing Kinect applications using the AIRKinect framework. Unfortunately a limitation of this framework is the…
Bachalo
  • 6,965
  • 27
  • 95
  • 189
3
votes
1 answer

How to workaround huge pthread memory cost in FlasCC?

We've got quite a massive codebase compiling and starting to run in FlasCC. When you just open the .swf, player's memory usage is ~300MB. It is more or less fine, since it seems like there's still around 300MB of dynamically-allocated memory…
ilookha
  • 106
  • 4
3
votes
3 answers

How to pass ByteArray to C code using FlasCC

I want to pass ByteArray from ActionScript to C function. basically I want do something like this: void init() __attribute__((used,annotate("as3sig:public function init(byteData: ByteArray):int"), annotate("as3package:example"))); void…
rivdevel
  • 33
  • 1
  • 5
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

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
0 answers

FlasCC, Alchemy, CrossBridge - How to use C++ class in ActionScript3 code?

How can I use c++ class in ActionScript3? I want to use the BulletPhysics physics library (C++) in my ActionScript3 game. How can I do it and compile my game (AS3) main class as document class (create main.cpp and addChild as3 main class? how?) in…
1
vote
0 answers

What is the proper usage of package_as3 in Crossbridge/FlasCC for importing AS3 classes?

I've got some old code I'm trying to clean up on a project that uses Adobe Crossbridge to manage a C++ backend and an AS3 frontend. The code hasn't made full use of the interop capabilities, and I'm trying to work toward that end, but all of the…
DevDaddyNick
  • 101
  • 2
  • 5
1
vote
1 answer

AS3 OggVorbis - is there a precompiled SWC available?

I would like to use OggVorbis sound files in a flash project, and while I realize I can compile a SWC with crossbridge, that is a little over my head, so I was wondering if anyone knows of a ready to use SWC library available for download. I have…
Mike Bedar
  • 632
  • 5
  • 14
1
vote
1 answer

Using decompression library in AS3 via FlasCC

I have an AS3 AIR project in which I need to decompress files using a specific decompression method. Apparently the code for this is found here, in the contrib/blast directory of the zlib distribution. I would port this to AS3 manually, however I'm…
puggsoy
  • 1,270
  • 1
  • 11
  • 34
1
vote
1 answer

FlasCC: interop between Vector. and double[]

Assume that I am new to AS3 and FlasCC and try to port some legacy C++ code to Flash. What I have is some number-crunching routine that takes an array of type double (the array is of fixed size). The C++ prototype is, say: double…
1
vote
1 answer

as3 conditional compiling with flascc

I had as3 project with custom flex-config.xml and conditional compiling directives for mxmlc like this: CONFIG::DEBUG true CONFIG::RELEASE
1
vote
3 answers

Increase Flash script execution time (FlasCC)

I am using FlasCC. My app works fine but takes long to load. I get a message that it has exceeded 15 seconds (Error #1502). How can I make this time longer?
Marcin
  • 65
  • 5
0
votes
1 answer

Compile ffmpeg with flascc with network support

I have compiled ffmpeg with flascc expcept networking. Because flascc cant use sockets,poll and select function. I realized network.c file in ffmpeg is a wraper for socket functions. I think socket problem can be solve by writing network.c again…
uulker
  • 41
  • 5
1
2