Search Unity

Need help! Flash build compile errors

Discussion in 'Flash' started by aren372, Dec 28, 2011.

  1. aren372

    aren372

    Joined:
    Apr 2, 2010
    Posts:
    38
    here are errors below when I build for flash player:
    Code (csharp):
    1. Error building Player: Exception: Compiling SWF Failed:
    2.  
    3. Loading configuration file C:\Program Files\Unity\Editor\Data\PlaybackEngines\flashsupport\BuildTools\flex\frameworks\flex-config.xml
    4.  
    5.  
    6.  
    7. E:\tadpole\Temp\StagingArea\Data\ConvertedDotNetCode\global\MiniJSON.as(227): col: 41 Error: Operand of increment must be a reference.
    8.  
    9.  
    10.  
    11.             var $c: int = $json.elements[($index.value as int)++] as int;
    12.  
    13.                                                  ^
    14.  
    15.  
    16.  
    17. E:\tadpole\Temp\StagingArea\Data\ConvertedDotNetCode\global\UISprite.as(99): col: 32 Error: Method marked override must override another method.
    18.  
    19.  
    20.  
    21.         override public function get IPositionable_position(): Vector3 {
    22.  
    23.                                      ^
    24.  
    25.  
    26.  
    27. E:\tadpole\Temp\StagingArea\Data\ConvertedDotNetCode\global\UISprite.as(103): col: 32 Error: Method marked override must override another method.
    28.  
    29.  
    30.  
    31.         override public function set IPositionable_position_Vector3($value: Vector3): void {
    32.  
    33.                                      ^
    34.  
    35.  
    36.  
    37. E:\tadpole\Temp\StagingArea\Data\ConvertedDotNetCode\global\UIFakeTouch.as(37): col: 70 Error: Type was not found or was not a compile-time constant: Nullable$1.
    38.  
    39.  
    40.  
    41.         public static function fromInput_Nullable$1Ref($lastMousePosition: Nullable$1): UIFakeTouch {
    42.  
    43.                                                                            ^
    44.  
    45.  
    46.  
    47. E:\tadpole\Temp\StagingArea\Data\ConvertedDotNetCode\global\UIAnimation__Animate_c__Iterator0.as(51): col: 34 Error: Access of undefined property Enumerable.
    48.  
    49.  
    50.  
    51.                             this._sameAnimation___0 = Enumerable.Enumerable_FirstOrDefault$1$1_IEnumerable$1(Enumerable.Enumerable_Where$1$1_IEnumerable$1_Func$2(UIAnimation.UIAnimation$m_spriteAnimations$.IDictionary$2_get_Item_TKey(this.__f__this.UIAnimation$m_sprite$), (function($i: UIAnimation): Boolean {
    52.  
    53.                                                       ^
    54.  
    55.  
    56.  
    57. E:\tadpole\Temp\StagingArea\Data\ConvertedDotNetCode\global\UIAnimation__Animate_c__Iterator0.as(51): col: 89 Error: Access of undefined property Enumerable.
    58.  
    59.  
    60.  
    61.                             this._sameAnimation___0 = Enumerable.Enumerable_FirstOrDefault$1$1_IEnumerable$1(Enumerable.Enumerable_Where$1$1_IEnumerable$1_Func$2(UIAnimation.UIAnimation$m_spriteAnimations$.IDictionary$2_get_Item_TKey(this.__f__this.UIAnimation$m_sprite$), (function($i: UIAnimation): Boolean {
    62.  
    63.                                                                                                              ^
    64.  
    65.  
    66.  
    67. E:\tadpole\Temp\StagingArea\Data\ConvertedDotNetCode\global\UIAnimation__Animate_c__Iterator0.as(9): col: 20 Error: Definition System.Linq:Enumerable could not be found.
    68.  
    69.  
    70.  
    71.     import System.Linq.Enumerable;
    Any advice is welcome. Thank you!
     
  2. Lucas Meijer_old

    Lucas Meijer_old

    Joined:
    Apr 5, 2008
    Posts:
    436
    Hi. MiniJSON is running into several limitations of the flash exporter. we're working on making the flash exporter support it out of the box. Untill that time you'll have to modify minijson to work around the limitations. the first error is related to using ++ on something we apparently don't support yet. the later errors are related to the usage of LINQ which we also don't support yet.
     
  3. ChemiKhazi

    ChemiKhazi

    Joined:
    Nov 16, 2009
    Posts:
    27
    Hi Lucas. Is MiniJSON working with the flash exporter yet?
     
  4. Arowx

    Arowx

    Joined:
    Nov 12, 2009
    Posts:
    7,074
    Found a work around.

    If you comment out the else if statement that is highlighted in the flash build error message in the MiniJSON.cs file you can get your project to build.

    NB: This is only a build work around if your program needs this code block expect errors/odd behaviour.
     
  5. laurent-clave

    laurent-clave

    Joined:
    Jul 18, 2011
    Posts:
    278
    Hello
    I have a same problem.
    Have you a solution for compil MiniJson.cs ?

    The compilation error is :"source sequence is empty"... I don't understand
     
  6. purplelilgirl

    purplelilgirl

    Joined:
    Feb 24, 2009
    Posts:
    102
    I have the same problem, "source sequence is empty"... any solutions? or workarounds?
     
  7. RalphH

    RalphH

    Unity Technologies

    Joined:
    Dec 22, 2011
    Posts:
    591
    If on 3.5, this situation will not change. All development and the Flash Support release will be on 4.0, including subsequent fixes.