Posts tagged "SWC"

Using printf within a SWC

A SWF built with gcc/g++ using the -emit-swf option has a default Console that prints stdout into a TextField on the screen (and to the Flash log file). However when you build a C/C++ library into a SWC using the -emit-swc flag there is no default Console. This means that if code in your library calls printf() no output will be shown. This post demonstrates how to use a custom Console to show the output of printf() calls from within a SWC.
Continue reading…

Operating on ActionScript objects in C++

FlasCC allows you to create a SWC file from a C++ library. This is useful if you have an existing ActionScript project and want to add some logic that is already written in C++. This post demonstrates how you can operate on ActionScript objects that were passed as parameters into functions of a C++ library.
Continue reading…

Using multiple FlasCC SWCs in a Flash project

FlasCC allows you to compile C and C++ libraries into SWCs that can be dropped into any Flash project. This post demonstrates how you can include multiple FlasCC SWCs in an ActionScript project.
Continue reading…