<?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>Application Developer &#187; HTML</title>
	<atom:link href="http://applicationdeveloper.net/category/html/feed/" rel="self" type="application/rss+xml" />
	<link>http://applicationdeveloper.net</link>
	<description>Making money online</description>
	<lastBuildDate>Sat, 26 Sep 2009 20:31:22 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Passing Variables into Flash using FlashVars</title>
		<link></link>
		<comments>http://applicationdeveloper.net/2009/09/26/passing-variables-flash-flashvars/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 20:31:22 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[AX_RunActiveContent]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[flashvars]]></category>
		<category><![CDATA[variables into flash]]></category>

		<guid isPermaLink="false">http://applicationdeveloper.net/?p=86</guid>
		<description><![CDATA[The trouble with Flash has always been the level of communication between Flash and the web page. While this isn&#8217;t a new topic, it&#8217;s one that many webmasters have a lot of issues with. This is written assuming someone already knows how their way around Flash or actionscript. Looking at the standard Flash embed code:&#160;Javascript&#160;&#124;&#160;&#160;copy&#160;code&#160;&#124;?&#160;0102&#60;script [...]]]></description>
			<content:encoded><![CDATA[The trouble with Flash has always been the level of communication between Flash and the web page. While this isn&#8217;t a new topic, it&#8217;s one that many webmasters have a lot of issues with. This is written assuming someone already knows how their way around Flash or actionscript. Looking at the standard Flash embed code:<br /><br /><pre class="devcodeblock" title="Javascript"><table class="devcodetools"><tbody><tr><td>&nbsp;Javascript&nbsp;|&nbsp;</td><td style="background-image:url('http://applicationdeveloper.net/wp-content/plugins/devformatter/img/devformatter-copy.png');background-repeat:no-repeat;background-position:50% 50%;width:16px;height:16px;"/><embed id="ZeroClipboard2" src="http://applicationdeveloper.net/wp-content/plugins/devformatter/_zclipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="16px" height="16px" align="middle" allowScriptAccess="always" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=2&width=16&height=16" wmode="transparent" /></td><td>&nbsp;copy&nbsp;code&nbsp;|</td><td style="cursor:pointer" title="DevFormatter Plugin" onclick="devfmt_credits()">?</td><td width="99%">&nbsp;</td></tr></tbody></table><div class="devcodeoverflow"><table class="devcodearea" width="100%"><tr><td class="devcodelines" width="1%">01</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">02</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;script type=&quot;text/javascript&quot;&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">03</td><td class="devcodelinesarea"><pre class="devcode devcodeline">AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','100','height','100', 'wmode', 'transparent', 'bgcolor', '#000000','src','flashfile','FlashVars','var1=1&amp;var2=','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','flashfile' ); //end AC code</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">04</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;/script&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">05</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;noscript&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">06</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;object classid=&quot;clsid:D27CDB6E-AE6D-11cf-96B8-444553540000&quot; codebase=&quot;http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0&quot; width=&quot;100&quot; height=&quot;100&quot;&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">07</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;param name=&quot;movie&quot; value=&quot;flashfile.swf&quot;&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">08</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;param name=&quot;quality&quot; value=&quot;high&quot;&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">09</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;param name=&quot;FlashVars&quot; value=&quot;var1=1&amp;var2=&quot;&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">10</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;embed src=&quot;flashfile.swf&quot; FlashVars=&quot;var1=1&amp;var2=&quot; quality=&quot;high&quot; pluginspage=&quot;http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash&quot; type=&quot;application/x-shockwave-flash&quot; width=&quot;640&quot; height=&quot;680&quot;&gt;&lt;/embed&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">11</td><td class="devcodelinesarea"><pre class="devcode devcodeline">&lt;/object&gt;</pre></td></tr><tr><td class="devcodelines devcodelinesodd" width="1%">12</td><td class="devcodelinesarea devcodelinesareaodd"><pre class="devcode devcodeline">&lt;/noscript&gt;</pre></td></tr><tr><td class="devcodelines" width="1%">13</td><td class="devcodelinesarea"><pre class="devcode devcodeline"></pre></td></tr></table></div></pre>
<br />In order for this to work, you need a copy of AC_RunActiveContent.js. It's literally everywhere on the Internet. Just <a href="http://www.google.ca/search?q=AC_RunActiveContent.js" target="_blank">Google</a> it and take your pick.<br /><br />In order for this code to work, the settings must be configured to work with your Flash swf. The above code will pass 2 variables, var1=$1 and var2=$2, using FlashVars. Your Flash code in actionscript can then be configured to read the variables within the Flash file using _root.var1 and _root.var2. What you choose to do with the information that gets passed is now up to you. For more information on how to use AC_RunActiveContent, visit the <a href="http://kb2.adobe.com/cps/127/tn_12701.html" target="_blank">Adobe Knowledgebase</a>.]]></content:encoded>
			<wfw:commentRss>http://applicationdeveloper.net/2009/09/26/passing-variables-flash-flashvars/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->