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
0
votes
1 answer

Can't use import with package_as3

For some reason, when I use package_as3 in FlasCC I can't import any classes to use as a var. package_as3 ( "#package private\n" "import flash.system.MessageChannel;\n" "var mc:MessageChannel;\n" ); When I try to build anything that has…
ShadowFan-X
  • 131
  • 1
  • 2
0
votes
2 answers

How to cross compile Flash SWF file(s) into Keil Compilable C/C++ file(s)

I have been doing research in cross compile flash SWF files into C/C++ source files There are plenty of tools in decompiling SWF files into plain-text files formats. The Free SWF Decompiler provides plenty opensource solution on this. To decompiler…
guru4tw
  • 21
  • 4
0
votes
1 answer

My C file_exists Function Using stat Always Fails with errno = ENOENT

I'm using FlasCC+Swig to call my C function in Adobe Air application. The C function: int file_exists(const char filename[]) { struct stat stbuf; if (stat(filename, &stbuf) == -1) { return (0); } return (1); } In my normal…
Peter Lee
  • 12,931
  • 11
  • 73
  • 100
0
votes
1 answer

Accesing Win32 API from FlasCC (aka Crossbridge)

I have to compile a C++ project using FlasCC to create a swf. I am able to compile all the CPP files except those that uses Win32 API ("Windows.h", DirectX,etc). I have seen the api libraries on the cygwin folder /usr/include/w32api but not on…
Delcasda
  • 371
  • 4
  • 13
0
votes
1 answer

Simple OpenGL shader demo using Flascc?

It's been 2 weeks and I am still standing at zero point. I tried to compile a sample code using following commands: /flascc/bin/g++ -O4 \ -I/GLS3D-master/install/usr/include/ \ …
fakhir
  • 157
  • 10
0
votes
1 answer

FlasCC open-source download?

FlasCC uses several customized GPL libraries, such as SWIG. Aren't they supposed to provide the source for these libraries? Where can I download it?
paleozogt
  • 6,393
  • 11
  • 51
  • 94
0
votes
2 answers

Failed to create Console with embed VFS due to "Call to a possibly undefined method"

First I've created an embedded Virtual File System, as described here. It generates this AS code: package C_Run {} package com.adobe.flascc.vfs { import com.adobe.flascc.vfs.*; import com.adobe.flascc.BinaryData public class myvfs…
vok1980
  • 504
  • 5
  • 14
0
votes
1 answer

C++ program compiled with FlasCC with -O4 (LTO) hangs on virtual call

I have a problem with LTO optimization in FlasCC. When compiled with -O1 resulting swf runs just fine. But with -O4 it first runs OK, but then suddenly hangs on specific virtual function call for time over than 15 seconds and then Flash stops…
EyeGem
  • 1
  • 3
0
votes
2 answers

Can FlasCC and Haxe be used together?

This is a rookie question as I'm very new to Haxe and have no experience with FlasCC (the C compiler for Flash). Is it possible to use FlasCC and Haxe together, to bring the performance improvements of both technologies together to Flash?
chamberlainpi
  • 4,854
  • 8
  • 32
  • 63
0
votes
2 answers

Stage3D and pthreads

So I downloaded flascc, and messed around with the sample. sample 09 (threads) and sample 12 (stage3D) worked well by themselves, but when I tried to run threads in Stage3D sample, they were never started. Here's a code I have in main() pthread_t…
Habba
  • 1,179
  • 2
  • 13
  • 32
0
votes
1 answer

What versions of C and C++ standards does FlasCC support?

I heard of FlasCC which is a C/C++ compiler targets AVM2. And also I heard it is based on an older version of GCC. (4.2??) What kind/versions of C and C++ standards are supported on FlasCC?
eonil
  • 83,476
  • 81
  • 317
  • 516
0
votes
0 answers

Debugging Flash SWF panel

Does anyone think it could be possible to create a custom debugger for swf files using a socket, able to support breaking points and step through code functionality? I know there are swf debugger's out there but I have not found one that can step…
user2071276
  • 113
  • 6
0
votes
2 answers

FlasCC sample 01 no output when add -O4 flag

I have only add -O4 -flto-api=exports.txt to Makefile script in Flascc SDK 1.0 sample 01_helloworld project this is final Makefile content: "$(FLASCC)/usr/bin/gcc" $(BASE_CFLAGS) hello.c -O4 -flto-api=exports.txt -emit-swf -swf-size=200x200 -o…
Louis
  • 407
  • 2
  • 7
0
votes
1 answer

How to compile ffmpeg with the new Flascc compiler?

I have tried to compile ffmpeg with the new flascc compiler with the following parameters ( I set only h263 ability as a test): PATH=/cygdrive/c/download/flascc/sdk/usr/bin:$PATH ./configure --enable-static --disable-shared --extra-libs=-static…
Charles Nehez
  • 63
  • 2
  • 6
1
2