- Home /
Unity + SmarFox 2x via Flash export
Has anyone had any success publishing from Unity to Flash while importing the SmartFox API? I've built a chat system using Unity + SmartFox 2x and can export all day long, except when I choose Flash as the export. At first my errors seemed relatively simple (I had to change how I split strings, parse integers, etc.), but when I fixed all those little bugs I got a whole new list of bugs in the console. I've copied and pasted some below, but I'm worried that this is simply not possible to do (without some major, major work at least).
Any suggestions or success stories out there to at least give me hope that it can be done?
Errors I've gotten (none of which make any sense to me) :
Error building Player: Exception: Compiling SWF Failed: Loading configuration file C:\Program Files (x86)\Unity\Editor\Data\PlaybackEngines\flashsupport\BuildTools\flex\frameworks\flex-config.xml
G:\my_project\Temp\StagingArea\Data\ConvertedDotNetCode\ComponentAce\Compression\Libs\zlib\ZInputStream.as(10): col: 36 Error: The definition of base class BinaryReader was not found.
public class ZInputStream extends BinaryReader { ^
G:\my_project\Temp\StagingArea\Data\ConvertedDotNetCode\ComponentAce\Compression\Libs\zlib\ZInputStream.as(73): col: 28 Error: Method marked override must override another method.
override public function BinaryReader_Read(): int { ^
G:\my_project\Temp\StagingArea\Data\ConvertedDotNetCode\ComponentAce\Compression\Libs\zlib\ZInputStream.as(147): col: 28 Error: Method marked override must override another method.
override public function BinaryReader_Close(): void { ^
G:\my_project\Temp\StagingArea\Data\ConvertedDotNetCode\ComponentAce\Compression\Libs\zlib\InfTree.as(112): col: 36 Error: Operand of increment must be a reference.
$v.elements[($array4.elements[$i] as int)++] = $num2; ^
G:\my_project\Temp\StagingArea\Data\ConvertedDotNetCode\Sfs2X\Logging\LoggerEvent.as(10): col: 56 Error: Interface ICloneable was not found.
public class LoggerEvent extends BaseEvent implements ICloneable { ^
G:\my_project\Temp\StagingArea\Data\ConvertedDotNetCode\Sfs2X\Http\SFSWebClient.as(30): col: 74 Error: Type was not found or was not a compile-time constant: Uri.
public function SFSWebClient_UploadValuesAsync_Uri_String_String($uri: Uri, $paramName: String, $encodedData: String): void {
Please don't post comments as answers. Post comments by clicking the [add new comment] button, a window then open for you to type in. Here at Unity Answers, Answer means Solution, not Response.
Got the same problem here. The Flash exporter does not support System.IO.BinaryReader and System.IO.BinaryWriter (currently?)