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
Comment #1
Posted on Apr 30, 2012 by Happy Monkeythis bug is related to Haxe, not to gaforflash
if you need haxe support you can go ask your questions there http://haxe.org/forum
Status: WontFix
Labels:
Type-Defect
Priority-Medium