1067 error when using GA Tracking For Adobe Flash (as3)
[ 2010-11-20 19:26:37 | Author: liuhuan ]
Today I worked on a project using google analytics tracking for flash. When I export movie an error occurs:
1067 error - type class unrelated to Display Object( Class 类型值的隐式强制指令的目标是非相关类型 )
To solve this problem i checked the code which defined GA object:
The problem is that I declares this tracker in class defination area, which does not have "this" as a display object. Declares tracker in function inside the class and everything goes well now.
1067 error - type class unrelated to Display Object( Class 类型值的隐式强制指令的目标是非相关类型 )
To solve this problem i checked the code which defined GA object:
var tracker:AnalyticsTracker = new GATracker( this, "UA-*****", "AS3", false);
The problem is that I declares this tracker in class defination area, which does not have "this" as a display object. Declares tracker in function inside the class and everything goes well now.
Comments Feed: http://www.liuhuan.com/blog/feed.asp?q=comment&id=1090
There is no comment on this article.
You can't post comment on this article.