<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Falcon for Flash CS3, CS4 &#38; CS5</title>
	<atom:link href="http://falconflash.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://falconflash.wordpress.com</link>
	<description>Simple Connection to Server Scripts with Adobe Flash</description>
	<lastBuildDate>Fri, 02 Dec 2011 14:11:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='falconflash.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Falcon for Flash CS3, CS4 &#38; CS5</title>
		<link>http://falconflash.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://falconflash.wordpress.com/osd.xml" title="Falcon for Flash CS3, CS4 &#38; CS5" />
	<atom:link rel='hub' href='http://falconflash.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Falcon Challenge! Is there a simpler way to get data from a database into a DataGrid in Flash?</title>
		<link>http://falconflash.wordpress.com/2010/01/05/falcon-challenge-is-there-a-simpler-way-to-get-data-from-a-database-into-a-datagrid-in-flash/</link>
		<comments>http://falconflash.wordpress.com/2010/01/05/falcon-challenge-is-there-a-simpler-way-to-get-data-from-a-database-into-a-datagrid-in-flash/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 04:34:20 +0000</pubDate>
		<dc:creator>Dan Zen</dc:creator>
				<category><![CDATA[Analysis]]></category>
		<category><![CDATA[Update]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[challenge]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[Falcon]]></category>
		<category><![CDATA[falconprovider]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://falconflash.wordpress.com/?p=135</guid>
		<description><![CDATA[CHALLENGE! Here is the code required to get data from a MySQL database result in PHP into a DataGrid on stage in Flash. Below is script.php: &#60;?PHP $db = mysql_connect("yourServer", "yourUserName", "yourPassword"); mysql_select_db("yourDatabase",$db); include_once("falconize.php"); // in same directory echo falconize(mysql_query("SELECT * FROM yourTable",$db)); ?&#62; In Flash with DataGrid on stage: // in package import com.danzen.utilities.FalconProvider; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=135&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h2>CHALLENGE!</h2>
<p><img src="http://falconflash.files.wordpress.com/2010/04/mysql1.jpg?w=468" alt="" title="mysql"   class="alignnone size-full wp-image-155" /></p>
<p>Here is the code required to get data from a MySQL database result in PHP into a DataGrid on stage in Flash.  Below is script.php:</p>
<pre><span style="color:#cc0000;">&lt;?PHP</span>
   $db = mysql_connect("yourServer", "yourUserName", "yourPassword");
   mysql_select_db("yourDatabase",$db);

   <span style="color:#ff6600;">include_once("falconize.php");  <span style="color:#888888;">// in same directory</span>
   echo falconize(mysql_query("SELECT * FROM yourTable",$db)); </span>
<span style="color:#cc0000;">?&gt;</span> </pre>
<p>In Flash with DataGrid on stage:</p>
<pre><span style="color:#ff6600;">   <span style="color:#888888;">// in package</span>
   import com.danzen.utilities.FalconProvider;

   <span style="color:#888888;">// in constructor or some other method</span>
   var myFalcon:FalconProvider = new FalconProvider("script.php");
   myFalcon.addEventListener(Event.COMPLETE, function(e:Event) {
      myGrid.dataProvider = e.target.dataProvider;
   });
</span></pre>
<p>We could be wrong, but is this the shortest number of lines around? Let us know if you find a challenger! Download the new <a href="http://flashfeathers.com/feathers/falcon.zip">falcon.zip</a> for the added falconize.php file.</p>
<p>Dan Zen</p>
<p>-2010-</p>
<br /> Tagged: adobe, challenge, datagrid, Falcon, falconprovider, flash, MySQL, php <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/falconflash.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/falconflash.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/falconflash.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/falconflash.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/falconflash.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/falconflash.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/falconflash.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/falconflash.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/falconflash.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/falconflash.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/falconflash.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/falconflash.wordpress.com/135/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/falconflash.wordpress.com/135/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/falconflash.wordpress.com/135/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=135&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://falconflash.wordpress.com/2010/01/05/falcon-challenge-is-there-a-simpler-way-to-get-data-from-a-database-into-a-datagrid-in-flash/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6acba69f7e6f39df3c59443a9d0ce981?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danzen</media:title>
		</media:content>

		<media:content url="http://falconflash.files.wordpress.com/2010/04/mysql1.jpg" medium="image">
			<media:title type="html">mysql</media:title>
		</media:content>
	</item>
		<item>
		<title>FalconProvider Correction</title>
		<link>http://falconflash.wordpress.com/2010/01/03/falconprovider-correction/</link>
		<comments>http://falconflash.wordpress.com/2010/01/03/falconprovider-correction/#comments</comments>
		<pubDate>Sun, 03 Jan 2010 16:33:23 +0000</pubDate>
		<dc:creator>Dan Zen</dc:creator>
				<category><![CDATA[Update]]></category>
		<category><![CDATA[falconprovider]]></category>

		<guid isPermaLink="false">http://falconflash.wordpress.com/?p=164</guid>
		<description><![CDATA[An update has been made to FalconProvider in the Falcon Zip. Thanks to Kasper Kamperman saving the lonely single-result return. Please update your FalconProvider files and recompile any swf&#8217;s that use it. Tagged: falconprovider<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=164&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>An update has been made to FalconProvider in the Falcon Zip.  Thanks to Kasper Kamperman saving the lonely single-result return.  Please update your FalconProvider files and recompile any swf&#8217;s that use it.</p>
<br /> Tagged: falconprovider <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/falconflash.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/falconflash.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/falconflash.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/falconflash.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/falconflash.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/falconflash.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/falconflash.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/falconflash.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/falconflash.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/falconflash.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/falconflash.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/falconflash.wordpress.com/164/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/falconflash.wordpress.com/164/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/falconflash.wordpress.com/164/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=164&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://falconflash.wordpress.com/2010/01/03/falconprovider-correction/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6acba69f7e6f39df3c59443a9d0ce981?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danzen</media:title>
		</media:content>
	</item>
		<item>
		<title>Falcon Flash Launches to Help Designers and Developers Pass Data Between Flash and Server Scripts</title>
		<link>http://falconflash.wordpress.com/2009/07/04/falcon-flash-launches-to-help-designers-and-developers-pass-data-between-flash-and-server-scripts/</link>
		<comments>http://falconflash.wordpress.com/2009/07/04/falcon-flash-launches-to-help-designers-and-developers-pass-data-between-flash-and-server-scripts/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 00:15:10 +0000</pubDate>
		<dc:creator>Dan Zen</dc:creator>
				<category><![CDATA[Press Release]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[designers]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[Falcon]]></category>
		<category><![CDATA[feathers]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[Multiple Variables]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[URLLoader]]></category>
		<category><![CDATA[URLLoaderDataFormat]]></category>
		<category><![CDATA[URLRequest]]></category>
		<category><![CDATA[URLRequestMethod]]></category>
		<category><![CDATA[URLVariables]]></category>
		<category><![CDATA[variables]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://falconflash.wordpress.com/?p=55</guid>
		<description><![CDATA[Falcon Flash at http://falconflash.wordpress.com is the first of the Flash Feather series of advanced interface classes in Flash to launch.  With over one thousand downloads we are pleased that it has been helpful.  It really is a simple wrapper class for the five data classes in Flash.  It lets you easily read text and XML [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=55&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-56" title="falconSample" src="http://falconflash.files.wordpress.com/2009/07/falconsample.jpg?w=468" alt="falconSample"   /></p>
<p>Falcon Flash at <a href="http://falconflash.wordpress.com">http://falconflash.wordpress.com</a> is the first of the Flash Feather series of advanced interface classes in Flash to launch.  With over one thousand downloads we are pleased that it has been helpful.  It really is a simple wrapper class for the five data classes in Flash.  It lets you easily read text and XML or send variables to and from server scripts like PHP.</p>
<pre><strong><span style="color:#ff6600;">var myFalcon:Falcon = new Falcon("yourfile.php or .xml or .txt");
myFalcon.addEventListener(Event.COMPLETE, getData);
function getData(e:Event) {
    trace (myFalcon.data.yourVariable);
    // or just myFalcon.data for XML or txt
}</span></strong></pre>
<p>Flash Feathers is located at <a href="http://flashfeathers.wordpress.com" target="_blank">http://flashfeathers.wordpress.com</a> and through the links at the right.  Flash Feathers features the following open source solutions:</p>
<p>FLASH FEATHERS</p>
<ul>
<li><span style="color:#808080;">ROBIN &#8211; multiuser chat and realtime game classes with Flash and PHP</span></li>
<li><span style="color:#808080;">FALCON &#8211; easy data transfer between Flash and server scripts</span></li>
<li><span style="color:#808080;">HUMMINGBIRD &#8211; parallax effect with mouse movement for 3D menus</span></li>
<li><span style="color:#808080;">GOOSE &#8211; multitouch emulator and processor with just Flash and Browsers</span></li>
<li><span style="color:#808080;">PENGUIN &#8211; tilt emulator and processor for tilt and translation apps</span></li>
<li><span style="color:#808080;">WOODPECKER &#8211; sound frequency and wave animation for MP3 and FLV</span></li>
<li><span style="color:#808080;">GOOSE &#8211; motion capture so a cursor follows your Web cam motion</span></li>
<li><span style="color:#808080;">DODO &#8211; blob detection to provide blobs anywhere there is Web cam motion</span></li>
</ul>
<p>The Falcon Download ZIP file is at left.  There is a standard way to install all the Flash Feathers classes as detailed in the readme.txt file and the various class files and goes like follows:</p>
<p>INSTALLATION</p>
<ul>
<li><span style="color:#888888;">create a classes/ folder somewhere generic on your harddrive</span></li>
<li><span style="color:#888888;">add the classes folder to your Flash Class Path &#8211; in the Flash Menu:<br />
</span></li>
<li><span style="color:#888888;">choose Edit &gt; Preferences &gt; ActionScript &#8211; ActionScript 3 Settings</span></li>
<li><span style="color:#888888;">use the + sign for the source path box to add the path to your classes/ folder</span></li>
<li><span style="color:#888888;">put the provided com/ folder in your classes/ folder</span></li>
</ul>
<p>This way your classes from Flash Feathers will all work together along with other people&#8217;s distributed classes.  DO NOT add the com/ folder to your class path in the Flash preferences!  Read above if this is not clear.</p>
<p>Please have a look at the <a href="http://falconflash.wordpress.com/video/" target="_self">VIDEO</a> page and the sample <a href="http://falconflash.wordpress.com/code/" target="_self">CODE</a> page for more information about Falcon.  You can download the code through the link at the left on <a href="http://falconflash.wordpress.com" target="_self">http://falconflash.wordpress.com</a>.</p>
<p>FRIENDS AND DONATIONS<br />
<a href="http://www.danzen.com/feathers/add.php?feature=Falcon" target="_blank">Please let us know</a> if you use Falcon and we will add you to the Friends area at left.  If you use Falcon for a commercial venture and would <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=6016365" target="_blank">care to donate</a> that would be super!</p>
<p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&amp;hosted_button_id=6016365"><img title="karmatja" src="http://robinflash.files.wordpress.com/2009/06/karmatja.jpg?w=120&#038;h=60" alt="karmatja" width="120" height="60" /></a></p>
<p>FEATHERS<br />
Falcon is one of a selection of open source solutions called Flash Feathers available at <a href="http://flashfeathers.wordpress.com">http://flashfeathers.wordpress.com</a>.</p>
<p><a href="http://flashfeathers.wordpress.com"><img title="feathers" src="http://robinflash.files.wordpress.com/2009/06/feather_01.gif?w=106&#038;h=55" alt="feathers" width="106" height="55" /></a></p>
<p>Dan Zen</p>
<p>-09-</p>
<br /> Tagged: actionscript, adobe, as3, class, data, designers, developers, Falcon, feathers, flash, Multiple Variables, php, URLLoader, URLLoaderDataFormat, URLRequest, URLRequestMethod, URLVariables, variables, XML <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/falconflash.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/falconflash.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/falconflash.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/falconflash.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/falconflash.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/falconflash.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/falconflash.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/falconflash.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/falconflash.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/falconflash.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/falconflash.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/falconflash.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/falconflash.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/falconflash.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=55&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://falconflash.wordpress.com/2009/07/04/falcon-flash-launches-to-help-designers-and-developers-pass-data-between-flash-and-server-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6acba69f7e6f39df3c59443a9d0ce981?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danzen</media:title>
		</media:content>

		<media:content url="http://falconflash.files.wordpress.com/2009/07/falconsample.jpg" medium="image">
			<media:title type="html">falconSample</media:title>
		</media:content>

		<media:content url="http://robinflash.files.wordpress.com/2009/06/karmatja.jpg" medium="image">
			<media:title type="html">karmatja</media:title>
		</media:content>

		<media:content url="http://robinflash.files.wordpress.com/2009/06/feather_01.gif" medium="image">
			<media:title type="html">feathers</media:title>
		</media:content>
	</item>
		<item>
		<title>Data Formats and Recommendations for Data Transfer Between Flash and PHP</title>
		<link>http://falconflash.wordpress.com/2009/06/05/data-formats-and-recommendations-for-data-transfer-between-flash-and-php/</link>
		<comments>http://falconflash.wordpress.com/2009/06/05/data-formats-and-recommendations-for-data-transfer-between-flash-and-php/#comments</comments>
		<pubDate>Fri, 05 Jun 2009 02:50:01 +0000</pubDate>
		<dc:creator>Dan Zen</dc:creator>
				<category><![CDATA[Analysis]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[amfphp]]></category>
		<category><![CDATA[combobox]]></category>
		<category><![CDATA[cs5]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[data formats]]></category>
		<category><![CDATA[datagrid]]></category>
		<category><![CDATA[dataprovider]]></category>
		<category><![CDATA[detailed]]></category>
		<category><![CDATA[explanation]]></category>
		<category><![CDATA[Falcon]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[hierarchy]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[list]]></category>
		<category><![CDATA[nodism]]></category>
		<category><![CDATA[philosophy]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[recommendation]]></category>
		<category><![CDATA[remoting]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[simple explanation]]></category>
		<category><![CDATA[transfer]]></category>
		<category><![CDATA[URLLoader]]></category>
		<category><![CDATA[URLRequest]]></category>
		<category><![CDATA[variables]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://falconflash.wordpress.com/?p=80</guid>
		<description><![CDATA[&#160; INTRODUCTION This post describes various formats of data and their similarities across different systems. It is recommended reading for beginners and long term coders. It will introduce philosophical principles and use specific examples of data transfer between Flash and PHP. There are recommendations on how to transfer data later on in the post but [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=80&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&nbsp;</p>
<h2>INTRODUCTION</h2>
<p>This post describes various formats of data and their similarities across different systems.  It is recommended reading for beginners and long term coders.  It will introduce philosophical principles and use specific examples of data transfer between Flash and PHP.</p>
<p>There are recommendations on how to transfer data later on in the post but before the recommendations will make sense, we need to explore data formats.</p>
<p>&nbsp;</p>
<h2>DATA</h2>
<p>For data to be useful we usually provide a label for the data.  This is called meta data or data about the data!  Below, <em>name</em> is the meta data and <em>Dan</em> is the data. </p>
<pre><span style="color:#ff6600;">   name=Dan</span></pre>
<p>This is how variables work in coding &#8211; you have a variable name and a variable value.  If you have more than one variable you can string them together with a given character &#8211; called a delimiter.  Below is called CGI format and we see it on the end of URLs:</p>
<pre><span style="color:#ff6600;">   name=Dan &amp; gender=male &amp; occupation=inventor</span></pre>
<p>This data holds information about a person and lists various properties of that person.  You can do this for any physical or virtual object and hence, Object Oriented Programming has objects with properties:</p>
<pre><span style="color:#ff6600;">   {name:"Dan", gender:"male", occupation:"inventor"};</span></pre>
<p>Above is an object literal in Flash.  In PHP associative arrays (Hashes) are used:</p>
<pre><span style="color:#ff6600;">   array(name=&gt;"Dan", gender=&gt;"male", occupation=&gt;"inventor");</span></pre>
<p><strong>Note</strong>: that all these hold the same data and meta data &#8211; they just have different syntax.</p>
<p>&nbsp;</p>
<h2>MULTIPLE OBJECTS</h2>
<p>Often we want to keep data on multiple objects:</p>
<pre><span style="color:#ff6600;">   name=Dan &amp; gender=male &amp; occupation=inventor &amp;
   name=Jen &amp; gender=female &amp; occupation=inventor</span></pre>
<p>With variables, the name of the variable needs to be unique.  So we put an index number on the variable names like so (start at 0 or start at 1):</p>
<pre><span style="color:#ff6600;">   name0=Dan &amp; gender0=male &amp; occupation0=inventor &amp;
   name1=Jen &amp; gender1=female &amp; occupation1=inventor</span></pre>
<p>In Flash, we hold multiple objects in an array.  An array is a list of elements.  We can access the elements by their index number.  This index number starts at 0 for almost all programming languages.  Below is an array literal of two objects, me and you. </p>
<pre><span style="color:#ff6600;">   people = [me, you];
   trace (people[0]); <span style="color:#999999;">// would trace me</span>
   trace (people[1]); <span style="color:#999999;">// would trace you</span></span></pre>
<p>Now, remember the objects had name, gender and occupation properties:</p>
<pre><span style="color:#ff6600;">   people = [
      {name:"Dan", gender:"male", occupation:"inventor"},
      {name:"Jen", gender:"female", occupation:"inventor"}
   ]</span></pre>
<p>In PHP this would be a multidimensional associative array (an array of arrays):</p>
<pre><span style="color:#ff6600;">   people = array(
      array(name=&gt;"Dan", gender=&gt;"male", occupation=&gt;"inventor"),
      array(name=&gt;"Jen", gender=&gt;"female", occupation=&gt;"inventor")
   );</span></pre>
<p>&nbsp;</p>
<h2>DATABASES</h2>
<p>To store multiple objects we typically use a database which is just a table with rows (records) and columns (fields).  Below we have two rows and three columns:</p>
<pre><span style="color:#ff6600;">Name   Gender   Occupation
----   ------   ----------
Dan    male     inventor
Jen    female   inventor</span></pre>
<p>To get the data out of the database table we loop through the rows and put the data into variables (CGI format) or into a PHP array or into XML as will later be described. </p>
<p>&nbsp;</p>
<h2>HIERARCHIES</h2>
<p>This is one of the most important aspects of data and you will live in delusion if you do not fully understand.  All data can be represented by a hierarchy. Hierarchies are often thought of as rigid but they are not because you are free to adjust the context.  </p>
<p>In a hierarchy, an object is called a node &#8211; think of a node as a holder. Node 0 is at the top &#8211; it holds all (<a href="http://nodism.org" target="nodism">http://nodism.org</a>).  You can organize / categorize / group the object by any of its properties &#8211; so you have the various permutations (ors) and combinations (ands).  Ors go across and ands go down.  Below is a hierarchy diagram showing the location of the object <em>me</em> based on some of my properties.</p>
<p><img src="http://falconflash.files.wordpress.com/2010/04/nodism.jpg?w=468" alt="Combinations and Permutations of Hierarchy" title="nodism"   class="alignnone size-full wp-image-97" /></p>
<p>Relative to any node, you have its context &#8211; which is above the node and its content which is below the node.  A node also has a parent and can have children and siblings.</p>
<p>Note that the object we are interested in (me) appears in any of the nodes.  It is nice that I am directly related to Node 0 (ring a bell?)</p>
<p>I am categorized under dans. I am categorized under inventors and inventors called dan.  I am categorized under males and male inventors called dan, etc.</p>
<p>Imagine that we had 100 inventors and 100 gardeners.  In the CGI format, we would have to repeat this information 100 times for each.  </p>
<pre><span style="color:#ff6600;">   name=Dan &amp; gender=male &amp; occupation=inventor &amp;
   name=Jen &amp; gender=female &amp; occupation=inventor &amp;
   etc.</span></pre>
<p>It would take up less data if would could say, here are all the inventors and here are all the gardeners. </p>
<pre><span style="color:#ff6600;">   inventors:
      name=Dan &amp; gender=male
      name=Jen &amp; gender=female
      etc.
   gardeners:
      name=Jim &amp; gender=male
      etc.</span></pre>
<p>Note the tabbing or nesting of the data.  This is an indication that a hierarchy is present.  It shows up in table of contents, in directory structures, etc.  All these are just another view of a hierarchy.  Relational databases try to cut down on this repetition and handle hierarchy but it is not always practical.</p>
<p>Short of applying prefixes to variables, there is no native way to create a hierarchy with CGI format.  We call this flat data.  But we can nest with multidimensional arrays in Flash and in PHP &#8211; Here is Flash:</p>
<pre><span style="color:#ff6600;">   people = [
            {occupation:"inventor",
                people:[
                   {name:"Dan", gender:"male"},
                   {name:"Jen", gender:"female"}
                ]
            },
            {occupation:"gardener",
                people:[
                   {name:"Jim", gender:"male"}
                ]
            }];</span></pre>
<p>here is PHP:</p>
<pre><span style="color:#ff6600;">   people = array(
            array(occupation=&gt;"inventor",
               people=&gt;array(
                  array(name=&gt;"Dan", gender=&gt;"male"),
                  array(name=&gt;"Jen", gender=&gt;"female")
               )
            ),
            array(occupation=&gt;"gardener",
               people=&gt;array(
                  array(name=&gt;"Jim", gender=&gt;"male")
               )
            ));</span></pre>
<p>Obviously, going from the simple tabbed list to arrays adds some complexity in syntax but the hierarchical structure is maintained. To simplify and standardize the representation of data in a hierarchy XML was created.</p>
<p>&nbsp;<br />
XML IS ANOTHER WAY TO STORE A HIERARCHY</p>
<p>The XML below has the same data and hierarchy as the arrays and objects above. </p>
<pre><span style="color:#ff6600;">   &lt;people&gt;
      &lt;occupation type="inventor"&gt;
         &lt;person name="Dan" gender="male" /&gt;
         &lt;person name="Jen" gender="female" /&gt;
      &lt;/occupation&gt;
      &lt;occupation type="gardener"&gt;
         &lt;person name="Jim" gender="male" /&gt;
      &lt;/occupation&gt;
   &lt;/people&gt;</span></pre>
<p>A comparison on the structural characters used in the systems is below: </p>
<pre>   XML uses:    &lt;&gt;/="
   PHP uses:    array()=&gt;",
   Flash uses:  []{}",:=</pre>
<p>XML is simpler.  It is a little longer because you have to end your tags with tag names but that sometimes helps clarify what level you are on in your hierarchy.</p>
<p>&nbsp;</p>
<h2>SORTING</h2>
<p>Before creating XML or multidimensional associative arrays you will want to decide how to categorize your data.  This is just choosing your branch in the single hierarchy.  Do you want to sort by occupation or by gender or by occupation and then gender:</p>
<pre><span style="color:#ff6600;">   &lt;people&gt;
      &lt;occupation type="inventor"&gt;
         &lt;gender type="male"&gt;
            &lt;person name="Dan" /&gt;
         &lt;/gender&gt;
         &lt;gender type="female"&gt;
            &lt;person name="Jen" /&gt;
         &lt;/gender&gt;
      &lt;/occupation&gt;
      &lt;occupation type="gardener"&gt;
         &lt;gender type="male"&gt;
            &lt;person name="Jim" /&gt;
         &lt;/gender&gt;
      &lt;/occupation&gt;
   &lt;/people&gt;</span></pre>
<p>Sorting is usually determined by how you want to use or display your data.  These days, with E4X XML parsing in Flash, it is pretty easy to recreate any branch of data so ultimately, the best way to sort your XML is so that it contains the least data.  The XML above has 277 characters where the previous version was 217.  So choose the previous.  A flat version would look like below with 194 characters.  So for three records it is not worth nesting.  But you start saving at five records.</p>
<pre><span style="color:#ff6600;">   &lt;people&gt;
      &lt;person name="Dan" gender="male" occupation="inventor" /&gt;
      &lt;person name="Jen" gender="female" occupation="inventor" /&gt;
      &lt;person name="Jim" gender="male" occupation="gardener" /&gt;
   &lt;/people&gt;</span></pre>
<p>&nbsp;</p>
<h2>CONSIDERATIONS</h2>
<p>In general, what we are aiming for is the smallest amount of data being passed.  There are trade-offs primarily in the usage of meta data.  Do not send meta data if you want the smallest amount of data.  Arrays can hold data in a hierarchy with or without meta data.  But without meta data it can get confusing because you have to know where things are positioned.  In essence, the index numbers become your meta data.</p>
<p>Textual data is small compared to image data like for a picture.  So we usually do not mind sending meta data.  Re-evaluate this for thousands of records for instance.  Or at least keep your meta data (and data) small: n1=dan&amp;g1=m&amp;o1=inventor&amp;n2=Jen etc.</p>
<p>A second consideration is ease of application which is sometimes related to lines of code required to do data transfer. Below are the three popular data formats as described above:</p>
<p>1. Variables<br />
2. Arrays / Objects<br />
3. XML</p>
<p>These are all relatively easy if the data is small and unrelated:</p>
<pre><span style="color:#ff6600;">   <span style="color:#999999;">// variables</span>
   backgroundColor=#AAAAAA&amp;width=500

   <span style="color:#999999;">// associative array</span>
   $config = array(backgroundColor=&gt;"#AAAAAA", width=&gt;"500");

   <span style="color:#999999;">// object</span>
   config = {backgroundColor:"#AAAAAA", width:"500"};

   <span style="color:#999999;">// XML</span>
   &lt;config&gt;
      &lt;background color="#AAAAAA" /&gt;
      &lt;width value="500" /&gt;
   &lt;/config&gt;</span></pre>
<p>For multiple data you loop through data.  Here is a sample of looping through a MySQL data result for each of the three types:</p>
<pre><span style="color:#ff6600;">   <span style="color:#999999;">// variables</span>
   $i = 0;
   while ($myrow = mysql_fetch_array($result)) {
      echo "name".$i."=".urlencode($myrow['name']).
      "&amp;gender".$i."=".urlencode($myrow['gender']).
      "&amp;occupation".$i."=".urlencode($myrow['occupation'])."&amp;";
             $i++;
   }

   <span style="color:#999999;">// multidimensional associative arrays</span>
   $config = array();
   while ($myrow = mysql_fetch_array($result)) {
      array_push($myrow, $config);
   }

   <span style="color:#999999;">// XML</span>
   $config = "&lt;config&gt;";
   while ($myrow = mysql_fetch_array($result)) {
      $config .= '&lt;person name="'.urlencode($myrow['name']).'
      " gender="'.urlencode($myrow['gender']).'
      " occupation="'.urlencode($myrow['occupation']).' /&gt;';
   }
   $config .= "&lt;/config&gt;";</span></pre>
<p>To create a hierarchy as you loop is more tricky.  You do not do this with variables. XML for instance it looks like below &#8211; multidimensional associative arrays would be similar:</p>
<pre><span style="color:#ff6600;">   $query = "SELECT * FROM people ORDER BY occupation, name";
   $result = mysql_query($query,$db);
   $lastoccupation = "";
   $output = '&lt;people&gt;';
   if ($result) {
      while ($myrow = mysql_fetch_row($result)) {
         $name = $myrow["name"];
         $gender = $myrow["gender"];
         $occupation = $myrow["occupation"];
         if ($occupation != $lastoccupation) {
            if ($lastoccupation != "") {
               $output .= '&lt;/occupation&gt;\n';
            }
            $output .= '&lt;occupation type="$occupation"&gt;\n';
            $lastoccupation = $occupation;
         }
         $output .= '&lt;person name="$name" gender="$gender" /&gt;\n';
      }
      $output .= '&lt;/occupation&gt;';
   }
   $output .= '&lt;/people&gt;';</span></pre>
<p>So, not a lot of fun to form hierarchical data.  You may be able to find custom PHP classes that will help you form hierarchical data but then there is the step of preparing the classes and calling them.  In the end, the flat data will probably do for most cases unless you have hundreds of records. We have a surprise for you to make flat data easy in PHP.</p>
<p>One more consideration is JSON &#8211; JavaScript Object Notation. JSON is an alternative to XML as a way to pass a hierarchy.  It does this by turning multidimensional associative arrays (arrays and objects) into a delimited string in one system (like PHP or Flash) so you can pass the data to a receiving system.  In the receiving system, JSON parses (reads) the string and turns it back into  multidimensional associative arrays (arrays and objects).</p>
<p>You send the JSON string as a variable value.</p>
<p>&nbsp;</p>
<h2>OPTIONS</h2>
<p>Now that we have explored data, here are some options to transfer data.</p>
<p>1. Native to Flash, is the URLLoader and associated classes such as URLRequest, etc.  This can get as complicated as 5 classes but can also be done in the two classes above taking various defaults (you&#8217;ll need an Event class too).  URLLoader can pass variables, XML or JSON.</p>
<p>2. Falcon (<a href="http://falconflash.wordpress.com">http://falconflash.wordpress.com</a>) is a way of transferring data such as variables, XML and JSON.  It does so in one class and is a wrapper class for the native Flash data classes.  Falcon also has a PHP function called falconize which in one line, turns a data result into numbered variables that FalconProvider automatically converts to a Flash DataProvider for populating List, ComboBox and DataGrid objects.</p>
<p>3. Flash Remoting is a way to call functions between systems.  You can pass parameters to the functions and return results.  The parameters and results can be variables, XML, and multidimensional associative arrays (arrays and objects). See AMFPHP.  Remoting is a binary protocol so uses less data than string based operations.  You probably will not notice until you are in hundreds if not thousands of records.  Remoting requires classes on the Flash and PHP side and directory systems to be put in place.  So it can be initially more complex but those that use it and get used to it like it.</p>
<p>&nbsp;</p>
<h2>RECOMMENDATIONS</h2>
<p>Assuming you have users and a publisher (author or client, etc.)</p>
<p><span style="color:#cc0000;">1. Store publisher-updated variables in XML and collect with Falcon</span></p>
<p><span style="color:#cc0000;">2. Store user-updated data in a database and send variables with Falcon</span></p>
<p><span style="color:#cc0000;">3. Use FalconProvider and falconize for related, tabular data</span></p>
<p><span style="color:#cc0000;">4. For large numbers (over 100) of nested data use JSON and Falcon</span></p>
<p><span style="color:#cc0000;">5. For really large numbers (over 1000) of nested data send arrays with remoting</span></p>
<p>More on recommendation 3:</p>
<p>In PHP, the falconize function automatically numbers your database query results and echoes them to Flash in the CGI Format.  It does this in one line as shown below.  $db is your database connection, $error is any errors you may have recorded inputting data before this call.</p>
<pre><span style="color:#ff6600;">   echo falconize(mysql_query("SELECT * FROM table",$db), $error);</span></pre>
<p>Flash List, ComboBox and DataGrid objects use a DataProvider object to populate their displays. A DataProvider is a linear array of objects &#8211; one object per row.  Each object has properties to hold the values for each column in the row. We have seen this before &#8211; the linear array of objects:</p>
<pre><span style="color:#ff6600;">   myDataProvider = [
      {name:"Dan", gender:"male", occupation:"inventor"},
      {name:"Jen", gender:"female", occupation:"inventor"}
   ];</span></pre>
<p>FalconProvider automatically makes a DataProvider for you so in your Event.COMPLETE method you can assign this ready-made DataProvider to your DataGrid for example as follows:</p>
<pre><span style="color:#ff6600;">   myDataGrid.dataProvider = myFalconProvider.dataProvider;</span></pre>
<p>This means, with FalconProvider, getting data from a database result to a DataGrid is as easy as getting a single variable &#8211; and that is pretty easy!</p>
<p>1. Import your class<br />
2. Call your server (PHP)<br />
3. Set Event Handler for data coming back<br />
4. Access the data coming back</p>
<p>&nbsp;</p>
<h2>SUMMARY</h2>
<p>In this post:</p>
<ul>
<li>an explanation of the differences between flat (variables) and hierarchical data (multidimensional arrays and XML).</li>
<li>the isomorphism of multidimensional associative arrays and XML (they are the same).</li>
<li>arrays and objects can be passed by converting to JSON or using remoting.</li>
<li>an alternative is XML.</li>
<li>the native Flash URLLoader class and associated classes can send and receive variables, XML or JSON as can Falcon which uses one class.</li>
<li>falconize lets you echo numbered variables matching your database results in one line of code in PHP.</li>
<li>FalconProvider has added functionality of automatically making a DataProvider for List, ComboBox and DataGrid objects.</li>
<li>recommendations on what system to use resulted in choosing Falcon except for very large data sets when you might consider remoting for speed.</li>
</ul>
<p>Inventor, Dan Zen</p>
<p>-2010-</p>
<br /> Tagged: adobe, amfphp, combobox, cs5, data, data formats, datagrid, dataprovider, detailed, explanation, Falcon, flash, hierarchy, json, list, nodism, philosophy, php, recommendation, remoting, simple, simple explanation, transfer, URLLoader, URLRequest, variables, XML <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/falconflash.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/falconflash.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/falconflash.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/falconflash.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/falconflash.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/falconflash.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/falconflash.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/falconflash.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/falconflash.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/falconflash.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/falconflash.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/falconflash.wordpress.com/80/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/falconflash.wordpress.com/80/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/falconflash.wordpress.com/80/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=80&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://falconflash.wordpress.com/2009/06/05/data-formats-and-recommendations-for-data-transfer-between-flash-and-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6acba69f7e6f39df3c59443a9d0ce981?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danzen</media:title>
		</media:content>

		<media:content url="http://falconflash.files.wordpress.com/2010/04/nodism.jpg" medium="image">
			<media:title type="html">nodism</media:title>
		</media:content>
	</item>
		<item>
		<title>Falcon &#8211; Simple Flash AS3 Data Class &#8211; Keywords</title>
		<link>http://falconflash.wordpress.com/2009/05/06/falcon-simple-flash-as3-data-class-keywords/</link>
		<comments>http://falconflash.wordpress.com/2009/05/06/falcon-simple-flash-as3-data-class-keywords/#comments</comments>
		<pubDate>Wed, 06 May 2009 14:27:42 +0000</pubDate>
		<dc:creator>Dan Zen</dc:creator>
				<category><![CDATA[Google]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Falcon]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[variables]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://falconflash.wordpress.com/?p=38</guid>
		<description><![CDATA[Here is a list of keywords that have been used to find Falcon &#8211; Flash AS3 Data Class. Click the Falcon press release link to find out more about how Falcon can help you get data in and out of Flash.  Here is a post that shows a simple example of sending variables back and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=38&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone" src="http://falconflash.files.wordpress.com/2008/01/falconbanner.jpg?w=440&#038;h=122" alt="" width="440" height="122" /></p>
<p>Here is a list of keywords that have been used to find Falcon &#8211; Flash AS3 Data Class.</p>
<p>Click the <a href="http://falconflash.wordpress.com/2008/07/15/falcon-adobe-flash-9-as3-data-class-replaces-urlvariables-urlrequest-urlrequestmethod-urlloader-and-urlloaderdataformat/" target="_self">Falcon press release link</a> to find out more about how Falcon can help you get data in and out of Flash.  Here is a post that shows a simple example of <a href="http://falconflash.wordpress.com/2009/02/01/passing-multiple-variables-between-flash-and-php/">sending variables back and forth between Flash and PHP</a>.  Please see the <a href="http://falconflash.wordpress.com/examples/">examples link</a> above for more examples.  Hope it helps!<br />
<br />&nbsp;</p>
<table class="statsDay" border="0">
<tbody>
<tr class="alternate">
<td class="label">flash cs3 xml</td>
<td class="views">130</td>
</tr>
<tr>
<td class="label">falcon flash</td>
<td class="views">119</td>
</tr>
<tr class="alternate">
<td class="label">urlvariables</td>
<td class="views">48</td>
</tr>
<tr>
<td class="label">xml flash cs3</td>
<td class="views">41</td>
</tr>
<tr class="alternate">
<td class="label">import xml into flash</td>
<td class="views">39</td>
</tr>
<tr>
<td class="label">load xml into flash</td>
<td class="views">38</td>
</tr>
<tr class="alternate">
<td class="label">xml in flash cs3</td>
<td class="views">38</td>
</tr>
<tr>
<td class="label">as3 urlvariables</td>
<td class="views">30</td>
</tr>
<tr class="alternate">
<td class="label">falcon as3</td>
<td class="views">28</td>
</tr>
<tr>
<td class="label">loading xml into flash</td>
<td class="views">27</td>
</tr>
<tr class="alternate">
<td class="label">e.target.data</td>
<td class="views">25</td>
</tr>
<tr>
<td class="label">loading xml into as3</td>
<td class="views">24</td>
</tr>
<tr class="alternate">
<td class="label">loading xml as3</td>
<td class="views">24</td>
</tr>
<tr>
<td class="label">flash as3 urlvariables</td>
<td class="views">23</td>
</tr>
<tr class="alternate">
<td class="label">importing xml into flash cs3</td>
<td class="views">22</td>
</tr>
<tr>
<td class="label">load xml into flash cs3</td>
<td class="views">20</td>
</tr>
<tr class="alternate">
<td class="label">xml and flash cs3</td>
<td class="views">20</td>
</tr>
<tr>
<td class="label">xml into flash cs3</td>
<td class="views">19</td>
</tr>
<tr class="alternate">
<td class="label">as3 urlrequestmethod</td>
<td class="views">19</td>
</tr>
<tr>
<td class="label">urlrequest as3</td>
<td class="views">18</td>
</tr>
<tr class="alternate">
<td class="label">flash urlloader</td>
<td class="views">18</td>
</tr>
<tr>
<td class="label">flash cs3 and xml</td>
<td class="views">18</td>
</tr>
<tr class="alternate">
<td class="label">falcon icon</td>
<td class="views">17</td>
</tr>
<tr>
<td class="label">actionscript 3 load xml</td>
<td class="views">17</td>
</tr>
<tr class="alternate">
<td class="label">flash falcon</td>
<td class="views">16</td>
</tr>
<tr>
<td class="label">flash cs3 load xml</td>
<td class="views">16</td>
</tr>
<tr class="alternate">
<td class="label">urlvariables as3</td>
<td class="views">16</td>
</tr>
<tr>
<td class="label">as3 load xml text</td>
<td class="views">15</td>
</tr>
<tr class="alternate">
<td class="label">load xml into flash as3</td>
<td class="views">15</td>
</tr>
<tr>
<td class="label">xml text in flash cs3</td>
<td class="views">14</td>
</tr>
<tr class="alternate">
<td class="label">flash cs3 xml text</td>
<td class="views">14</td>
</tr>
<tr>
<td class="label">flash as3 load xml</td>
<td class="views">13</td>
</tr>
<tr class="alternate">
<td class="label">as3 load xml</td>
<td class="views">13</td>
</tr>
<tr>
<td class="label">load xml in flash cs3</td>
<td class="views">13</td>
</tr>
<tr class="alternate">
<td class="label">loading xml into flash as3</td>
<td class="views">13</td>
</tr>
<tr>
<td class="label">flash urlvariables</td>
<td class="views">12</td>
</tr>
<tr class="alternate">
<td class="label">as3 urlloaderdataformat</td>
<td class="views">12</td>
</tr>
<tr>
<td class="label">loading xml into flash cs3</td>
<td class="views">12</td>
</tr>
<tr class="alternate">
<td class="label">import xml flash cs3</td>
<td class="views">12</td>
</tr>
<tr>
<td class="label">flash as3 urlrequest</td>
<td class="views">12</td>
</tr>
<tr class="alternate">
<td class="label">loading xml in flash</td>
<td class="views">11</td>
</tr>
<tr>
<td class="label">actionscript 3.0 load xml</td>
<td class="views">11</td>
</tr>
<tr class="alternate">
<td class="label">xml text flash cs3</td>
<td class="views">11</td>
</tr>
<tr>
<td class="label">actionscript load xml</td>
<td class="views">11</td>
</tr>
<tr class="alternate">
<td class="label">falconflash</td>
<td class="views">11</td>
</tr>
<tr>
<td class="label">load xml actionscript 3</td>
<td class="views">11</td>
</tr>
<tr class="alternate">
<td class="label">urlvariables flash</td>
<td class="views">11</td>
</tr>
<tr>
<td class="label">as3 urlrequest</td>
<td class="views">11</td>
</tr>
<tr class="alternate">
<td class="label">importing xml data into flash cs3</td>
<td class="views">10</td>
</tr>
<tr>
<td class="label">loading xml in as3</td>
</tr>
</tbody>
</table>
<br /> Tagged: as3, data, Falcon, flash, variables, XML <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/falconflash.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/falconflash.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/falconflash.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/falconflash.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/falconflash.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/falconflash.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/falconflash.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/falconflash.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/falconflash.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/falconflash.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/falconflash.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/falconflash.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/falconflash.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/falconflash.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=38&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://falconflash.wordpress.com/2009/05/06/falcon-simple-flash-as3-data-class-keywords/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6acba69f7e6f39df3c59443a9d0ce981?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danzen</media:title>
		</media:content>

		<media:content url="http://falconflash.files.wordpress.com/2008/01/falconbanner.jpg" medium="image" />
	</item>
		<item>
		<title>Passing Multiple Variables Between Flash and PHP</title>
		<link>http://falconflash.wordpress.com/2009/02/01/passing-multiple-variables-between-flash-and-php/</link>
		<comments>http://falconflash.wordpress.com/2009/02/01/passing-multiple-variables-between-flash-and-php/#comments</comments>
		<pubDate>Sun, 01 Feb 2009 01:13:32 +0000</pubDate>
		<dc:creator>Dan Zen</dc:creator>
				<category><![CDATA[Multiple Variables]]></category>
		<category><![CDATA[Update]]></category>
		<category><![CDATA[actionscript]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[cs3]]></category>
		<category><![CDATA[cs4]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Falcon]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://falconflash.wordpress.com/?p=31</guid>
		<description><![CDATA[Click here to download a simple example of passing multiple variables from Flash to PHP using the Falcon Class.  This has always been available with the Falcon class but the original variables example uses the FalconProvider class &#8211; and has the added complexities of a database (MySQL) and a DataGrid component in Flash. This zip [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=31&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-33" title="flashtophp1" src="http://falconflash.files.wordpress.com/2009/02/flashtophp1.jpg?w=468" alt="flashtophp1"   /></p>
<p>Click here to<a href="http://www.danzen.com/falcon/falconMultipleVariables.zip"> download a simple example of passing multiple variables</a> from Flash to PHP using the Falcon Class.  This has always been available with the Falcon class but the original variables example uses the FalconProvider class &#8211; and has the added complexities of a database (MySQL) and a DataGrid component in Flash.</p>
<p><strong><span style="color:#99cc00;">This zip has the very basics of passing variables between Flash and the server.</span></strong></p>
<p>This zip also removes all the examples provided in the main Falcon ZIP which may make it easier for some to organize themselves ;-)  If you want XML, Text, DataGrids or lists, etc. then get the original ZIP.</p>
<p>-09-</p>
<br /> Tagged: actionscript, adobe, as3, class, cs3, cs4, data, Falcon, flash, Multiple Variables, php, variables <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/falconflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/falconflash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/falconflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/falconflash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/falconflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/falconflash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/falconflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/falconflash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/falconflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/falconflash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/falconflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/falconflash.wordpress.com/31/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/falconflash.wordpress.com/31/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/falconflash.wordpress.com/31/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=31&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://falconflash.wordpress.com/2009/02/01/passing-multiple-variables-between-flash-and-php/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6acba69f7e6f39df3c59443a9d0ce981?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danzen</media:title>
		</media:content>

		<media:content url="http://falconflash.files.wordpress.com/2009/02/flashtophp1.jpg" medium="image">
			<media:title type="html">flashtophp1</media:title>
		</media:content>
	</item>
		<item>
		<title>Sending Multiple Variables from Flash to PHP and from PHP to Flash using Falcon</title>
		<link>http://falconflash.wordpress.com/2009/01/27/sending-multiple-variables-from-flash-to-php-and-from-php-to-flash-using-falcon/</link>
		<comments>http://falconflash.wordpress.com/2009/01/27/sending-multiple-variables-from-flash-to-php-and-from-php-to-flash-using-falcon/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 23:54:39 +0000</pubDate>
		<dc:creator>Dan Zen</dc:creator>
				<category><![CDATA[Multiple Variables]]></category>
		<category><![CDATA[cs4]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Falcon]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[variables]]></category>

		<guid isPermaLink="false">http://falconflash.wordpress.com/?p=28</guid>
		<description><![CDATA[We have had a few questions about sending multiple variables from Flash to PHP and from PHP to Flash. You can certainly send multiple variables as outlined below: TO SEND MULTIPLE VARIABLES FROM FLASH TO PHP: make an object that holds the variables you want to send as properties and pass that object to Falcon [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=28&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>We have had a few questions about sending multiple variables from Flash to PHP and from PHP to Flash.  You can certainly send multiple variables as outlined below:</p>
<p><strong>TO SEND MULTIPLE VARIABLES FROM FLASH TO PHP:</strong></p>
<p>make an object that holds the variables you want to send as properties and pass that object to Falcon as the third parameter:</p>
<blockquote><p>
var myObject = new Object();<br />
myObject.text1 = yourText1.text;<br />
myObject.text2 = yourText2.text;<br />
myObject.text3 = yourText3.text;</p>
<p>var myFalcon:Falcon=new Falcon(&quot;http://localhost/serverscript.php&quot;, Falcon.VARIABLES, myObject);
</p></blockquote>
<p>Then you can collect these in PHP as $_POST[&quot;text1&quot;], etc.</p>
<p><strong>TO SEND MULTIPLE VARIABLES FROM PHP TO FLASH</strong></p>
<p>You must echo only the variables in cgi format so that is url encoded format as follows:</p>
<p>var1=value1&amp;var2=value2&amp;var3=value3, etc.</p>
<p>In practice, in PHP it looks like this:</p>
<blockquote><p>
$var1 = &quot;some text that might have bad &amp; or = etc.&quot;;<br />
$var2 = &quot;some other info&quot;;<br />
$var3 = 22;</p>
<p>echo &quot;var1=&quot;.urlencode($var1).&quot;&amp;var2=&quot;.urlencode($var2).&quot;&amp;var3=&quot;.urlencode($var3);
</p></blockquote>
<p>This should be the only line that PHP echoes.  You should not have any line returns before the start of PHP or after the end of PHP.</p>
<p>In Flash, you would retrieve these variables with Falcon in the COMPLETE event method like so:</p>
<blockquote><p>
trace (e.target.data.var1, e.target.data.var2, e.target.data.var3);
</p></blockquote>
<p>You can use the variables however you want ;-)</p>
<br /> Tagged: cs4, data, Falcon, flash, Multiple Variables, php, variables <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/falconflash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/falconflash.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/falconflash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/falconflash.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/falconflash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/falconflash.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/falconflash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/falconflash.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/falconflash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/falconflash.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/falconflash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/falconflash.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/falconflash.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/falconflash.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=28&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://falconflash.wordpress.com/2009/01/27/sending-multiple-variables-from-flash-to-php-and-from-php-to-flash-using-falcon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6acba69f7e6f39df3c59443a9d0ce981?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danzen</media:title>
		</media:content>
	</item>
		<item>
		<title>Falcon &#8211; Adobe Flash 9 AS3 Data Class Replaces URLVariables, URLRequest, URLRequestMethod, URLLoader and URLLoaderDataFormat</title>
		<link>http://falconflash.wordpress.com/2008/07/15/falcon-adobe-flash-9-as3-data-class-replaces-urlvariables-urlrequest-urlrequestmethod-urlloader-and-urlloaderdataformat/</link>
		<comments>http://falconflash.wordpress.com/2008/07/15/falcon-adobe-flash-9-as3-data-class-replaces-urlvariables-urlrequest-urlrequestmethod-urlloader-and-urlloaderdataformat/#comments</comments>
		<pubDate>Tue, 15 Jul 2008 05:44:28 +0000</pubDate>
		<dc:creator>Dan Zen</dc:creator>
				<category><![CDATA[Press Release]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[cs3]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Falcon]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[URLLoader]]></category>
		<category><![CDATA[URLLoaderDataFormat]]></category>
		<category><![CDATA[URLRequest]]></category>
		<category><![CDATA[URLRequestMethod]]></category>
		<category><![CDATA[URLVariables]]></category>

		<guid isPermaLink="false">http://falconflash.wordpress.com/2008/01/21/falcon-adobe-flash-9-as3-data-class-replaces-urlvariables-urlrequest-urlrequestmethod-urlloader-and-urlloaderdataformat/</guid>
		<description><![CDATA[Falcon! What a grand code name ;-). Here is the Falcon ZIP file with instructions and samples. Falcon is a custom class that wraps the Adobe Flash ActionScript 3 five data classes normally used to access a server script or system such as PHP, Perl, Ruby, ASP, etc. and then of course on to databases [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=3&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.danzen.com/falcon/falcon.zip" target="_blank"><img style="border:0 none;" src="http://falconflash.files.wordpress.com/2008/01/falconbanner.jpg?w=440&#038;h=122" border="0" alt="Falcon - Adobe Flash 9 AS3 Server Script Connection Class" width="440" height="122" /></a></p>
<p>Falcon!  What a grand code name ;-).</p>
<p>Here is the <a href="http://www.danzen.com/falcon/falcon.zip">Falcon ZIP file</a> with instructions and samples.</p>
<p>Falcon is a custom class that wraps the Adobe Flash ActionScript 3 five data classes normally used to access a server script or system such as PHP, Perl, Ruby, ASP, etc.  and then of course on to databases like MySQL, SQL Server, etc.   It makes it so that you do not have to worry about the URLVariables, URLRequest, URLRequestMethod, URLLoader and URLLoaderDataFormat code.</p>
<p>You pass the following parameters to the Falcon AS3 data class:</p>
<ul>
<li>the URL to your server script, text, binary data or XML File</li>
<li>an optional type of data &#8211; Falcon.VARIABLES, TEXT, BINARY or XML_DATA</li>
<li>an optional data object that holds variables to send to the server</li>
</ul>
<p>You set an Event.COMPLETE listener to call a function.  The event object&#8217;s target has three properties.  A Boolean <em>error</em> property, a <em>data</em> property and if you use the FalconProvider class there is a <em>dataProvider</em> property:</p>
<p>1. The <em>error</em> property (eventObject.target.error)  will be true if connection to the server fails and false if it succeeds.</p>
<p>2. The <em>data</em> property (eventObject.target.data) holds the variables, text, binary or XML that comes back from the server:</p>
<ul>
<li>Variables &#8211; if your server script sends age=23 and you ask for data.age then you get 23</li>
<li>Text &#8211; for example from a text file just use myTextField.text = data;</li>
<li>Binary &#8211; this is your binary feed (actually untested but should work)</li>
<li>XML &#8211; this a Flash XML object representing the XML from the server</li>
</ul>
<p>3. Note there are two classes you can use &#8211; Falcon and FalconProvider.  In FalconProvider, the <em>dataProvider</em> property (eventObject.target.dataProvider)  is provided in the variables case when the variables come back in some sort of sequence like name1, age1, name2, age2, etc.  FalconProvider automatically provides a DataProvider object with columns of name, age, etc.  You can use this for a DataGrid or if you use label1, data1, label2, data2 then you can use it for a List or ComboBox.  You must have a component that uses the DataProvider (DataGrid, List, etc.) in the library of your FLA if you use the FalconProvider class.</p>
<p>4.  Please note that if you use the default Falcon.VARIABLES, then your server script such as PHP must return at least one key/value pair &#8211; in the following format  variable=value&amp;variable2=value.  So in a simple example &#8211; status=complete.   You cannot have any lines above your &lt;?PHP either otherwise the new line characters cause problems.</p>
<p>5.  If you want to avoid caching issues, put a random number on the end of your script call like so: somefile.php?rand=&#8221;+Math.random().</p>
<p>Falcon was created by Inventor <a href="http://danzen.wordpress.com" target="_blank">Dan Zen</a>.  You may use the code as you wish and if possible a credit link to this site will help make the world an easier place ;-).  If you are interested in learning to make classes like this or other aspects of interactive multimedia please visit the <a href="http://interactivemultimedia.wordpress.com" target="_blank">Sheridan Interactive Multimedia</a> blog for information about its one year post grad college program.  Thank you to all at <a href="http://www.adobe.com">Adobe</a> for such great tools and for our wonderful Flash user group, <a href="http://www.flashinto.com">FITO</a> in Toronto.</p>
<p>-30-</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/falconflash.wordpress.com/3/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/falconflash.wordpress.com/3/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/falconflash.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/falconflash.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/falconflash.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/falconflash.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/falconflash.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/falconflash.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/falconflash.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/falconflash.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/falconflash.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/falconflash.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/falconflash.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/falconflash.wordpress.com/3/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/falconflash.wordpress.com/3/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/falconflash.wordpress.com/3/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=3&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://falconflash.wordpress.com/2008/07/15/falcon-adobe-flash-9-as3-data-class-replaces-urlvariables-urlrequest-urlrequestmethod-urlloader-and-urlloaderdataformat/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6acba69f7e6f39df3c59443a9d0ce981?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danzen</media:title>
		</media:content>

		<media:content url="http://falconflash.files.wordpress.com/2008/01/falconbanner.jpg" medium="image">
			<media:title type="html">Falcon - Adobe Flash 9 AS3 Server Script Connection Class</media:title>
		</media:content>
	</item>
		<item>
		<title>Update to Falcon for Flash &#8211; Easy Way to Access External Text Files, Variables and XML in Flash CS3 ActionScript 3</title>
		<link>http://falconflash.wordpress.com/2008/04/11/update-to-falcon-for-flash-easy-way-to-access-external-text-files-variables-and-xml-in-flash-cs3-actionscript-3/</link>
		<comments>http://falconflash.wordpress.com/2008/04/11/update-to-falcon-for-flash-easy-way-to-access-external-text-files-variables-and-xml-in-flash-cs3-actionscript-3/#comments</comments>
		<pubDate>Fri, 11 Apr 2008 22:44:13 +0000</pubDate>
		<dc:creator>Dan Zen</dc:creator>
				<category><![CDATA[Update]]></category>
		<category><![CDATA[as3]]></category>
		<category><![CDATA[cs3]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[external]]></category>
		<category><![CDATA[Falcon]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[text]]></category>
		<category><![CDATA[variables]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://falconflash.wordpress.com/?p=20</guid>
		<description><![CDATA[Update: In the last update, an old version of the XML example was accidentally used. The new ZIP includes the correction. Thanks to one of our users for letting us know about the bug. It turns out that the parameters were being passed in the wrong order and thus the XML coming back was being [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=20&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Update: In the last update, an old version of the XML example was accidentally used.  The new ZIP includes the correction.  Thanks to one of our users for letting us know about the bug.  It turns out that the parameters were being passed in the wrong order and thus the XML coming back was being treated as a String rather than XML.</p>
<p><img class="alignnone size-full wp-image-12" src="http://falconflash.files.wordpress.com/2008/02/smallicon.gif?w=468" alt="" /></p>
<p>Falcon is an Adobe Flash ActionScript CS3 Class that wraps up the native data classes to send and receive variables to a text, XML file or server script like PHP connected to DataBases like MySQL, etc. When using Falcon, you will not have to use URLVariables, URLRequest, URLRequestMethod, URLLoader and URLLoaderDataFormat.</p>
<p>We have just updated Falcon to remove the automatic DataProvider feature because that required a component with a DataProvider to be placed in the FLA. We have instead, additionally provided a FalconProvider class that is the same as Faclon but has the automatic DataProvider feature. Use the FalconProvider class when you have sequenced variables to be put into a DataGrid, ComboBox, List, TileList, etc.</p>
<p>Use Falcon when you want to load in text, XML or if you want to send or receive variables from a server script. We have been using Falcon for a while now and it is so easy &#8211; a few lines of code rather than fifteen. Enjoy.</p>
<p>BASIC XML USAGE (See examples above for reading a text file or variables, etc.)</p>
<p>For a fast usage of what is in the zip file. Just grab the Falcon.as file and put it in the same directory as your FLA. Then to read in a text file this is what you do. The XML is just as easy &#8211; the variables, require a server script so is a little more work &#8211; see the examples link for more:</p>
<h2>XML EXAMPLE (AS)</h2>
<blockquote><pre>
<font size="2">package falcon{</font>
<font size="2">	import flash.display.MovieClip;</font>
<font size="2">	import flash.events.Event;</font>
<font size="2">	import flash.text.TextField;</font>
<font size="2">	public class FalconXML extends MovieClip {</font>
<font size="2">		public function FalconXML() {</font>
<font size="2">			var myFalcon:Falcon=new Falcon(&quot;sample.xml&quot;, Falcon.XML_DATA);</font>
<font size="2">			myFalcon.addEventListener(Event.COMPLETE,getData);</font>
<font size="2">		}</font>
<font size="2">		private function getData(e:Event) {</font>
<font size="2">			if (e.target.error) {</font>
<font size="2">				myText.text = &quot;sorry, error connecting to XML file&quot;;</font>
<font size="2">			} else {</font>
<font size="2">				myText.text = e.target.data.text; </font>
<font size="2">				myText.appendText(&quot;\n\n&quot;); // new lines</font>
<font size="2">				myText.appendText(e.target.data.author);</font>
<font size="2">				myText.appendText(&quot;\n&quot;); </font>
<font size="2">				myText.appendText(e.target.data.location.@city);</font>
<font size="2">				myText.appendText(&quot;, &quot;); </font>
<font size="2">				myText.appendText(e.target.data.location.@country);</font>
<font size="2">			}</font>
<font size="2">		}</font>
<font size="2">	}</font>
<font size="2">}</font>
</pre>
</blockquote>
<h2>XML EXAMPLE (XML)</h2>
<blockquote><pre>
<font size="2">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</font>
<font size="2">&lt;sample&gt;</font>
<font size="2">	&lt;text&gt;&lt;![CDATA[Hello there from &lt;XML&gt;]]&gt;&lt;/text&gt;</font>
<font size="2">	&lt;author&gt;Dan Zen&lt;/author&gt;</font>
<font size="2">	&lt;location country=&quot;Canada&quot; city=&quot;Dundas&quot; /&gt;</font>
<font size="2">&lt;/sample&gt;</font>
</pre>
</blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/falconflash.wordpress.com/20/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/falconflash.wordpress.com/20/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/falconflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/falconflash.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/falconflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/falconflash.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/falconflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/falconflash.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/falconflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/falconflash.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/falconflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/falconflash.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/falconflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/falconflash.wordpress.com/20/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/falconflash.wordpress.com/20/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/falconflash.wordpress.com/20/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=20&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://falconflash.wordpress.com/2008/04/11/update-to-falcon-for-flash-easy-way-to-access-external-text-files-variables-and-xml-in-flash-cs3-actionscript-3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6acba69f7e6f39df3c59443a9d0ce981?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danzen</media:title>
		</media:content>

		<media:content url="http://falconflash.files.wordpress.com/2008/02/smallicon.gif" medium="image" />
	</item>
		<item>
		<title>Minor Update to Falcon &#8211; Adobe Flash 9 AS3 Data Class Replaces URLVariables, URLRequest, URLRequestMethod, URLLoader and URLLoaderDataFormat</title>
		<link>http://falconflash.wordpress.com/2008/04/03/minor-update-to-falcon-adobe-flash-9-as3-data-class-replaces-urlvariables-urlrequest-urlrequestmethod-urlloader-and-urlloaderdataformat/</link>
		<comments>http://falconflash.wordpress.com/2008/04/03/minor-update-to-falcon-adobe-flash-9-as3-data-class-replaces-urlvariables-urlrequest-urlrequestmethod-urlloader-and-urlloaderdataformat/#comments</comments>
		<pubDate>Thu, 03 Apr 2008 15:13:51 +0000</pubDate>
		<dc:creator>Dan Zen</dc:creator>
				<category><![CDATA[Update]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[cs3]]></category>
		<category><![CDATA[data]]></category>
		<category><![CDATA[Falcon]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[URLLoader]]></category>
		<category><![CDATA[URLLoaderDataFormat]]></category>
		<category><![CDATA[URLRequest]]></category>
		<category><![CDATA[URLRequestMethod]]></category>
		<category><![CDATA[URLVariables]]></category>

		<guid isPermaLink="false">http://falconflash.wordpress.com/?p=19</guid>
		<description><![CDATA[Update: A technical description that you probably will not need to know &#8211; please do not be frightened if you are a designer reading this. Ignore it. In the zip file, there is a sample PHP page for the DataProvider example. The PHP sets an id that is auto incrementing in MySQL. We used &#8221; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=19&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Update: A technical description that you probably will not need to know &#8211; please do not be frightened if you are a designer reading this.  Ignore it.  In the zip file, there is a sample PHP page for the DataProvider example.  The PHP sets an id that is auto incrementing in MySQL.   We used &#8221; for the value and some versions of MySQL give an error because the data type in the table is an integer.  So we have just removed the id and its &#8221; value from the query because it is not needed anyway as the id is auto incrementing.  So&#8230; a minor update but might have caught some.  The change has been made in the ZIP file.</p>
<p><img src="http://falconflash.files.wordpress.com/2008/02/smallicon.gif?w=468" alt="Falcon Icon" /></p>
<p>Falcon is an Adobe Flash ActionScript CS3 Class that wraps up the native data classes to send and receive variables to a text, XML file or server script like PHP connected to DataBases like MySQL, etc. When using Falcon, you will not have to use URLVariables, URLRequest, URLRequestMethod, URLLoader and URLLoaderDataFormat.</p>
<p>We have just updated Falcon to remove the automatic DataProvider feature because that required a component with a DataProvider to be placed in the FLA. We have instead, additionally provided a FalconProvider class that is the same as Faclon but has the automatic DataProvider feature. Use the FalconProvider class when you have sequenced variables to be put into a DataGrid, ComboBox, List, TileList, etc.</p>
<p>Use Falcon when you want to load in text, XML or if you want to send or receive variables from a server script. We have been using Falcon for a while now and it is so easy &#8211; a few lines of code rather than fifteen. Enjoy.</p>
<p><b>BASIC USAGE</b></p>
<p>For a fast usage of what is in the zip file. Just grab the Falcon.as file and put it in the same directory as your FLA. Then to read in a text file this is what you do. The XML is just as easy &#8211; the variables, require a server script so is a little more work &#8211; see the examples link for more:</p>
<blockquote><p>// in your constructor for instance&#8230;<br />
var myFalcon:Falcon=new Falcon(&#8220;sample.txt&#8221;, Falcon.TEXT);<br />
myFalcon.addEventListener(Event.COMPLETE,getData);</p>
<p>// in the body of your class make the event method:<br />
private function getData(e:Event) {<br />
if (e.target.error) {<br />
trace (&#8220;sorry, error accessing text file&#8221;);<br />
} else {<br />
trace (e.target.data); // this is your text data!<br />
}<br />
}</p></blockquote>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/falconflash.wordpress.com/19/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/falconflash.wordpress.com/19/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/falconflash.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/falconflash.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/falconflash.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/falconflash.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/falconflash.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/falconflash.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/falconflash.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/falconflash.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/falconflash.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/falconflash.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/falconflash.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/falconflash.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/falconflash.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/falconflash.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=falconflash.wordpress.com&amp;blog=2573085&amp;post=19&amp;subd=falconflash&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://falconflash.wordpress.com/2008/04/03/minor-update-to-falcon-adobe-flash-9-as3-data-class-replaces-urlvariables-urlrequest-urlrequestmethod-urlloader-and-urlloaderdataformat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/6acba69f7e6f39df3c59443a9d0ce981?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">danzen</media:title>
		</media:content>

		<media:content url="http://falconflash.files.wordpress.com/2008/02/smallicon.gif" medium="image">
			<media:title type="html">Falcon Icon</media:title>
		</media:content>
	</item>
	</channel>
</rss>
