<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>The Zoo &#187; Flash</title>
	<atom:link href="http://www.dyrehagen.org/tag/flash/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dyrehagen.org</link>
	<description>Technology and life</description>
	<lastBuildDate>Fri, 19 Mar 2010 10:11:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Tracking Flash ActionScript3 with YWA</title>
		<link>http://www.dyrehagen.org/2010/03/13/tracking-flash-actionscript3-with-ywa/</link>
		<comments>http://www.dyrehagen.org/2010/03/13/tracking-flash-actionscript3-with-ywa/#comments</comments>
		<pubDate>Sat, 13 Mar 2010 12:52:27 +0000</pubDate>
		<dc:creator>Jon Espen Nergård</dc:creator>
				<category><![CDATA[Tracking]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[YWA]]></category>

		<guid isPermaLink="false">http://www.dyrehagen.org/?p=9</guid>
		<description><![CDATA[At Astrups.com we use Yahoo! Web Analytics as our main tracking tool, and lately we have come across some problems using the trackingcode given in the YWA documentation for tracking inside flash objects. The problem was that the code in the documentation was designed for ActionScript2. Thanks to Fred @ Eyego we got to solve <a href="http://www.dyrehagen.org/2010/03/13/tracking-flash-actionscript3-with-ywa/" class="more-link">More &#62;</a>]]></description>
			<content:encoded><![CDATA[<p>At <a href="http://www.astrups.com" target="_blank">Astrups.com</a> we use Yahoo! Web Analytics as our main tracking tool, and lately we have come across some problems using the trackingcode given in the YWA documentation for tracking inside flash objects. The problem was that the code in the documentation was designed for ActionScript2. Thanks to Fred @ <a title="Eyego" href="http://www.eyego.no" target="_blank">Eyego</a> we got to solve this issue using this codes:</p>
<p>At the top of the ActionScript you need to put this code(In a as class it have to be inside the classdefinition, if it is a timeline script it will need to be on the top of every script that uses the tracking, it is not enough to just put it on the root):</p>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;"><span class="kw3">import</span> &nbsp;flash.<span class="me1">external</span>.<span class="me1">ExternalInterface</span>;</div>
</div>
<p>If the page is using the YWA v5 tracking codes you may now add this code inside the ActionScript to track elements:</p>
<div>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;">ExternalInterface.<span class="kw3">call</span><span class="br0">&#40;</span><span class="st0">&quot;YWATracker.page(<span class="es0">\&quot;</span>PageTitle<span class="es0">\&quot;</span>,<span class="es0">\&quot;</span>DocumentGroup<span class="es0">\&quot;</span>,<span class="es0">\&quot;</span>Member &nbsp;ID<span class="es0">\&quot;</span>,<span class="es0">\&quot;</span>Action<span class="es0">\&quot;</span>,<span class="es0">\&quot;</span>Amount<span class="es0">\&quot;</span>)&quot;</span><span class="br0">&#41;</span>;</div>
</div>
</div>
<div>Or if the page still is using the YWA v4 code you will need to use this code:</div>
<div>
<div class="codesnip-container" >
<div class="actionscript codesnip" style="font-family:monospace;">ExternalInterface.<span class="kw3">call</span><span class="br0">&#40;</span><span class="st0">&quot;__IT.page(<span class="es0">\&quot;</span>PageTitle<span class="es0">\&quot;</span>,<span class="es0">\&quot;</span>DocumentGroup<span class="es0">\&quot;</span>,<span class="es0">\&quot;</span>Member ID<span class="es0">\&quot;</span>,<span class="es0">\&quot;</span>Action<span class="es0">\&quot;</span>,<span class="es0">\&quot;</span>Amount<span class="es0">\&quot;</span>)&quot;</span><span class="br0">&#41;</span>;</div>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.dyrehagen.org/2010/03/13/tracking-flash-actionscript3-with-ywa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

