<?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:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>flexr</title>
	<atom:link href="http://flexr.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexr.wordpress.com</link>
	<description></description>
	<lastBuildDate>Wed, 11 Nov 2009 17:40:05 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='flexr.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/1dd8ac80bfe6b9cd1f88d653df07dd74?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>flexr</title>
		<link>http://flexr.wordpress.com</link>
	</image>
			<item>
		<title>Advanced DataGrid with Summary rows &amp; Operations</title>
		<link>http://flexr.wordpress.com/2009/11/11/advanced-datagrid-with-summary-rows/</link>
		<comments>http://flexr.wordpress.com/2009/11/11/advanced-datagrid-with-summary-rows/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 17:15:34 +0000</pubDate>
		<dc:creator>Jester theFool</dc:creator>
				<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[components]]></category>
		<category><![CDATA[Advanced DataGrid]]></category>
		<category><![CDATA[MXML]]></category>
		<category><![CDATA[Operation]]></category>
		<category><![CDATA[Summary rows]]></category>

		<guid isPermaLink="false">http://flexr.wordpress.com/?p=106</guid>
		<description><![CDATA[It took me a while to figure out I really don&#8217;t need to write an AdvancedDataGrid dynamically, since the data is structurely fixed, and don&#8217;t need to dynamically create columns. So MXML was the way to go for me, and easy to figure out. I needed a summary row to be calculated on the client [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=106&subd=flexr&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>It took me a while to figure out I really don&#8217;t need to write an <strong>AdvancedDataGrid </strong>dynamically, since the data is structurely fixed, and don&#8217;t need to dynamically create columns. So MXML was the way to go for me, and easy to figure out. I needed a summary row to be calculated on the client side of the data (which came in as <em>XML, converted to objects and placed in an ArrayCollection</em>).</p>
<ul>
<li>When you see for example:  <strong>dataField=&#8221;visits&#8221;</strong><strong> &#8211; visits</strong> here is actually the <strong>key </strong>of the <strong>object</strong>, so the <strong>value </strong>of that object is <strong>placed in the datafield</strong>.</li>
</ul>
<ul>
<li>When you see: <strong>summaryPlacement=&#8221;group&#8221; &#8211; Summary Placement </strong>is how the summary row will be displayed: Group is added to the row of the SummaryField, if you put for example:  <strong>summaryPlacement=&#8221;group first&#8221; &#8211; </strong> This will actually put it in the top group row And a extra row right underneath the Summary row. You have the option of <strong>last </strong>too.</li>
</ul>
<ul>
<li>When you see <strong>operation=&#8221;{operation}&#8221; &#8211; </strong>This is actually a string whether &#8220;<strong>SUM</strong>&#8221; or &#8220;<strong>AVG</strong>&#8221; of that Column, even better yet, the <strong>summaries </strong>of that column, you have other options such as <code>MIN</code>, <code>MAX</code>, or <code>COUNT.</code></li>
</ul>
<ul>
<li>When you see<strong> labelFunction=&#8221;someFunc&#8221; </strong>- This is a returned Object that formats the content.</li>
</ul>
<p>Code Below: <span id="more-106"></span></p>
<pre>&lt;mx:AdvancedDataGrid id="adv_dg" height="100%" textAlign="center"&gt;
    &lt;mx:dataProvider&gt;
       &lt;mx:GroupingCollection id="gc" source="{arrayCollection}"&gt;
            &lt;mx:Grouping&gt;
               &lt;mx:GroupingField name="name"&gt;
                 &lt;mx:summaries&gt;
                   &lt;mx:SummaryRow summaryPlacement="group"&gt;
                      &lt;mx:fields&gt;
                          &lt;mx:SummaryField dataField="visits" id="summaryVisits" label="visits" operation="{operation}"/&gt;
                          &lt;mx:SummaryField dataField="change" id="summaryChange" label="change" operation="{operation}"/&gt;
                          &lt;mx:SummaryField dataField="absoluteUniqueVisitors" id="summaryAbsUV" label="absoluteUniqueVisitors" operation="{operation}"/&gt;
                          &lt;mx:SummaryField dataField="pageViews" id="summaryPageViews" label="pageViews" operation="{operation}"/&gt;
                          &lt;mx:SummaryField dataField="avgPageViews" id="summaryAVGPageViews" label="avgPageViews" operation="AVG"/&gt;
                          &lt;mx:SummaryField dataField="timeOnSite" id="timeOnSite" label="timeOnSite" operation="AVG"/&gt;
                          &lt;mx:SummaryField dataField="bounceRate" id="summaryBounceRate" label="bounceRate" operation="AVG"/&gt;
                          &lt;mx:SummaryField dataField="newVisits" id="summaryNewVisits" label="newVisits" operation="AVG"/&gt;
                          &lt;mx:SummaryField dataField="visitorsPerDay" id="summaryVisPerDay" label="visitorsPerDay" operation="AVG"/&gt;
                      &lt;/mx:fields&gt;
                    &lt;/mx:SummaryRow&gt;
                  &lt;/mx:summaries&gt;
                &lt;/mx:GroupingField&gt;
              &lt;/mx:Grouping&gt;
            &lt;/mx:GroupingCollection&gt;
         &lt;/mx:dataProvider&gt;
         &lt;mx:columns&gt;
            &lt;mx:AdvancedDataGridColumn dataField="name" headerText="Site Name" textAlign="left" width="172"/&gt;
            &lt;mx:AdvancedDataGridColumn dataField="date" headerText="Date"/&gt;
            &lt;mx:AdvancedDataGridColumn dataField="visits" headerText="Visits #" labelFunction="visitsFunc"/&gt;
            &lt;mx:AdvancedDataGridColumn dataField="change" headerText="% Change" itemRenderer="ChangeGrid" labelFunction="changeFunc" fontWeight="bold"/&gt;
            &lt;mx:AdvancedDataGridColumn dataField="absoluteUniqueVisitors" headerText="Abs. Unique Visitors" labelFunction="auvFunc"/&gt;
            &lt;mx:AdvancedDataGridColumn dataField="pageViews" headerText="Page Views" labelFunction="pageVewsFunc"/&gt;
            &lt;mx:AdvancedDataGridColumn dataField="avgPageViews" headerText="Avg. Page Views" labelFunction="avgPageViewFunc"/&gt;
            &lt;mx:AdvancedDataGridColumn dataField="timeOnSite" headerText="Time on Site" labelFunction="convertSecToTimeFormat"/&gt;
            &lt;mx:AdvancedDataGridColumn dataField="bounceRate" headerText="Bounce Rate" labelFunction="bounceFunc"/&gt;
            &lt;mx:AdvancedDataGridColumn dataField="newVisits" headerText="New Visits" labelFunction="newVisitsFunc"/&gt;
            &lt;mx:AdvancedDataGridColumn dataField="visitorsPerDay" headerText="Visitors Per Day"  labelFunction="visitorsDayFunc"/&gt;
         &lt;/mx:columns&gt;
&lt;/mx:AdvancedDataGrid&gt;
</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexr.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexr.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexr.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexr.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexr.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexr.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexr.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexr.wordpress.com/106/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexr.wordpress.com/106/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexr.wordpress.com/106/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=106&subd=flexr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexr.wordpress.com/2009/11/11/advanced-datagrid-with-summary-rows/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jester theFool</media:title>
		</media:content>
	</item>
		<item>
		<title>Generate UI from XML, and re-save modified updates</title>
		<link>http://flexr.wordpress.com/2009/03/11/create-the-ui-from-xml/</link>
		<comments>http://flexr.wordpress.com/2009/03/11/create-the-ui-from-xml/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 23:44:57 +0000</pubDate>
		<dc:creator>Jester theFool</dc:creator>
				<category><![CDATA[ActionScripting3]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[XML/YAML]]></category>
		<category><![CDATA[create]]></category>
		<category><![CDATA[generate]]></category>
		<category><![CDATA[modify]]></category>
		<category><![CDATA[re-save]]></category>
		<category><![CDATA[UI]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://flexr.wordpress.com/?p=83</guid>
		<description><![CDATA[Alright, so we&#8217;ll be dynamically generating a UI interface from an XML. So I&#8217;ll show you the XML first:
&#60;mx:XML id="xml_save"&#62;
&#60;cfg&#62;
   &#60;checkbox id="ebay" enabled="true" description="eBay"/&#62;
   &#60;checkbox id="wikipedia" enabled="false" description="wikipedia"/&#62;
   &#60;checkbox id="pandora" enabled="true" description="pandora"/&#62;
   &#60;checkbox id="flexr" enabled="false" description="flexr"/&#62;
&#60;/cfg&#62;
&#60;/mx:XML&#62;
Now for each of the shortcut node in the XML above, we&#8217;re going to create a checkbox for each of them, style it, then [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=83&subd=flexr&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Alright, so we&#8217;ll be dynamically generating a UI interface from an XML. So I&#8217;ll show you the XML first:</p>
<p><code><span style="color:#339966;">&lt;mx:XML </span>id="<span style="color:#800000;">xml_save</span>"<span style="color:#339966;">&gt;</span><br />
&lt;cfg&gt;<br />
   &lt;checkbox id="ebay" enabled="true" description="eBay"/&gt;<br />
   &lt;checkbox id="wikipedia" enabled="false" description="wikipedia"/&gt;<br />
   &lt;checkbox id="pandora" enabled="true" description="pandora"/&gt;<br />
   &lt;checkbox id="flexr" enabled="false" description="flexr"/&gt;<br />
&lt;/cfg&gt;<br />
<span style="color:#339966;">&lt;/mx:XML&gt;</span></code></p>
<p>Now for each of the shortcut node in the XML above, we&#8217;re going to create a checkbox for each of them, style it, then see whether its checked or not (and display it), and then add it to a VBox called &#8216;<strong>p_CheckContainer</strong>&#8216;.</p>
<p><code><span style="font-family:0;"><span style="color:#0000ff;">private <span style="color:#008000;">function</span><span style="color:#000000;"> updateForm(xml_result:XML):</span>void<span style="color:#000000;"> {</span><br />
<span style="color:#0000ff;">   for each</span> <span style="color:#000000;">(</span><span style="color:#3366ff;">var</span> <span style="color:#000000;">node:Object</span> <span style="color:#0000ff;">in</span> <span style="color:#000000;">xml_result.checkbox</span><span style="color:#000000;">)</span><span style="color:#000000;"> {</span><br />
<span style="color:#000000;"><span style="color:#3366ff;">       var </span>checkBox:CheckBox = <span style="color:#0000ff;">new</span> CheckBox();        <span style="color:#008000;">// new checkbox for each node</span><br />
       checkBox.setStyle('<span style="color:#800000;">paddingLeft</span>', 30);          <span style="color:#008000;">// style it </span><br />
       checkBox.label = node.@description;            <span style="color:#008000;">// add it's label</span><br />
       checkBox.selected = TypeConverter.parseBoolean<span style="color:#888888;">*</span>(node.@enabled); <span style="color:#008000;">// un/checked</span><br />
       checkBox.id = node.@id;                        <span style="color:#008000;">// identify it</span><br />
   p_CheckContainer.addChild(checkBox);               <span style="color:#008000;">// display it</span><br />
   }<br />
}</span></span></span></code></p>
<p><span style="font-family:0;"><span style="color:#0000ff;"><span style="color:#000000;"><em><span style="color:#888888;">* TypeConverter is a class with static public method parseBoolean which returns a true/false boolean.</span></em></span></span></span></p>
<p>&#8212;&#8212;</p>
<p>Now, After we generated the UI from the XML, we want to save any changes, <em>say for example, the user un/checked one of these checkboxes</em>, and we want to resave the new XML with the appropriate values:</p>
<p><code><span style="color:#0000ff;">private</span> <span style="color:#008000;">function</span> saveChanges():<span style="color:#0000ff;">void</span> {<br />
   <span style="color:#3366ff;">var</span> _numCheckboxes:Number = p_CheckContainer.numChildren; <span style="color:#008000;">// Number of CheckBoxes</span><br />
   m_modifiedXML = &lt;cfg&gt;&lt;/cfg&gt;;                              <span style="color:#008000;">// member var of type XML</span><br />
   <span style="color:#0000ff;">for</span> (<span style="color:#3366ff;">var</span> i:Number= 0; i &lt;= _numCheckboxes - 1; i++) {<br />
       <span style="color:#3366ff;">var</span> _checkBox:CheckBox = p_CheckContainer.getChildAt(i) <span style="color:#0000ff;">as</span> CheckBox;<br />
       <span style="color:#3366ff;">var</span> _newNode:XML = &lt;shortcut/&gt;;<br />
           _newNode.@id= _checkBox.id;<br />
           _newNode.@enabled = _checkBox.selected;<br />
       m_modifiedXML.appendChild(_newNode);      <br />
    }<br />
    <span style="color:#ff99cc;">trace</span> ("<span style="color:#800000;">m_modifiedXML: </span>" + m_modifiedXML);<br />
}</code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexr.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexr.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexr.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexr.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexr.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexr.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexr.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexr.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexr.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexr.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=83&subd=flexr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexr.wordpress.com/2009/03/11/create-the-ui-from-xml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jester theFool</media:title>
		</media:content>
	</item>
		<item>
		<title>Adobe and Time Warner Partner</title>
		<link>http://flexr.wordpress.com/2009/03/03/78/</link>
		<comments>http://flexr.wordpress.com/2009/03/03/78/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 07:35:13 +0000</pubDate>
		<dc:creator>Jester theFool</dc:creator>
				<category><![CDATA[New Frontiers]]></category>

		<guid isPermaLink="false">http://flexr.wordpress.com/?p=78</guid>
		<description><![CDATA[To assure dominance of internet rich multimedia, Adobe and Time Warner are announcing Tuesday they have formed an online video alliance.
They’ll work on finding solutions for issues like digital rights management, audience measurement and content discovery and monetization.
Much of the relationship will concern backend technology for video creation that that the public will never see, Adobe [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=78&subd=flexr&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>To assure dominance of internet rich multimedia, Adobe and Time Warner are announcing Tuesday they have formed an online video alliance.</p>
<p>They’ll work on finding solutions for issues like digital rights management, audience measurement and content discovery and monetization.</p>
<p>Much of the relationship will concern backend technology for video creation that that the public will never see, Adobe said, however some implementations are already out there today, for instance CNN’s advanced application of Flash for its Obama Inauguration coverage and the recently relaunched TheWB.com.<span id="more-78"></span></p>
<p>However, it’s a pretty good time to get tied up with Time Warner. In an <a href="http://adage.com/mediaworks/article?article_id=134961">interview</a> in Ad Age Monday, Time Warner CEO Jeff Bewkes outlined some of his plans to give online access to cable content for subscribers. The Adobe partnership applies specifically to Time Warner properties Turner Broadcasting System, Warner Bros. Entertainment, and Home Box Office (HBO).</p>
<p>What excites me most is one cryptic statement embedded in the announcement: “HBO will soon relaunch www.hbo.com making extensive use of the Adobe Flash Platform.” Streaming HBO shows? Sounds it’s actually happening! &#8211; NewTeeVee</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexr.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexr.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexr.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexr.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexr.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexr.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexr.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexr.wordpress.com/78/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexr.wordpress.com/78/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexr.wordpress.com/78/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=78&subd=flexr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexr.wordpress.com/2009/03/03/78/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jester theFool</media:title>
		</media:content>
	</item>
		<item>
		<title>Browsing Habits &#8211; Silverlight gets PhotoSynth</title>
		<link>http://flexr.wordpress.com/2008/12/14/browsing-habits-silverlight-gets-seadragon/</link>
		<comments>http://flexr.wordpress.com/2008/12/14/browsing-habits-silverlight-gets-seadragon/#comments</comments>
		<pubDate>Sun, 14 Dec 2008 05:47:38 +0000</pubDate>
		<dc:creator>Jester theFool</dc:creator>
				<category><![CDATA[New Frontiers]]></category>

		<guid isPermaLink="false">http://flexr.wordpress.com/?p=47</guid>
		<description><![CDATA[On the road, you browse the internet with your finger. On your desktop, you browse the internet with your mouse wheel. More so if you would be able to use a horizontal+vertical wheel, like the mac&#8217;s mighty mouse and navigate with your middle finger the world.
Silverlight, Microsofts front to the RIA battle field, will have [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=47&subd=flexr&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><em>On the road</em>, you<strong> browse </strong>the internet with your <strong>finger</strong>. <em>On your desktop</em>, you<strong> browse</strong> the internet with your <strong>mouse wheel</strong>. More so if you would be able to use a horizontal+vertical wheel, like the mac&#8217;s mighty mouse and navigate with your middle finger the world.</p>
<p>Silverlight, Microsofts front to the RIA battle field, will have a nifty new feature by PhotoSynth in their Silverlight Player renderer this march, and ponder if Adobe is following suit on a similar or more effective way of &#8216;browsing&#8217;. The Seadragon will also be made for the iPhone that lets users “infinitely zoom” on high quality images with near zero transition times.</p>
<p>You can currently see the functionality in action used on the <a href="http://memorabilia.hardrock.com/" target="_blank">HardRock cafe</a>&#8217;s Memorabilia. Loading time kept the image often blurry in transition, but eventually loaded.</p>
<p><span style="text-align:center; display: block;"><a href="http://flexr.wordpress.com/2008/12/14/browsing-habits-silverlight-gets-seadragon/"><img src="http://img.youtube.com/vi/s-DqZ8jAmv0/2.jpg" alt="" /></a></span></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexr.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexr.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexr.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexr.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexr.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexr.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexr.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexr.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexr.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexr.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=47&subd=flexr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexr.wordpress.com/2008/12/14/browsing-habits-silverlight-gets-seadragon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jester theFool</media:title>
		</media:content>

		<media:content url="http://img.youtube.com/vi/s-DqZ8jAmv0/2.jpg" medium="image" />
	</item>
		<item>
		<title>Flash Camp: San Francisco &#8211; Flash CS4</title>
		<link>http://flexr.wordpress.com/2008/10/11/flash-camp-san-francisco-flash-cs4/</link>
		<comments>http://flexr.wordpress.com/2008/10/11/flash-camp-san-francisco-flash-cs4/#comments</comments>
		<pubDate>Sat, 11 Oct 2008 18:00:38 +0000</pubDate>
		<dc:creator>Jester theFool</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[CS4]]></category>
		<category><![CDATA[Flash]]></category>

		<guid isPermaLink="false">http://flexr.wordpress.com/2008/10/11/flash-camp-san-francisco-flash-cs4/</guid>
		<description><![CDATA[
We&#8217;re in day 2 of Flash Camp located at the historic Adobe building in San Francisco.
Adobe kindly gave every attendee a pre-release of Flash CS4, and I have admit, after a quick overview, they have added really cool features!
The first thing you&#8217;d notice is the tools locations have changed, the tools are fixed in place [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=33&subd=flexr&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><img class="size-full wp-image-364 alignleft" src="http://flexr.files.wordpress.com/2008/10/l-640-480-f8a44910-001b-466e-bbeb-88f6c1f24065.jpeg?w=300&#038;h=225" alt="" width="300" height="225" /></p>
<p>We&#8217;re in day 2 of Flash Camp located at the historic Adobe building in San Francisco.</p>
<p>Adobe kindly gave every attendee a pre-release of <strong>Flash CS4<strong>, and I have admit, after a quick overview, they have added <span style="text-decoration:underline;">really cool features<span style="text-decoration:underline;">!</span></span></strong></strong></p>
<p>The first thing you&#8217;d notice is the tools locations have changed, the tools are fixed in place (with option to move around), some liked it and prefered it to the loosely moveable tool sets. Another feature that certainly stands out is the &#8216;Bone&#8217; tool. Briefly, it&#8217;s an arm where you can hook two objects and use one of them as rotational center with the radius length of the bone. You can add several objects connected by bones.</p>
<p>You also will be greeted by the 3D feature, from the look of it being denies it looks extreemly easy to use! I feel any neophyte will be able to do 3D stuff  pretty quickly (having Flex as the backbone of most of my applications I don&#8217;t see much use for it out of the designing world).</p>
<p>Oh, and get this, Adobe has <strong>Free Massage <strong>for any attendee; <em>They sure do know how to pamper their developers<em>!</em></em></strong></strong></p>
<p><strong><strong><em><em><br />
</em></em></strong></strong></p>
<p><strong><strong><em><em> </em></em></strong></strong></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexr.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexr.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexr.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexr.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexr.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexr.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexr.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexr.wordpress.com/33/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexr.wordpress.com/33/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexr.wordpress.com/33/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=33&subd=flexr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexr.wordpress.com/2008/10/11/flash-camp-san-francisco-flash-cs4/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jester theFool</media:title>
		</media:content>

		<media:content url="http://flexr.files.wordpress.com/2008/10/l-640-480-f8a44910-001b-466e-bbeb-88f6c1f24065.jpeg" medium="image" />
	</item>
		<item>
		<title>Flex &#8211; Dispatching your very own custom event</title>
		<link>http://flexr.wordpress.com/2008/10/05/flex-dispatching-your-very-own-custom-event/</link>
		<comments>http://flexr.wordpress.com/2008/10/05/flex-dispatching-your-very-own-custom-event/#comments</comments>
		<pubDate>Sun, 05 Oct 2008 22:40:16 +0000</pubDate>
		<dc:creator>Jester theFool</dc:creator>
				<category><![CDATA[ActionScripting3]]></category>
		<category><![CDATA[Flex 2]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[custom Event]]></category>
		<category><![CDATA[dispatch]]></category>
		<category><![CDATA[Event]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexr.wordpress.com/?p=57</guid>
		<description><![CDATA[Many friends of mine are noticing the emerging new Programming Language that&#8217;s sweeping the RIA world. ActionScript 3. Like many other OO languages, you can easily customize your own Event. Here&#8217;s a quick and simple way of understanding it.
The Problem: You want to create a timer, and after each elapsed time, you would like to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=57&subd=flexr&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Many friends of mine are noticing the emerging new Programming Language that&#8217;s sweeping the RIA world. ActionScript 3. Like many other OO languages, you can easily customize your own Event. Here&#8217;s a quick and simple way of understanding it.</p>
<p>The Problem: You want to create a timer, and after each elapsed time, you would like to dispatch an event <strong>and</strong><strong> a variable that keeps updating</strong> (<em>without using global variables, and ensuring decoupling</em>).</p>
<p>CountdownTimer.as : A timer which elapses ever second and displays a countdown of a time remaining with fixed endTime. </p>
<p>CountDownTimer.as:<br />
<span style="color:#339966;font-family:0;">// in the constructor<br />
<span style="color:#000000;">ticker = <span style="color:#0000ff;">new</span> Timer(1000);<br />
ticker.addEventListener(TimerEvent.TIMER, onTick);<br />
ticker.start();<br />
</span></span></p>
<p><span style="color:#339966;font-family:0;"><span style="color:#000000;"><span style="color:#0000ff;">private</span> <span style="color:#339966;">function</span> onTick(evt:TimerEvent):<span style="color:#0000ff;">void</span> {<br />
<span style="color:#0000ff;">   <span style="color:#99ccff;">var</span></span> myEvent:MyTimerEvent = <span style="color:#0000ff;">new</span> MyTimerEvent(<span style="color:#800000;">&#8220;secElapse&#8221;</span>);<br />
       myEvent.timeLeft = getCountDown(countDownTime &#8211; (<span style="color:#0000ff;">new</span> Date()).getTime());<br />
   dispatchEvent(myEvent);<br />
}</span></span></p>
<p>&#8212;&#8212;<br />
 </p>
<p>MyTimerEvent.as: Our very own customized timer<br />
<code><span style="color:#0000ff;">public</span> <span style="color:#333399;">class</span> MyTimerEvent extends Event {<br />
<span style="color:#0000ff;">   private</span> <span style="color:#3366ff;">var</span> theTime:String;</code></p>
<p><code>   <span style="color:#0000ff;">public</span> <span style="color:#339966;">function</span> MyTimerEvent( type:String ) {<br />
      <span style="color:#0000ff;">super</span>(type);<br />
   }</code></p>
<p><code>   <span style="color:#0000ff;">public</span> <span style="color:#339966;">function</span> <span style="color:#0000ff;">set</span> timeLeft ( time:String ):<span style="color:#0000ff;">void</span> {<br />
      theTime = time;<br />
   }</code></p>
<p><code>   <span style="color:#0000ff;">public</span> <span style="color:#339966;">function</span> <span style="color:#0000ff;">get</span> timeLeft ():String {<br />
      return theTime;<br />
   }<br />
}</code></p>
<p>&#8212;&#8212;-</p>
<p>Our MXML where all the action converges on <em>CreationComplete=&#8221;onCC()&#8221; </em>:<br />
<code><span style="color:#0000ff;"><span style="font-family:Georgia;">      </span>private</span> <span style="color:#339966;">function</span> onCC():<span style="color:#0000ff;">void</span> {<br />
<span style="color:#339966;">     // listner to secElapse dispatcher</span><br />
     countDown = <span style="color:#0000ff;">new</span> CountdownTimer();<br />
     countDown.addEventListener(<span style="color:#800000;">"secElapse"</span>, updateTime);<br />
   }</code></p>
<p><code> </code></p>
<p><code><span style="color:#339966;">   // Update the display timer</span><br />
<span style="color:#0000ff;">   private</span> <span style="color:#339966;">function</span> updateTime (e:MyTimerEvent):<span style="color:#0000ff;">void</span> {<br />
      countDown.endTime = m_endTime;<br />
      m_updatedTimeRemaining = e.timeLeft;<br />
   }</code></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexr.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexr.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexr.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexr.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexr.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexr.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexr.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexr.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexr.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexr.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=57&subd=flexr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexr.wordpress.com/2008/10/05/flex-dispatching-your-very-own-custom-event/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jester theFool</media:title>
		</media:content>
	</item>
		<item>
		<title>Parse Boolean method for Flex</title>
		<link>http://flexr.wordpress.com/2008/08/12/parse-boolean-method-for-flex/</link>
		<comments>http://flexr.wordpress.com/2008/08/12/parse-boolean-method-for-flex/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 23:59:23 +0000</pubDate>
		<dc:creator>Jester theFool</dc:creator>
				<category><![CDATA[ActionScripting3]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Parse Boolean]]></category>
		<category><![CDATA[parseBoolean]]></category>
		<category><![CDATA[utils]]></category>

		<guid isPermaLink="false">http://flexr.wordpress.com/?p=98</guid>
		<description><![CDATA[I wonder why there isn&#8217;t an out of the box Boolean parser in Flex, I must have built this same method at least 3 times for different projects&#8230; You should probably add this to your utils as well.
static public function parseBoolean(str:String):Boolean {
 switch(str) {
case "1":
case "true":
case "yes":
return true;
case "0":
case "false":
 case "no":
 return false;
default:
return Boolean(str);
}
}
 [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=98&subd=flexr&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I wonder why there isn&#8217;t an out of the box Boolean parser in Flex, I must have built this same method at least 3 times for different projects&#8230; You should probably add this to your <strong>utils</strong> as well.</p>
<p style="padding-left:30px;"><code><span style="color:#0000ff;">static public</span> <span style="color:#339966;">function</span> parseBoolean(str:String):<span style="color:#0000ff;">Boolean</span> {<br />
<span style="color:#0000ff;"> switch</span>(str) {<br />
<span style="color:#0000ff;">case </span><span style="color:#800000;">"1"</span>:<br />
<span style="color:#0000ff;">case</span> <span style="color:#800000;">"true"</span>:<br />
<span style="color:#0000ff;">case</span> <span style="color:#800000;">"yes"</span>:<br />
<span style="color:#0000ff;">return true</span>;<br />
<span style="color:#0000ff;">case </span><span style="color:#800000;">"0"</span>:<br />
<span style="color:#0000ff;">case </span><span style="color:#800000;">"false"</span>:<br />
<span style="color:#0000ff;"> case </span><span style="color:#800000;">"no"</span>:<br />
<span style="color:#0000ff;"><strong> </strong>return false<span style="color:#000000;">;</span></span><br />
<span style="color:#0000ff;">default</span>:<br />
<span style="color:#0000ff;">return Boolean</span>(str);<br />
}<br />
}</code></p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexr.wordpress.com/98/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexr.wordpress.com/98/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexr.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexr.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexr.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexr.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexr.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexr.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexr.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexr.wordpress.com/98/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexr.wordpress.com/98/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexr.wordpress.com/98/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=98&subd=flexr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexr.wordpress.com/2008/08/12/parse-boolean-method-for-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jester theFool</media:title>
		</media:content>
	</item>
		<item>
		<title>Google, Yahoo! crawls .swf files</title>
		<link>http://flexr.wordpress.com/2008/07/01/google-yahoo-crawls-swf-files/</link>
		<comments>http://flexr.wordpress.com/2008/07/01/google-yahoo-crawls-swf-files/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 13:23:11 +0000</pubDate>
		<dc:creator>Jester theFool</dc:creator>
				<category><![CDATA[SEO]]></category>
		<category><![CDATA[Adobe]]></category>
		<category><![CDATA[crawl]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[SEM]]></category>
		<category><![CDATA[swf]]></category>
		<category><![CDATA[Yahoo!]]></category>

		<guid isPermaLink="false">http://flexr.wordpress.com/?p=17</guid>
		<description><![CDATA[Today, Adobe and Google announced that major search engines Google and Yahoo! are able to crawl these esthetically beautiful flash websites and Rich Internet Applications.
This has been a major obstacle in the past due to the fact that if these search engines do not recognize your work, basically you don&#8217;t exist. Now designer and developers can style and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=17&subd=flexr&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Today, <a href="http://www.adobe.com/aboutadobe/pressroom/pressreleases/200806/070108AdobeRichMediaSearch.html" target="_blank">Adobe</a> and <a href="http://googleblog.blogspot.com/2008/06/google-learns-to-crawl-flash.html" target="_blank">Google</a> announced that major search engines Google and Yahoo! are able to crawl these esthetically beautiful flash websites and Rich Internet Applications.</p>
<p>This has been a major obstacle in the past due to the fact that if these search engines do not recognize your work, basically you don&#8217;t exist. Now designer and developers can style and architect with the peace of mind of being searchable. This includes Flash &#8220;gadgets&#8221; such as buttons or menus, self-contained Flash websites, and everything in between. All of the text that users can see as they interact with your Flash file. If your website contains Flash, the textual content in your Flash files can be used when Google generates a snippet for your website. Also, the words that appear in your Flash files can be used to match query terms in Google searches. Keep in mind, URLs that appear in swf files, and feeding them into Googles&#8217; crawling pipeline—just like they do with URLs that appear in non-Flash webpages. For example, if your Flash application contains links to pages inside your website, Google may now be better able to discover and crawl more of your website/RIA.</p>
<p>This is a major improvement for the RIA world, because <strong>competing</strong> RIA technologies to Adobe Flex and Flash are <strong>not crawl-able</strong> by search engines like Silverlight. As with HTML content, best practices will emerge over time for creating SWF content that is more optimized for search engine rankings.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexr.wordpress.com/17/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexr.wordpress.com/17/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexr.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexr.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexr.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexr.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexr.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexr.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexr.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexr.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexr.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexr.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=17&subd=flexr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexr.wordpress.com/2008/07/01/google-yahoo-crawls-swf-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jester theFool</media:title>
		</media:content>
	</item>
		<item>
		<title>ColumnChart purely in ActionScript</title>
		<link>http://flexr.wordpress.com/2008/06/23/columnchart-purely-in-actionscript/</link>
		<comments>http://flexr.wordpress.com/2008/06/23/columnchart-purely-in-actionscript/#comments</comments>
		<pubDate>Mon, 23 Jun 2008 18:04:43 +0000</pubDate>
		<dc:creator>Jester theFool</dc:creator>
				<category><![CDATA[ActionScripting3]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[Actionscript]]></category>
		<category><![CDATA[AS3]]></category>
		<category><![CDATA[Column Chart]]></category>
		<category><![CDATA[columnChart]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexr.wordpress.com/?p=6</guid>
		<description><![CDATA[Same as the other charts I have posted here in Actionscript 3&#8230; we would need the data for the Column Chart to be generated.
private function getDataProvider():ArrayCollection {
   var arr:Array = [];
   arr.push({title: "Benefit 1", data: 2});
   arr.push({title: "Benefit 2", data: 5});
   arr.push({title: "Benefit 3", data: 6});
   arr.push({title: "Benefit 4", data: 3});
   return new ArrayCollection(arr);
}
Now for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=6&subd=flexr&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Same as the other charts I have posted here in <strong>Actionscript</strong> 3&#8230; we would need the data for the <strong>Column Chart </strong>to be generated.</p>
<p><code><span style="color:#0000ff;">private</span> <span style="color:#339966;">function</span> getDataProvider():<span style="color:#0000ff;">ArrayCollection</span> {<br />
   <span style="color:#3366ff;">var</span> arr:Array = [];<br />
   arr.push({title: "Benefit 1", data: 2});<br />
   arr.push({title: "Benefit 2", data: 5});<br />
   arr.push({title: "Benefit 3", data: 6});<br />
   arr.push({title: "Benefit 4", data: 3});<br />
   <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">new</span> ArrayCollection(arr);<br />
}</code></p>
<p>Now for the Chart to be displayed&#8230; you&#8217;d need to call this function,</p>
<p><code><span style="color:#0000ff;"> private</span> <span style="color:#339966;">function</span> columnChart():<span style="color:#0000ff;">void</span> {<br />
   <span style="color:#3366ff;">var</span> columnChart:ColumnChart = <span style="color:#0000ff;">new</span> ColumnChart();<br />
       columnChart.dataProvider = getDataProvider();<br />
       columnChart.percentWidth = 60;<br />
       columnChart.percentHeight = 60;<br />
       columnChart.x = 100;<br />
       columnChart.y = 85;<br />
       columnChart.dataTipFunction = tipFeedback;<br />
       columnChart.showDataTips = true;<br />
   <span style="color:#3366ff;">var</span> catAxis:CategoryAxis = <span style="color:#0000ff;">new</span> CategoryAxis();<br />
       catAxis.categoryField = "title";<br />
   columnChart.horizontalAxis = catAxis;<br />
   <span style="color:#3366ff;">var</span> col:ColumnSeries = <span style="color:#0000ff;">new</span> ColumnSeries();<br />
       col.yField = "data";<br />
       col.xField = "title";<br />
   columnChart.series = [col];<br />
   <span style="color:#339966;">// add a lengend<br />
</span>   <span style="color:#3366ff;">var</span> legendAnnualBen:Legend = <span style="color:#0000ff;">new</span> Legend();<br />
       legendAnnualBen.dataProvider = columnChart;<br />
       legendAnnualBen.x = 700;<br />
       legendAnnualBen.y = 140;<br />
   columnContainer.addChild(columnChart);<br />
   columnContainer.addChild(legendAnnualBen);<br />
}</code></p>
<p>In MXML, the <strong>columnContainer </strong>is the <strong>id</strong> of any container from a Canvas to a VBox, to a &#8230; any container you wish that has the id name &#8220;columnContainer&#8221;</p>
<p>enjoy.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexr.wordpress.com/6/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexr.wordpress.com/6/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexr.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexr.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexr.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexr.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexr.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexr.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexr.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexr.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexr.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexr.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=6&subd=flexr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexr.wordpress.com/2008/06/23/columnchart-purely-in-actionscript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jester theFool</media:title>
		</media:content>
	</item>
		<item>
		<title>pieChart purely in Actionscipt</title>
		<link>http://flexr.wordpress.com/2008/06/19/piechart-purely-in-actionscipt/</link>
		<comments>http://flexr.wordpress.com/2008/06/19/piechart-purely-in-actionscipt/#comments</comments>
		<pubDate>Thu, 19 Jun 2008 18:06:44 +0000</pubDate>
		<dc:creator>Jester theFool</dc:creator>
				<category><![CDATA[ActionScripting3]]></category>
		<category><![CDATA[Flex 3]]></category>
		<category><![CDATA[pie chart]]></category>
		<category><![CDATA[pieChart]]></category>

		<guid isPermaLink="false">http://flexr.wordpress.com/?p=5</guid>
		<description><![CDATA[Similar to last week, I gave the raw basis of a LineChart, this week I&#8217;ll post on how to render a pieChart, slightly different&#8230; here goes, same dataProvider
private function getDataProvider():ArrayCollection {
   var arr:Array = [];
   arr.push({title: “Benefit 1″, data: 2});
   arr.push({title: “Benefit 2″, data: 5});
   arr.push({title: “Benefit 3″, data: 6});
   arr.push({title: “Benefit 4″, data: 3});
   [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=5&subd=flexr&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Similar to last week, I gave the raw basis of a LineChart, this week I&#8217;ll post on how to render a pieChart, slightly different&#8230; here goes, same dataProvider</p>
<p><code><span style="color:#0000ff;">private</span> <span style="color:#339966;">function</span> getDataProvider():<span style="color:#0000ff;">ArrayCollection</span> {<br />
   <span style="color:#3366ff;">var</span> arr:Array = [];<br />
   arr.push({title: “Benefit 1″, data: 2});<br />
   arr.push({title: “Benefit 2″, data: 5});<br />
   arr.push({title: “Benefit 3″, data: 6});<br />
   arr.push({title: “Benefit 4″, data: 3});<br />
   <span style="color:#0000ff;">return</span> <span style="color:#0000ff;">new</span> ArrayCollection(arr);<br />
}</code></p>
<p>the pieChart is the following:</p>
<p><code><span style="color:#0000ff;">private</span> <span style="color:#339966;">function</span> drawPieChart():<span style="color:#0000ff;">void</span> {<br />
   <span style="color:#3366ff;">var</span> dummyData:ArrayCollection;<br />
       dummyData = getDataProvider();<br />
   <span style="color:#3366ff;">var</span> series:PieSeries;<br />
       series = new PieSeries();<br />
       series.nameField = "title";<br />
       series.field = "data";<br />
       series.filters = [];<br />
   pieChart = <span style="color:#0000ff;">new</span> PieChart();<br />
   pieChart.percentWidth = 60;<br />
   pieChart.percentHeight = 60;<br />
   pieChart.showDataTips = true;<br />
   pieChart.dataProvider = dummyData;<br />
   pieChart.series = [series];<br />
   pieChart.y = 75;<br />
   pieChart.x = 70;<br />
   <span style="color:#3366ff;">var</span> legendPie = <span style="color:#0000ff;">new</span> Legend();  <span style="color:#339966;">// add a legend to your chart</span><br />
       legendPie.dataProvider = pieChart;<br />
       legendPie.x = 516;<br />
       legendPie.y = 134;<br />
   chartContainer.addChild(pieChart);<br />
   chartContainer.addChild(legendPie);<br />
}</code></p>
<p>The &#8216;<strong>chartContainer&#8217;</strong> is the <strong>id </strong>of a container say of, a canvas or any other sort of container you wish. Enjoy.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/flexr.wordpress.com/5/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/flexr.wordpress.com/5/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexr.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexr.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexr.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexr.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexr.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexr.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexr.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexr.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexr.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexr.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexr.wordpress.com&blog=1900265&post=5&subd=flexr&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://flexr.wordpress.com/2008/06/19/piechart-purely-in-actionscipt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">Jester theFool</media:title>
		</media:content>
	</item>
	</channel>
</rss>