Archive for November, 2008
Event Tracking in Google Analytics
Google recently announced Google Analytics Tracking For Adobe Flash by publishing gaforflash library. This is a standardized and officially supported way for flash platform to track pageviews and events, with the second available only in Event Tracking Beta. Yesterday I checked it out.
After some misunderstandings in the initiation process (tracker has to be of type AnalyticsTracker instead of GATracker) I got my pageviews tracked. But, as i am not enrolled in Event Tracking Beta, the GA user interface did not provide me with access to the events I had tracked. But today I found the cure for that – it is still possible to access event data by navigating to Content Overview and changing the URL from /analytics/reporting/content to /analytics/reporting/events.
Blur on rotationY = 0? Use transform.matrix
If you have run across bad quality visuals after doing DisplayObject transformations in 3D (rotationX, rotationY, rotationY or z-axis modifications) you might want to use transform.matrix to get back the quality.
I wanted to make a simple 3D animation in Adobe AIR 1.5 / FlashPlayer10 content in AIR – the DisplayObject should rotate around the Y axis from 90 to 0. The animation worked fine, but as soon I was changing the rotationY the content got blurry, even if i just set the rotationY to 0. I tried different solutions and was about to shout out for help when I remembered reading somewhere that as soon as the third dimension is applied to a Display object its transform.matrix is replaced with transform.matrix3D. And indeed after the animation is done I set DisplayObject.transform.matrix and the blur is gone! Flash removes all the 3D transformations. You might see that the image on right is much crisper, especially on the small horizontal lines.
However, if anybody knows why the content is blurred the first place despite no actual 3D transformation and/or other solutions how to remove it, I would love to hear that!
