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 Google.com, 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:
http://code.google.com/p/gaforflash/

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 (Adobe.com)

Friday, October 31st, 2008

Here’s another handy reference for transitioning from AS2 to AS3 from Adobe.com. 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 Flashcoder.cn.

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
flash.display.DisplayObject.alpha
Moved to DisplayObject class. Initial underscore in name
removed.

blendMode Property
flash.display.DisplayObject.blendMode

cacheAsBitmap Property
flash.display.DisplayObject.cacheAsBitmap

_currentframe Property[read-only]
flash.display.MovieClip.currentFrame
Initial underscore in name removed.

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

enabled Property
flash.display.Sprite.enabled
Moved to Sprite class.

filters Property
flash.display.DisplayObject.filters

focusEnabled
Property Removed.

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

_framesloaded Property[read-only]
flash.display.MovieClip.framesLoaded
Removed initial underscore from name, and changed to use
camelCase.

_height Property
flash.display.DisplayObject.height
Moved to DisplayObject class, removed initial underscore.

_highquality Property
Removed.hitArea Property
flash.display.Sprite.hitArea
Moved to Sprite class.

_lockroot Property
Removed.

menu Property
Removed.

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

opaqueBackground Property
flash.display.DisplayObject.opaqueBackground

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

_quality Property
flash.display.Stage.quality

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

scale9Grid Property
flash.display.DisplayObject.scale9Grid

scrollRect Property
flash.display.DisplayObject.scrollRect
Changed to data type Rectangle.

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

tabChildren Property
flash.display.DisplayObjectContainer.tabChildren

tabEnabled Property
flash.display.InteractiveObject.tabEnabled

_target Property[read-only]
Removed.

_totalframes Property[read-only]
flash.display.MovieClip.totalFrames
Removed initial underscore and changed capitalization.

trackAsMenu Property
flash.display.MovieClip.trackAsMenu

transform Property
flash.display.DisplayObject.transform

_url Property[read-only]
flash.net.URLRequest.url

useHandCursor Property
flash.display.Sprite.useHandCursor

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

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

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

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

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