minimedj / gaforflash

Automatically exported from code.google.com/p/gaforflash
Apache License 2.0
0 stars 0 forks source link

Haxe compatibility #98

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago
this bug is related to Haxe, not to gaforflash

if you need haxe support you can go ask your questions there
http://haxe.org/forum

Original comment by zwetan on 30 Apr 2012 at 9:56