Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: pumuckli on September 11, 2012, 04:09:44 AM

Title: Unity4 Beta Flash compile Error with Ngui
Post by: pumuckli on September 11, 2012, 04:09:44 AM
Hi,

i've got a problem: we are using Ngui for our Project and we are Developing for Flash Platform. With Unity 3.5 everything worked fine with Ngui, with Unity4 Beta i get the following error:

Error building Player: Exception: Compiling SWF Failed:
Loading configuration file C:\Program Files (x86)\Unity4.0\Editor\Data\PlaybackEngines\flashsupport\BuildTools\flex\frameworks\flex-config.xml

C:\Program Files (x86)\Unity4.0\Editor\Data\PlaybackEngines\flashsupport\BuildTools\UserBuild_AS3\FlashPlayerFeatures.as(30): col: 1 Warning: return value for function 'supportsLZMADecompression' has no type declaration.

      {
^

C:\Users\Public\Documents\Unity Projects\FlashExportBetaProject\Temp\StagingArea\Data\ConvertedDotNetCode\global\UIButtonPlayAnimation.as(109): col: 72 Error: Access of possibly undefined property value through a reference with static type int.

var $num: int = (-this.UIButtonPlayAnimation$playDirection$.value).value;
                                                                               ^

This error occurs whenever i just have imported the Ngui package, even in a new Project with nothing in it than a cube, a camera and the importet Ngui package...

Stupidly i did upgrade to the 4.0 Beta and did not make a backup of my project.. any ideas?

Greetings, Simon
Title: Re: Unity4 Beta Flash compile Error with Ngui
Post by: ArenMook on September 11, 2012, 04:16:53 AM
Ah, the joys of Flash Developer Preview. You'll have to fiddle with it. Looks like Unity broke something from 3.5 to 4.0. All indication points to enums.
Title: Re: Unity4 Beta Flash compile Error with Ngui
Post by: pumuckli on September 11, 2012, 04:29:50 AM
Thanks for your quick reply, found a solution that works for me: I changed the "pd" int in UIButtonPlayAnimation Script to a static value (1) - we don't need no button animations, so this works good for me. Performance is still a bit of a problem, but that's nothing new :)