<?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>polyGeek.com &#187; Flex</title>
	<atom:link href="http://polygeek.com/tag/flex/feed" rel="self" type="application/rss+xml" />
	<link>http://polygeek.com</link>
	<description>polyGeek (noun) person with many geek related talents.</description>
	<lastBuildDate>Fri, 11 May 2012 20:45:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Bizarre Label text behavior</title>
		<link>http://polygeek.com/4886_flex_bizarre-label-text-behavior</link>
		<comments>http://polygeek.com/4886_flex_bizarre-label-text-behavior#comments</comments>
		<pubDate>Thu, 08 Dec 2011 04:57:35 +0000</pubDate>
		<dc:creator>polygeek</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://polygeek.com/?p=4886</guid>
		<description><![CDATA[Update: In the comments Jeff pointed out: When the strings are inside of the CDATA tags the mxml compiler treats them as raw text when generating actionscript to be compiled....]]></description>
			<content:encoded><![CDATA[<p>Update: In the comments Jeff pointed out:</p>
<p style="padding-left: 30px;">When the strings are inside of the CDATA tags the mxml compiler treats them as raw text when generating actionscript to be compiled. Conversely when the strings are outside of CDATA Tags the mxml compiler does all of the conversions from xml encoded values to normal text while creating the generated actionscript.</p>
<p>That makes perfect sense when if you stop and think about it, which I didn&#8217;t. :-) Anyway, now you know there is a difference in behavior in how text is rendered depending on source.</p>
<p>&nbsp;</p>
<p>It&#8217;s easy to render special characters in a &lt;s:Label text=&#8221;&amp;lt; &amp;gt; &amp;amp; &amp;quot; &amp;apos;&#8221; /&gt;. However, if the string is added to the Label text by a [Bindable] variable then it doesn&#8217;t render the special characters but just gives you the plane text of the variable.</p>
<p>More about this topic from help.Adobe.com: <a href="http://help.adobe.com/en_US/flex/using/WS02f7d8d4857b1677-165a04e1126951a2d98-7fea.html" target="_blank">Using the text property</a>.</p>
<p>Example that works</p>
<pre>&lt;s:Label text="&amp;lt; &amp;gt; &amp;amp; &amp;quot; &amp;apos; " /&gt;</pre>
<p>Will display exactly what you would want: &lt; &gt; &amp; &#8221; &#8216;</p>
<p>However this doesn&#8217;t work</p>
<pre>[Bindable]private var specialChars : String = "&amp;lt; &amp;gt; &amp;amp; &amp;quot; &amp;apos;";
...
&lt;s:Label text="{ specialChars }" /&gt;</pre>
<p>In that case you get the unrendered string back: &amp;lt; &amp;gt; &amp;amp; &amp;quot; &amp;apos;</p>
<p>Fortunately you can just use the characters you want to display, such as:</p>
<pre>[Bindable]private var specialChars : String = "&lt; &gt; &amp; \" ' ";
...
&lt;s:Label text="{ specialChars }" /&gt;</pre>
<p>Which does work correctly.</p>
<p>The real question is, &#8220;Why does it work that way.&#8221; To which my reply is, as always, &#8220;I don&#8217;t know! I didn&#8217;t build the fucking thing!&#8221; &#8211; from?</p>
<p><a href="http://polygeek.com/4886_flex_bizarre-label-text-behavior" rel="bookmark">Bizarre Label text behavior</a> originally appeared on <a href="http://polygeek.com">polyGeek.com</a> on December 7, 2011.</p>
]]></content:encoded>
			<wfw:commentRss>http://polygeek.com/4886_flex_bizarre-label-text-behavior/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Detecting the End Of List ( EOL ) event</title>
		<link>http://polygeek.com/4778_flex_detecting-end-of-list-event</link>
		<comments>http://polygeek.com/4778_flex_detecting-end-of-list-event#comments</comments>
		<pubDate>Sun, 23 Oct 2011 03:26:29 +0000</pubDate>
		<dc:creator>polygeek</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[scrolling]]></category>

		<guid isPermaLink="false">http://polygeek.com/?p=4778</guid>
		<description><![CDATA[Here is one way to detect if a user has scrolled to the end of a &#60;List&#62;. &#60;s:List id="myList" dataProvider="{ myAC }" itemRenderer="rend.someItemRend" width="100%" height="100%" creationComplete="onListCreationComplete()"&#62; &#60;s:layout&#62; &#60;s:VerticalLayout /&#62; &#60;/s:layout&#62;...]]></description>
			<content:encoded><![CDATA[<p>Here is one way to detect if a user has scrolled to the end of a &lt;List&gt;.</p>
<pre>&lt;s:List
	id="myList"
	dataProvider="{ myAC }"
	itemRenderer="rend.someItemRend"
	width="100%" height="100%"
	creationComplete="onListCreationComplete()"&gt;

	&lt;s:layout&gt;
		&lt;s:VerticalLayout /&gt;
	&lt;/s:layout&gt;

&lt;/s:List&gt;</pre>
<p>When the &lt;List&gt; has been created we can set a listener for the PROPERTY_CHANGE event on the myList.scroller.viewport</p>
<pre>private function onMovieListCreationComplete():void {
	myList.scroller.viewport.addEventListener(
		PropertyChangeEvent.PROPERTY_CHANGE, onListScroll );
}</pre>
<p>And then here&#8217;s the handler for the PROPERTY_CHANGE event.</p>
<pre>private function onMovieListScroll( e:PropertyChangeEvent ):void {
	if ( e.property == "verticalScrollPosition" &amp;&amp;
		e.currentTarget.numElements - 1 == movieListLayout.lastIndexInView ) {

		//	EOL
		trace( "End Of List" );

		}
	}
}</pre>
<p>In my RunPee app &#8211; tells you the best time to run and pee during a movie without missing anything &#8211; there are settings that let the user pick how far back in time to display movies in the &lt;List&gt;. The default is 6-months. But they can also go back for a year, two years or forever. If they reach the end of the &lt;List&gt; and the settings aren&#8217;t already set at <em>forever</em> then I display a message that they can change the settings on the <em>Options Screen</em>. I could display the settings right there for them but I&#8217;m trying to encourage the user to visit the <em>Options Screen</em> so that they will know what&#8217;s there. ( I know that people like me and you usually look for the <em>options </em>of an application before we do anything else but most people don&#8217;t. That&#8217;s why we&#8217;re geeks and they&#8217;re not. )</p>
<p>When the message is displayed then I update the <em>userSettings</em> local database and record that they have seen it so that I don&#8217;t ever show it to them again. I figure once is enough. I don&#8217;t want it to be annoying.</p>
<p><a href="http://polygeek.com/4778_flex_detecting-end-of-list-event" rel="bookmark">Detecting the End Of List ( EOL ) event</a> originally appeared on <a href="http://polygeek.com">polyGeek.com</a> on October 22, 2011.</p>
]]></content:encoded>
			<wfw:commentRss>http://polygeek.com/4778_flex_detecting-end-of-list-event/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Book review : Flash Facebook Cookbook</title>
		<link>http://polygeek.com/4718_book-review-2_flash-facebook-cookbook</link>
		<comments>http://polygeek.com/4718_book-review-2_flash-facebook-cookbook#comments</comments>
		<pubDate>Sat, 01 Oct 2011 05:01:23 +0000</pubDate>
		<dc:creator>polygeek</dc:creator>
				<category><![CDATA[Book Review]]></category>
		<category><![CDATA[book review]]></category>
		<category><![CDATA[Facebook API]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://polygeek.com/?p=4718</guid>
		<description><![CDATA[If you&#8217;re going to be doing any Flex/Facebook apps you should think about grabbing this book. I found the Facebook documentation to be rather discombobulated. It&#8217;s all there but it&#8217;s...]]></description>
			<content:encoded><![CDATA[<p><a href="http://polygeek.com/wp-content/uploads/2011/09/Flash-Facebook-Cookbook.png" rel="shadowbox[sbpost-4718];player=img;"><img class="size-full wp-image-4719" title="Flash Facebook Cookbook" src="http://polygeek.com/wp-content/uploads/2011/09/Flash-Facebook-Cookbook.png" alt="Flash Facebook Cookbook" width="125" height="151" align="right" /></a>If you&#8217;re going to be doing any Flex/Facebook apps you should think about grabbing this book. I found the Facebook documentation to be rather discombobulated. It&#8217;s all there but it&#8217;s hard to know where to start to get something done. And of course the Facebook documentation is mostly useless for Actionscript developers.</p>
<p>Personally I like the cookbook format. I want quick intros with just the information I need and then a short and specific example. That&#8217;s exactly what this book offers.  All of the examples are created using Flex with Flash Builder although they could easily be used in a pure Actionscript application as well.</p>
<p>See the book at <a href="http://www.amazon.com/gp/product/1849690723/ref=as_li_ss_tl?ie=UTF8&amp;tag=xanaduwest-20&amp;linkCode=as2&amp;camp=217145&amp;creative=399373&amp;creativeASIN=1849690723" target="_blank">Amazon.com</a> | <a href="http://www.packtpub.com/flash-facebook-cookbook-for-graph-api-applications/book" target="_blank">Packtpub.com</a></p>
<p>I&#8217;m not much of a Facebook guy. I&#8217;ve had an account for ages but I rarely use it. When I do it&#8217;s just to post to my wall. I&#8217;ve never even uploaded an image to Facebook. So I&#8217;m really a novice when it comes to understanding Facebook itself let alone the API. I was really happy that this book covered the basics and didn&#8217;t just assume I was a Facebook power user.  The first few chapters of this book did a great job of breaking down how the app ecosystem works and how to work with OAuth and Facebook permissions. Things that we totally new to me.</p>
<p>With that out of the way I was surprised at just how easy it was to get up and running right away. One important thing to know &#8211; and the author covers this right up front &#8211; is that the code examples don&#8217;t t use the Facebook API that Adobe and Facebook collaborated on. It uses a forked version of that API that has been improved upon. There are some pluses and minuses to this approach. Fortunately both APIs look and work almost identically and have the same capabilities. There is only one exception to that. The official API can be used with AIR mobile applications using Flex but there is currently no equal for the API that the book uses. But the author told me that it will be ready soon.</p>
<p>The current project that I&#8217;m working on is an AIR mobile app that requires some Facebook integration. I was able to use the explanations and follow the examples in this book along with the API that Adobe created to do exactly what I was trying to achieve.</p>
<p>I&#8217;ll have lots of AIR mobile tutorials with Facebook integration coming soon.</p>
<p><a href="http://polygeek.com/4718_book-review-2_flash-facebook-cookbook" rel="bookmark">Book review : Flash Facebook Cookbook</a> originally appeared on <a href="http://polygeek.com">polyGeek.com</a> on September 30, 2011.</p>
]]></content:encoded>
			<wfw:commentRss>http://polygeek.com/4718_book-review-2_flash-facebook-cookbook/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Search Engine dedicated to Actionscript and Flex</title>
		<link>http://polygeek.com/3459_flex_search-engine-dedicated-to-actionscript-and-flex</link>
		<comments>http://polygeek.com/3459_flex_search-engine-dedicated-to-actionscript-and-flex#comments</comments>
		<pubDate>Tue, 08 Feb 2011 16:46:00 +0000</pubDate>
		<dc:creator>polygeek</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Actionscript 3]]></category>

		<guid isPermaLink="false">http://polygeek.com/?p=3459</guid>
		<description><![CDATA[Next time you&#8217;re searching for help on some problem you&#8217;re having with Actionscript/Flex &#8211; which if you&#8217;re like me is about every 15 minutes &#8211; then try using flex.paulsearch.co. It...]]></description>
			<content:encoded><![CDATA[<p>Next time you&#8217;re searching for help on some problem you&#8217;re having with Actionscript/Flex &#8211; which if you&#8217;re like me is about every 15 minutes &#8211; then try using <a href="http://flex.paulsearch.co/">flex.paulsearch.co</a>. It searches across hundreds of blogs that are written by people in the Flash Platform Community. The nice thing is that it weeds out a lot of the results that come back that are related to other languages.</p>
<p>You can see the <a href="http://flex.paulsearch.co/index.php/info/sites">entire list of sites that are included in the search</a>. If you see one that&#8217;s missing let Paul know about it.</p>
<p><a href="http://polygeek.com/3459_flex_search-engine-dedicated-to-actionscript-and-flex" rel="bookmark">Search Engine dedicated to Actionscript and Flex</a> originally appeared on <a href="http://polygeek.com">polyGeek.com</a> on February 8, 2011.</p>
]]></content:encoded>
			<wfw:commentRss>http://polygeek.com/3459_flex_search-engine-dedicated-to-actionscript-and-flex/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Introduction to AMFPHP with Actionscript : Blogroll part 5</title>
		<link>http://polygeek.com/2468_flex_introduction-to-amfphp-with-actionscript-blogroll-part-5</link>
		<comments>http://polygeek.com/2468_flex_introduction-to-amfphp-with-actionscript-blogroll-part-5#comments</comments>
		<pubDate>Mon, 29 Mar 2010 15:52:32 +0000</pubDate>
		<dc:creator>polygeek</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[AMFPHP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[video tutorial]]></category>

		<guid isPermaLink="false">http://polygeek.com/?p=2468</guid>
		<description><![CDATA[In this episode I&#8217;ll add a feature to allow users to submit their own blog to the blogroll. Of course you wouldn&#8217;t want people just adding entries and them going...]]></description>
			<content:encoded><![CDATA[<p>In this episode I&#8217;ll add a feature to allow users to submit their own blog to the blogroll. Of course you wouldn&#8217;t want people just adding entries and them going live so I&#8217;ll also update the <em>blogroll</em> table with an <em>is_approved</em> field. That way you will have control over who gets in and who doesn&#8217;t.</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_Blogroll_1502312469"
			class="flashmovie"
			width="350"
			height="200">
	<param name="movie" value="http://polygeek.com/flex/2468_AMFPHP_intro_5/Blogroll.swf" />
	<param name="wmode" value="normal" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://polygeek.com/flex/2468_AMFPHP_intro_5/Blogroll.swf"
			name="fm_Blogroll_1502312469"
			width="350"
			height="200">
		<param name="wmode" value="normal" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object></td>
</tr>
<tr>
<td align="center"><a href="http://polygeek.com/flex/2468_AMFPHP_intro_5/srcview/index.html">view source</a></td>
</tr>
</tbody>
</table>
<p>Here is the <a href="http://polygeek.com/flex/2468_AMFPHP_intro_5/srcview/Blogroll_part5.zip">updated Blogroll.php</a> file used in this example. Note: I added a bit to the <em>userAddBlog()</em> method to send an email to the administrator any time an blog entry is added &#8211; commented out &#8211; and also used <em>mysql_real_escape_string()</em> to <a href="http://www.tizag.com/mysqlTutorial/mysql-php-sql-injection.php">prevent code injection</a>.</p>
<p>Don&#8217;t forget to update your blogroll table with the <em>is_approved</em> field and then set all existing rows to 1 with: <em>UPDATE `blogroll` SET `is_approved` = 1;</em></p>
<p>Addendum: I forgot to add this to the video but the <em>getBlogrollByPage() </em>and <em>getBlogrollCount() </em>methods also need a slight update so that they will only select entries that have been approved. They now look like this:</p>
<pre>function getBlogrollByPage( $start, $count ) {
	$sql = 	"SELECT * FROM `blogroll`
				WHERE `is_approved` = 1
				LIMIT ".$start.", ".$count;

	return mysql_query( sprintf( $sql ) );
}

function getBlogrollCount() {
	$sql = 	"SELECT COUNT(*) AS 'count'
				FROM `blogroll`
				WHERE `is_approved` = 1;";

	return mysql_query( sprintf( $sql ) );
}</pre>
<p>The <em>is_approved = 1</em> makes sure that only those blogs that have been approved by the administrator will show up.</p>
<p>( <a href="../videos#amfphp">Visit the video index</a>. )</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="853" height="505" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/KDsUnXWYMUw&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="853" height="505" src="http://www.youtube.com/v/KDsUnXWYMUw&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://polygeek.com/2468_flex_introduction-to-amfphp-with-actionscript-blogroll-part-5" rel="bookmark">Introduction to AMFPHP with Actionscript : Blogroll part 5</a> originally appeared on <a href="http://polygeek.com">polyGeek.com</a> on March 29, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://polygeek.com/2468_flex_introduction-to-amfphp-with-actionscript-blogroll-part-5/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to AMFPHP with Actionscript : Blogroll part 4</title>
		<link>http://polygeek.com/2467_flex_introduction-to-amfphp-with-actionscript-blogroll-part-4</link>
		<comments>http://polygeek.com/2467_flex_introduction-to-amfphp-with-actionscript-blogroll-part-4#comments</comments>
		<pubDate>Mon, 29 Mar 2010 15:50:32 +0000</pubDate>
		<dc:creator>polygeek</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[AMFPHP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[video tutorial]]></category>

		<guid isPermaLink="false">http://polygeek.com/?p=2467</guid>
		<description><![CDATA[Up till now we&#8217;ve been downloading the entire contents of the blogroll table. Now it&#8217;s time to add paging so that only a few entries are returned from the database...]]></description>
			<content:encoded><![CDATA[<p>Up till now we&#8217;ve been downloading the entire contents of the <em>blogroll </em>table. Now it&#8217;s time to add <em>paging</em> so that only a few entries are returned from the database at a time. To do that I&#8217;ll show you how to send variables to the PHP code and use them to manipulate the data that is selected.</p>
<p>We&#8217;ll be expanding on the code from the previous 3 videos. ( <a href="http://polygeek.com/videos#amfphp">Visit the video index</a>. )</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_Blogroll_542250273"
			class="flashmovie"
			width="350"
			height="200">
	<param name="movie" value="http://polygeek.com/flex/2467_AMFPHP_intro_4/Blogroll.swf" />
	<param name="wmode" value="normal" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://polygeek.com/flex/2467_AMFPHP_intro_4/Blogroll.swf"
			name="fm_Blogroll_542250273"
			width="350"
			height="200">
		<param name="wmode" value="normal" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object></td>
</tr>
<tr>
<td align="center"><a href="http://polygeek.com/flex/2467_AMFPHP_intro_4/srcview/index.html">view source</a></td>
</tr>
</tbody>
</table>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="853" height="505" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/9nhSLvuA3C0&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="853" height="505" src="http://www.youtube.com/v/9nhSLvuA3C0&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://polygeek.com/2467_flex_introduction-to-amfphp-with-actionscript-blogroll-part-4" rel="bookmark">Introduction to AMFPHP with Actionscript : Blogroll part 4</a> originally appeared on <a href="http://polygeek.com">polyGeek.com</a> on March 29, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://polygeek.com/2467_flex_introduction-to-amfphp-with-actionscript-blogroll-part-4/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to AMFPHP with Actionscript : Blogroll part 3</title>
		<link>http://polygeek.com/2465_flex_introduction-to-amfphp-with-actionscript-blogroll-part-3</link>
		<comments>http://polygeek.com/2465_flex_introduction-to-amfphp-with-actionscript-blogroll-part-3#comments</comments>
		<pubDate>Mon, 29 Mar 2010 15:48:06 +0000</pubDate>
		<dc:creator>polygeek</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[AMFPHP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[video tutorial]]></category>

		<guid isPermaLink="false">http://polygeek.com/?p=2465</guid>
		<description><![CDATA[Here in part 3 of this series we&#8217;ll create a DataGroup to display the buttons inside an ItemRenderer. ( Video Tutorial Index page ) This won&#8217;t mean much to you...]]></description>
			<content:encoded><![CDATA[<p>Here in part 3 of this series we&#8217;ll create a <em>DataGroup</em> to display the buttons inside an <em>ItemRenderer</em>. ( <a href="http://polygeek.com/videos#amfphp">Video Tutorial Index page</a> ) This won&#8217;t mean much to you if you&#8217;re working in the Flash IDE, without the Flex framework, but it does provide a quick glance into the workflow of displaying data in a Flex based app.</p>
<p>We&#8217;ll be working with the code expanded upon in the previous two videos in this series.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="853" height="505" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/twMfZpLYODs&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="853" height="505" src="http://www.youtube.com/v/twMfZpLYODs&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://polygeek.com/2465_flex_introduction-to-amfphp-with-actionscript-blogroll-part-3" rel="bookmark">Introduction to AMFPHP with Actionscript : Blogroll part 3</a> originally appeared on <a href="http://polygeek.com">polyGeek.com</a> on March 29, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://polygeek.com/2465_flex_introduction-to-amfphp-with-actionscript-blogroll-part-3/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Introduction to AMFPHP with Actionscript : Blogroll part 2</title>
		<link>http://polygeek.com/2464_flex_introduction-to-amfphp-with-actionscript-blogroll-part-2</link>
		<comments>http://polygeek.com/2464_flex_introduction-to-amfphp-with-actionscript-blogroll-part-2#comments</comments>
		<pubDate>Mon, 29 Mar 2010 15:42:05 +0000</pubDate>
		<dc:creator>polygeek</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[AMFPHP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[video tutorial]]></category>

		<guid isPermaLink="false">http://polygeek.com/?p=2464</guid>
		<description><![CDATA[In the previous video tutorial in this series we managed to get as far as getting the data from the database to our application. Here we&#8217;ll collect the data and...]]></description>
			<content:encoded><![CDATA[<p>In the <a href="http://polygeek.com/2466_flex_introduction-to-amfphp-with-actionscript-blogroll-part-1">previous video tutorial in this series</a> we managed to get as far as getting the data from the database to our application. Here we&#8217;ll collect the data and prepare to dispatch that to the view where it can be displayed.</p>
<p>The code from the previous video tutorial will get you through this one.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="853" height="505" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/fOOMKY1MK10&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="853" height="505" src="http://www.youtube.com/v/fOOMKY1MK10&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://polygeek.com/2464_flex_introduction-to-amfphp-with-actionscript-blogroll-part-2" rel="bookmark">Introduction to AMFPHP with Actionscript : Blogroll part 2</a> originally appeared on <a href="http://polygeek.com">polyGeek.com</a> on March 29, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://polygeek.com/2464_flex_introduction-to-amfphp-with-actionscript-blogroll-part-2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introduction to AMFPHP with Actionscript : Blogroll part 1</title>
		<link>http://polygeek.com/2466_flex_introduction-to-amfphp-with-actionscript-blogroll-part-1</link>
		<comments>http://polygeek.com/2466_flex_introduction-to-amfphp-with-actionscript-blogroll-part-1#comments</comments>
		<pubDate>Mon, 29 Mar 2010 15:40:37 +0000</pubDate>
		<dc:creator>polygeek</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[AMFPHP]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[video tutorial]]></category>

		<guid isPermaLink="false">http://polygeek.com/?p=2466</guid>
		<description><![CDATA[The application that we&#8217;ll create together here is very simple. However the tools that you&#8217;ll learn here can be used to create an app of incredible complexity. Here is a...]]></description>
			<content:encoded><![CDATA[<p>The application that we&#8217;ll create together here is very simple. However the tools that you&#8217;ll learn here can be used to create an app of incredible complexity.</p>
<p>Here is a look at the finished app. Simple as it is it does cover the essentials of database driven apps:</p>
<ul>
<li>Retrieving data from a database</li>
<li>Passing variables to the server to modify the MySQL code</li>
<li>Modifying data in the database</li>
<li>Adding new data to the database</li>
</ul>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm_Blogroll_478205862"
			class="flashmovie"
			width="350"
			height="200">
	<param name="movie" value="http://polygeek.com/flex/2468_AMFPHP_intro_5/Blogroll.swf" />
	<param name="wmode" value="normal" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://polygeek.com/flex/2468_AMFPHP_intro_5/Blogroll.swf"
			name="fm_Blogroll_478205862"
			width="350"
			height="200">
		<param name="wmode" value="normal" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object></td>
</tr>
<tr>
<td align="center"><a href="http://polygeek.com/flex/2468_AMFPHP_intro_5/srcview/index.html">view source</a></td>
</tr>
</tbody>
</table>
<p>Here in part one I&#8217;ll show you how to set up Flash Builder or your Flash IDE to get started using AMFPHP to connect your Flash based app with a database. I assume that you already have a <a href="http://www.hostingobserver.com/server-hosting.php" target="_blank">hosting server</a> running that can support PHP and you have AMFPHP on that server. If not then check out this short <a href="http://polygeek.com/529_video-tutorial_amfphp-video-tutorial-setting-up-amfphp-version-10">video tutorial on setting up AMFPHP</a>.</p>
<p><a href="/flex/2466_AMFPHP_intro/AMFPHP_Remoting_Code.zip">Here&#8217;s the source code that you&#8217;ll need for this project</a>.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="853" height="505" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/4se-Pd3iG2A&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="853" height="505" src="http://www.youtube.com/v/4se-Pd3iG2A&amp;hl=en_US&amp;fs=1&amp;color1=0x3a3a3a&amp;color2=0x999999" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://polygeek.com/2466_flex_introduction-to-amfphp-with-actionscript-blogroll-part-1" rel="bookmark">Introduction to AMFPHP with Actionscript : Blogroll part 1</a> originally appeared on <a href="http://polygeek.com">polyGeek.com</a> on March 29, 2010.</p>
]]></content:encoded>
			<wfw:commentRss>http://polygeek.com/2466_flex_introduction-to-amfphp-with-actionscript-blogroll-part-1/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>What&#8217;s under Antarctica?</title>
		<link>http://polygeek.com/1963_flex_whats-under-antarctica</link>
		<comments>http://polygeek.com/1963_flex_whats-under-antarctica#comments</comments>
		<pubDate>Thu, 15 Oct 2009 08:00:44 +0000</pubDate>
		<dc:creator>polygeek</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[global warming]]></category>

		<guid isPermaLink="false">http://polygeek.com/?p=1963</guid>
		<description><![CDATA[I always figured there was a land mass under all of Antarctica that, give or take, was well above sea level. Turns out that isn&#8217;t the case at all. Take...]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.blogactionday.org"><img src="http://www.blogactionday.org/imgs/badges/bad-120-90.jpg" border="0" alt="" align="right" /></a>I always figured there was a land mass under all of Antarctica that, give or take, was well above sea level. Turns out that isn&#8217;t the case at all. Take the ice cap off Antarctica and you end up with a land mass about half the size of what you would expect surrounded by a bunch of islands.</p>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td align="center">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
			id="fm__1963_whatsUnderAntarctica_411672605"
			class="flashmovie"
			width="550"
			height="500">
	<param name="movie" value="http://polygeek.com/flex/1963_whatsUnderAntarctica/_1963_whatsUnderAntarctica.swf" />
	<param name="wmode" value="normal" />
	<!--[if !IE]>-->
	<object	type="application/x-shockwave-flash"
			data="http://polygeek.com/flex/1963_whatsUnderAntarctica/_1963_whatsUnderAntarctica.swf"
			name="fm__1963_whatsUnderAntarctica_411672605"
			width="550"
			height="500">
		<param name="wmode" value="normal" />
	<!--<![endif]-->
		
	<!--[if !IE]>-->
	</object>
	<!--<![endif]-->
</object></td>
</tr>
<tr>
<td align="center"><a href="http://polygeek.com/flex/1963_whatsUnderAntarctica/srcview/index.html">view source</a></td>
</tr>
</tbody>
</table>
<p>Drag the slider up and down and you can see just what parts of Antarctica are sitting on land and what parts are sitting on the sea floor.</p>
<p>This isn&#8217;t a prediction of what would happen if Antarctica melted. It&#8217;s just a map of what Antarctica would look like if you couldn&#8217;t see the ice.</p>
<p>Now I can see why scientists are so concerned about Western Antarctica. That&#8217;s the part they believe will go first and it could, according to some, go very quickly.</p>
<p><strong>Lets talk code</strong></p>
<p>From a code perspective I love this example Flex application because of it&#8217;s simplicity. It&#8217;s a great example of how powerful the Flex framework is because there is absolutely no Actionscript in the source code here. I didn&#8217;t have to write code to load the images, or to change the alpha of the top image when the slider changes. Nothing like that. All made possible through the magic of data binding.</p>
<pre>[cc lang="actionscript3"]
package com.polyGeek.patterns {
	import flash.display.Sprite;
	public class WavyCircle extends Sprite {
		public function WavyCircle( s:Sprite, radius:int, amplitude:int, period:int, rotation:Number ) {
			super();
			var step:Number = 0.01;
			var len:Number = 2 * Math.PI + step;
			for( var i:Number = -0.01; i < len; i+= step ) {
				var r:Number = radius + amplitude * ( Math.sin( period * i ) * Math.cos( period * i ) );
				if( i >= 0 ) {
					s.graphics.lineTo( Math.sin( i + rotation ) * r, Math.cos( i + rotation ) * r );
				} else {
					s.graphics.moveTo( Math.sin( i + rotation ) * r, Math.cos( i + rotation ) * r );
				}
			}
		}
	}
}[/cc]</pre>
<p><a href="http://polygeek.com/1963_flex_whats-under-antarctica" rel="bookmark">What&#8217;s under Antarctica?</a> originally appeared on <a href="http://polygeek.com">polyGeek.com</a> on October 15, 2009.</p>
]]></content:encoded>
			<wfw:commentRss>http://polygeek.com/1963_flex_whats-under-antarctica/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
<!-- This Quick Cache file was built for (  polygeek.com/tag/flex/feed ) in 0.74329 seconds, on May 21st, 2012 at 10:42 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 21st, 2012 at 11:42 am UTC -->
