Posts Tagged ‘as3’

Want to track Adobe Flash? Now you can! (Google)

Monday, November 24th, 2008

[Editor’s note: Google releases AS3 classes and components for Flash and Flex IDEs to allow easy and professional tracking within SWF files at the same level of service as the earlier Javascript based tracking code base for normal HTML pages. Better understand how your Flash movies are actually used.]

Republished from, original 17 Nov. 2008.

Image of Analytics Flash Visual Component in Flash CS3

Today, at the Adobe MAX Conference in San Francisco, in a joint collaboration with our friends at Adobe and a few ace third party developers, we announced a simplified solution for tracking Flash content for everyone, called Google Analytics Tracking For Adobe Flash.

Working at Google over the past couple of years, I’ve had the opportunity to work with with many of our top clients to implement Google Analytics, who have found the power to identify and analyze trends on their web sites highly useful. But, one of the most common implementation challenges has been tracking Flash content on their pages. In the past, Flash tracking was not provided out of the box, and every implementation had to be customized. Moreover, there was a lack of standards, and new developers who tracked Flash had to create their own processes to get it working. With this launch, tracking your Flash content has never been simpler.

What It’s All About
This feature is a translation of the current Google Analytics tracking code into the ActionScript 3 programming language that dramatically simplifies the ability to track Flash, Flex and AS3 content. This new Flash tracking code provides all the rich features of the current JavaScript-based version, including campaign, pageview and event tracking and can be used to track Flash content such as embedded videos, branded microsites and distributed widgets, such as online games.

Now it’s simple for Flash content developers to answer questions like:

  • How many people have watched my video?
  • Are we developing the right creative that attracts new users?
  • How effective is my content at getting people to take action?
Recently, we talked with Matthew McNeely, VP of Engineering at Sprout, a company that helps advertisers design rich media content, about how Sprout has used the code to track distributed content across MySpace and iGoogle:

Supported Platforms
We know there are many levels of experience in the Flash/Flex community so we tried to make it easy for both non-technical designers as well as seasoned ActionScript programmers to take full advantage of this Google Analytics Tracking For Flash. We’ve provided tracking libraries for both Flash and Flex which can be downloaded as a ZIP file here. The libraries include:

  • Flash visual component
  • Flash AS3 library
  • Flex MXML component
  • Flex AS3 library

And you can learn more about how to use them through this developer documentation.

Open Development
At the same time, we know that things change quickly online, and developers might want to review and improve the code. So we’re providing our entire AS3 code base under the Apache 2 License as Open Source, available here.

For me, this is one of the most exciting aspects of this project. If you are a developer and want to improve the code’s functionality, you can contribute to the code base. Or, if you are a company that is running a content platform, such as Sprout mentioned above, you can seamlessly integrate the Flash tracking codebase into your existing architecture.

So while many features get launched at the end of their development cycle, we see this as just the beginning.

And A Special Thanks
This feature has been an open collaboration of a number of very talented people across the globe. We’d like to personally thank our amazing third party developers Zwetan Kjukov and Marc Alcaraz who’ve spent countless hours developing the code base. We’d also like to thank Matt Chotin, Puneet Goel, Rani Kumar and Ajit Gosavi from Adobe who helped us also overcome the obstacles of migrating to an all-AS3 environment.

So please visit the project page to learn more:

We look forward to hearing success stories about how you’ve implemented Google Analytics Tracking For Adobe Flash!

ActionScript 2.0 to AS3 Migration Guide (

Friday, October 31st, 2008

Here’s another handy reference for transitioning from AS2 to AS3 from This follows up to my earlier post from Flashcoder (which had good info but a lot of broken links).

Official Adobe AS 2.0 Migration Guide . . .

ActionScript 2.0 to ActionScript 3.0 Migration (Flashcoder)

Monday, July 28th, 2008

[Editor’s note: I’m just getting the hang of AS2 and now it’s time to learn AS3 to take advantage of the speed optimizations and new features only available in AS3 like the Google Maps Flash Component. The languages are just enough different yet the same to be a pain. This tip sheet should ease the transition.]

Republished from

Full list there in a prettier graphic design table format. Example below, partial for the MovieClip class. Hyperlink goes to Adobe documentation for property.

AS2 MovieClip Class
AS3 flash.display.MovieClip

Note: Many of the MovieClip methods have been moved to other
classes in AS3. All event handlers have been replaced by event objects in
the new event model.

_alpha Property
Moved to DisplayObject class. Initial underscore in name

blendMode Property

cacheAsBitmap Property

_currentframe Property[read-only]
Initial underscore in name removed.

_droptarget Property[read-only]
Moved to Sprite class, initial underscore removed from
name, and changed to CamelCase.

enabled Property
Moved to Sprite class.

filters Property

Property Removed.

_focusrect Property
Moved to InteractiveObject class, removed initial
underscore from name, and changed to use camelCase.

_framesloaded Property[read-only]
Removed initial underscore from name, and changed to use

_height Property
Moved to DisplayObject class, removed initial underscore.

_highquality Property
Removed.hitArea Property
Moved to Sprite class.

_lockroot Property

menu Property

_name Property
Moved to DisplayObject class. Removed initial underscore
from name.

opaqueBackground Property

_parent Property
Moved to DisplayObject class. Removed initial underscore
from name.

_quality Property

_rotation Property
Moved to DisplayObject class. Removed initial underscore
from name.

scale9Grid Property

scrollRect Property
Changed to data type Rectangle.

_soundbuftime Property
Moved to Sound class, and renamed to full wording without
initial underscore.

tabChildren Property

tabEnabled Property

_target Property[read-only]

_totalframes Property[read-only]
Removed initial underscore and changed capitalization.

trackAsMenu Property

transform Property

_url Property[read-only]

useHandCursor Property

_visible Property
Moved to DisplayObject class and removed initial underscore
from name.

_width Property
Moved to DisplayObject class and removed initial underscore
from name.

_x Property
Moved to DisplayObject class and removed initial underscore
from name.

_xmouse Property[read-only]
Moved to DisplayObject class, changed name to mouseX and
removed initial underscore from name.

_xscale Property
Moved to DisplayObject class, changed name to scaleX and
removed initial underscore from name.