Using a flash swc library when building for flash in 4.0

Hi,

I’m trying to use the Smartfox Server flash API (found here) to build a project for Flash. I’m doing this because the Unity implementation of Smartfox gives loads of compiler errors when I try to build my project.

I added this swc to my Assets/ActionScript folder and created a C# class, in the way that is described here. Now, whenever I try to build my project I get errors that I’m using an undefined type. It’s like the library doesn’t get used at all.

What am I doing wrong?

Thanks

I have found that it works if you put them inside your ActionScript folder (/Assets/Scripts/ActionScript in my case). There were some comments of people having problems using multiple swcs: http://forum.unity3d.com/threads/140691-Unity3D-Flash-build-when-compiling-a-game-with-multiple-swc-files I haven’t run into that yet. I had some problems when trying to use as3corelib.swc as it had dependencies on other libs. I ended up grabbing the as files I needed from the com.adobe source lib.