|Help: Newbie trying to track AS2 Flash events||jennymesserly||5/6/09 8:44 AM|
Hi All. I'm not quite the master with AS2 yet and am trying to track Flash events with Google Analytics. I got some examples from this site, http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55520, but the examples don't look similar to the code for my buttons. Does anyone have any advice? I appreciate it!
private function setNavigation(Void):Void
this.navArr = new Array(navContainer.sammie, navContainer.natalee, navContainer.sean, navContainer.buchhalter, navContainer.alex, navContainer.keston, navContainer.mary);
this.photoArr = new Array(photoScroller.photos.sammie, photoScroller.photos.natalee, photoScroller.photos.sean, photoScroller.photos.buchhalter, photoScroller.photos.alex, photoScroller.photos.keston, photoScroller.photos.mary);
for(var i:Number=0; i<this.navArr.length; i++)
this.navArr[i].btn.onRelease = Proxy.create(this, onNavRelease, i, this.photoArr[i]._name, true);
this.photoArr[i].onRelease = Proxy.create(this, onNavRelease, i, this.photoArr[i]._name, false);
this.navArr[i].btn.onRollOver = Proxy.create(this, onNavOver, this.navArr[i]);
this.navArr[i].btn.onRollOut = Proxy.create(this, onNavOut, this.navArr[i]);
|Re: Help: Newbie trying to track AS2 Flash events||htmlterrier||5/6/09 9:43 AM|
You should be able to slot the code in after the semi-colon:
If this is what you want to track. You obviously have to customise this the way you need it.
|Re: Help: Newbie trying to track AS2 Flash events||jennymesserly||5/6/09 10:08 AM|
Thanks for being so helpful David.
I want to track when each button is clicked (sammie, natalee, sean, buchhalter, alex, keston and mary). Do I need to somehow add a different tracking URL for each?
|Re: Help: Newbie trying to track AS2 Flash events||htmlterrier||5/7/09 2:29 AM|
If you want to track them differently yes. For example: /virtual//flash/clicks/buchhalter and /virtual//flash/clicks/alex. Did you ever look into EventTracking?
|Re: Help: Newbie trying to track AS2 Flash events||jennymesserly||5/7/09 9:37 AM|
thanks david. yes, i understand they need to be different and i've looked at the links. like i said, i'm new to as2. the buttons are in array, so i don't understand how to match up the unique links.
sorry for the newbie questions!