Hi,
I know that this topic is old, and Flash is dying, but as a developer, I must follow the leader, so please help me with this issue, since I don't know what to do next.
I'm using NGUI 3.0.6 f7, when I tried to build Flash version, Unity give me 2 error (everything else is fine, compile ok, can run smoothly in Editor, but just can't build into swf)
The first error:
Failed to convert type 'NGUITools': Failed to resolve T
Mono.Cecil.ResolutionException: Failed to resolve T
at Unity.CecilTools.Extensions.ResolutionExtensions.Resolve[TypeReference,TypeDefinition] (Mono.Cecil.TypeReference reference, System.Func`2 resolve) [0x00000] in <filename unknown>:0
at Unity.CecilTools.Extensions.ResolutionExtensions.CheckedResolve (Mono.Cecil.TypeReference type) [0x00000] in <filename unknown>:0
at Unity.CecilTools.Extensions.TypeReferenceExtensions.IsAssignableTo (Mono.Cecil.TypeReference typeRef, System.String typeName) [0x00000] in <filename unknown>:0
at cil2as.Extensions.TypeReferenceExtensions.IsDelegate (Mono.Cecil.TypeReference type) [0x00000] in <filename unknown>:0
at cil2as.Decompiler.Transforms.OptimizeCasts.RequiresCastAs (ICSharpCode.NRefactory.CSharp.AstType type) [0x00000] in <filename unknown>:0
at cil2as.Decompiler.Transforms.OptimizeCasts.VisitCastExpression (ICSharpCode.NRefactory.CSharp.CastExpression castExpression, System.Object data) [0x00000] in <filename unknown>:0
Please note that there are a lot more of <filename unknown> below this point, but I truncated them for short

The second error:
Error building Player: Exception: C:/Program Files (x86)/Unity/Editor/Data/PlaybackEngines/FlashSupport\BuildTools\cil2as\cil2as.exe Failed:
ERROR: Failed to convert type 'NGUITools': Failed to resolve T
Mono.Cecil.ResolutionException: Failed to resolve T
at Unity.CecilTools.Extensions.ResolutionExtensions.Resolve[TypeReference,TypeDefinition] (Mono.Cecil.TypeReference reference, System.Func`2 resolve) [0x00000] in <filename unknown>:0
at Unity.CecilTools.Extensions.ResolutionExtensions.CheckedResolve (Mono.Cecil.TypeReference type) [0x00000] in <filename unknown>:0
at Unity.CecilTools.Extensions.TypeReferenceExtensions.IsAssignableTo (Mono.Cecil.TypeReference typeRef, System.String typeName) [0x00000] in <filename unknown>:0
at cil2as.Extensions.TypeReferenceExtensions.IsDelegate (Mono.Cecil.TypeReference type) [0x00000] in <filename unknown>:0
at cil2as.Decompiler.Transforms.OptimizeCasts.RequiresCastAs (ICSharpCode.NRefactory.CSharp.AstType type) [0x00000] in <filename unknown>:0
at cil2as.Decompiler.Transforms.OptimizeCasts.VisitCastExpression (ICSharpCode.NRefactory.CSharp.CastExpression castExpression, System.Object data) [0x00000] in <filename unknown>:0
Before reaching this point, I must make some modification in NGUI's classes: UIDrawCall.cs, NGUIText.cs and BetterList.cs
As I search for answer, I encounter something similar happened in NGUI 2.6.2, in NGUITools also. But as I tried to apply the fix mentioned, I can't seem to get it to work.
Thank you so much for this amazing foundation
EDIT: I forgot to mention, I'm using Unity 4.2.1 at work, but I've tried with Unity 4.3 with no success
EDIT 2: I tried to build NGUI's examples for testing purpose

, since I want a solid starting point
