What steps will reproduce the problem?
1. Extract either of the provided .swc files to .swf as outlined in
http://haxe.org/manual/swc
2. Include the swf in a Haxe flash project with -swf-lib
3. Reference the GATracker class in Haxe source code.
What is the expected output? What do you see instead?
Haxe compiler terminates with errors:
ga.swf@com.google.analytics.GATracker:1: character 0 : Field addEventListener
has different type than in flash.events.IEventDispatcher
ga.swf@com.google.analytics.GATracker:1: character 0 : Dynamic should be
Dynamic -> Void
ga.swf@com.google.analytics.GATracker:1: character 0 : Field
removeEventListener has different type than in flash.events.IEventDispatcher
ga.swf@com.google.analytics.GATracker:1: character 0 : Dynamic should be
Dynamic -> Void
Build halted with errors (haxe.exe).
What version of the product are you using? On what operating system?
gaforflash-1.0.1.319.zip
Haxe 2.08 Win32
Please provide any additional information below.
Haxe should be able to correct type errors with the patch file feature as
described in: http://haxe.org/manual/swc
However patch attempts such as:
com.google.analytics.GATracker.$listener : Dynamic->Void
only result in this error message, similar to the first:
ga.swf@com.google.analytics.GATracker:1: character 0 : Field addEventListener
has different type than in flash.events.IEventDispatcher
Original issue reported on code.google.com by acubic...@gmail.com on 20 Mar 2012 at 3:45
Original issue reported on code.google.com by
acubic...@gmail.com
on 20 Mar 2012 at 3:45