• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
Question by eatsleepindie · Jul 17, 2012 at 01:47 AM · errorflashsmartfox

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 {

Comment

People who like this

0 Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image AlucardJay · Feb 25, 2013 at 02:48 PM 0
Share

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.

avatar image Twonky · Feb 25, 2013 at 02:48 PM 0
Share

Got the same problem here. The Flash exporter does not support System.IO.BinaryReader and System.IO.BinaryWriter (currently?)

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

6 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity3d + SmartFox dll + Windows 8 Store Build produces errors 0 Answers

Will Smartfox/PlayerIO on Unity Flash be supported? 2 Answers

A node in a childnode? 1 Answer

Why do I get this error 0 Answers

not compiling for android 2 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges