emcmanus/flashsnes — Issue #1: Problem building Snes.swf from Snes.as using mxmlc -- what am I missing?
Author: markoflexo
Created: 2012-01-28 22:07:20+00:00
State: open

Hello!

Thanks for a very cool project!

I'm trying to compile FlashSNES and have encountered some problems:

This is what I tried:

git clone git://github.com/emcmanus/flashsnes.git
cd flashsnes/src/as3/src
mkdir cmodule
cp ../generated_as3/libSNES9x.as cmodule/
mv snes.as Snes.as
mxmlc Snes.as

And I'm getting the following error message:

.../flashsnes/src/as3/src/core/Emulator.as(44): col: 23 Error: Type was not found or was not a compile-time constant: CLibInit.

private var cLoader:CLibInit;
^

.../flashsnes/src/as3/src/core/Emulator.as(68): col: 18 Error: Call to a possibly undefined method CLibInit.

cLoader = new CLibInit();
^

.../flashsnes/src/as3/src/core/Emulator.as(3): col: 26 Error: Definition cmodule.libSNES9x:CLibInit could not be found.

import cmodule.libSNES9x.CLibInit;

I guess I'm missing something basic :-) What am I doing wrong?