SempaiGames / haxe-ga

GoogleAnalytics Client API port to Haxe
Other
60 stars 23 forks source link

loadVisitor typecast error #6

Closed Espigah closed 10 years ago

Espigah commented 10 years ago

if(ld.data!=null && ld.data.gaVisitor!=null){ visitor=ld.data.gaVisitor;//error }

fbricker commented 10 years ago

Are you having problems on that line? We're using it without issues

pmead commented 10 years ago

I'm also having an issue on that line (number 87)

It's trying to cast an anonymous object stored in the shared object to a Visitor class without a parsing or de serialisation step in between.

Bit more info:

Platform: flash haxe 3.1.1 openfl 1.3 haxe-ga 0.4.8

possibly the reason for this fork? https://github.com/dimanux/haxe-ga/commit/9ac9a04eb6d3324e7559d198a17a2ffd3b3ae0af

fbricker commented 10 years ago

Hi, thanks for the details. I've merged some of those changes, and also added some controls to avoid haxe-ga from raising exceptions on flash if you're not testing it from a web-server.

New haxelib version is already published: haxe-ga [1.4.10]

You can now do haxelib install haxe-ga :)

Thanks again!