<?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>Radhakrishna&#039;s Blog</title>
	<atom:link href="http://radhakrishnabhat.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://radhakrishnabhat.wordpress.com</link>
	<description>A blog about Adobe / Flex</description>
	<lastBuildDate>Mon, 25 Oct 2010 14:05:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='radhakrishnabhat.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Radhakrishna&#039;s Blog</title>
		<link>http://radhakrishnabhat.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://radhakrishnabhat.wordpress.com/osd.xml" title="Radhakrishna&#039;s Blog" />
	<atom:link rel='hub' href='http://radhakrishnabhat.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Flash Builder Burrito Preview release is live on labs!</title>
		<link>http://radhakrishnabhat.wordpress.com/2010/10/25/flash-builder-burrito-preview-release-is-live-on-labs/</link>
		<comments>http://radhakrishnabhat.wordpress.com/2010/10/25/flash-builder-burrito-preview-release-is-live-on-labs/#comments</comments>
		<pubDate>Mon, 25 Oct 2010 14:05:44 +0000</pubDate>
		<dc:creator>rakris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://radhakrishnabhat.wordpress.com/?p=69</guid>
		<description><![CDATA[Flash Builder Burrito Preview release is now live on labs. Get it here. http://labs.adobe.com/technologies/flashbuilder_burrito/ Comes with lots of new features like coding productivity and mobile workflows. Cheers, Radhakrishna<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=radhakrishnabhat.wordpress.com&amp;blog=8116573&amp;post=69&amp;subd=radhakrishnabhat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Flash Builder Burrito Preview release is now live on labs.</p>
<p>Get it here. <a href="http://labs.adobe.com/technologies/flashbuilder_burrito/">http://labs.adobe.com/technologies/flashbuilder_burrito/</a></p>
<p>Comes with lots of new features like coding productivity and mobile workflows.</p>
<p>Cheers,</p>
<p>Radhakrishna</p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radhakrishnabhat.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radhakrishnabhat.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/radhakrishnabhat.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/radhakrishnabhat.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/radhakrishnabhat.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/radhakrishnabhat.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/radhakrishnabhat.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/radhakrishnabhat.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/radhakrishnabhat.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/radhakrishnabhat.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/radhakrishnabhat.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/radhakrishnabhat.wordpress.com/69/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/radhakrishnabhat.wordpress.com/69/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/radhakrishnabhat.wordpress.com/69/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=radhakrishnabhat.wordpress.com&amp;blog=8116573&amp;post=69&amp;subd=radhakrishnabhat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://radhakrishnabhat.wordpress.com/2010/10/25/flash-builder-burrito-preview-release-is-live-on-labs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afe194e3f6ab51c305b3987dfd965103?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rakris</media:title>
		</media:content>
	</item>
		<item>
		<title>Using convertParametersHandler in Flex 4</title>
		<link>http://radhakrishnabhat.wordpress.com/2010/03/09/using-convertparametershandler-in-flex-4/</link>
		<comments>http://radhakrishnabhat.wordpress.com/2010/03/09/using-convertparametershandler-in-flex-4/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 07:17:05 +0000</pubDate>
		<dc:creator>rakris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://radhakrishnabhat.wordpress.com/?p=63</guid>
		<description><![CDATA[There is avery handy API in Flex 4 RemoteObject and WebService. It lets you manipulate/validate parameters before calling the actual operation. Suppose I have imported WebService http://ws.cdyne.com/WeatherWS/Weather.asmx?wsdl in FlashBuilder 4 . The service basically gives weather information.  I want to validate/Change parameter &#8216;ZIPCODE&#8217; of &#8216;GetCityWeatherByZIP&#8217; when a service call happens. Here is what you need to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=radhakrishnabhat.wordpress.com&amp;blog=8116573&amp;post=63&amp;subd=radhakrishnabhat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There is avery handy API in Flex 4 RemoteObject and WebService. It lets you manipulate/validate parameters before calling the actual operation.</p>
<p>Suppose I have imported WebService <a href="http://ws.cdyne.com/WeatherWS/Weather.asmx?wsdl in" rel="nofollow">http://ws.cdyne.com/WeatherWS/Weather.asmx?wsdl in</a> FlashBuilder 4 . The service basically gives weather information.  I want to validate/Change parameter &#8216;ZIPCODE&#8217; of &#8216;GetCityWeatherByZIP&#8217; when a service call happens. Here is what you need to do. In servicename.as class,</p>
<pre>public class Weather extends _Super_Weather
{

	public function Weather() {

		_serviceControl.convertParametersHandler = convertParameterHandler;

	}

	public function convertParameterHandler(o:Array):Array {
//Dummy validation. If user gives '210' as value. Prefix it with '90' (Beverly Hills:-)
		var str:String = o[0];
		if(str.substr(0,2)!="90") //User gives only last 3 digits
			str = "90"+str;
		o[0] = str;
		return o;
	}

}

}</pre><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radhakrishnabhat.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radhakrishnabhat.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/radhakrishnabhat.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/radhakrishnabhat.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/radhakrishnabhat.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/radhakrishnabhat.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/radhakrishnabhat.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/radhakrishnabhat.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/radhakrishnabhat.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/radhakrishnabhat.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/radhakrishnabhat.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/radhakrishnabhat.wordpress.com/63/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/radhakrishnabhat.wordpress.com/63/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/radhakrishnabhat.wordpress.com/63/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=radhakrishnabhat.wordpress.com&amp;blog=8116573&amp;post=63&amp;subd=radhakrishnabhat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://radhakrishnabhat.wordpress.com/2010/03/09/using-convertparametershandler-in-flex-4/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afe194e3f6ab51c305b3987dfd965103?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rakris</media:title>
		</media:content>
	</item>
		<item>
		<title>Setting up Django and PyAMF to use Python models objects in Flex using RemoteObject</title>
		<link>http://radhakrishnabhat.wordpress.com/2009/08/26/setting-up-django-and-pyamf-to-use-python-models-objects-in-flex-using-remoteobject/</link>
		<comments>http://radhakrishnabhat.wordpress.com/2009/08/26/setting-up-django-and-pyamf-to-use-python-models-objects-in-flex-using-remoteobject/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 17:20:25 +0000</pubDate>
		<dc:creator>rakris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[AMF]]></category>
		<category><![CDATA[Django]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[PyAMF]]></category>
		<category><![CDATA[RemoteObject]]></category>

		<guid isPermaLink="false">http://radhakrishnabhat.wordpress.com/?p=54</guid>
		<description><![CDATA[This post is only about setting up and installing Django and PyAMF. And a simple example of  Flex Client using RemoteObject. Click here to know about and download Django and PyAMF. Prerequisites are Python 2.5 or 2.6. 3.0 is not yet supported by both of them. Download and extract Django to a Directory. cd to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=radhakrishnabhat.wordpress.com&amp;blog=8116573&amp;post=54&amp;subd=radhakrishnabhat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This post is only about setting up and installing Django and PyAMF. And a simple example of  Flex Client using RemoteObject.</p>
<p>Click here to know about and download <a href="http://www.djangoproject.com/">Django</a> and <a href="http://pyamf.org/">PyAMF</a>. Prerequisites are Python 2.5 or 2.6. 3.0 is not yet supported by both of them.</p>
<p>Download and extract Django to a Directory. cd to it.</p>
<pre><span style="color:#0000ff;">python setup.py install
</span></pre>
<p>To setup projects and apps, read this, <a href="http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01">http://docs.djangoproject.com/en/dev/intro/tutorial01/#intro-tutorial01</a></p>
<p>Download and extract pyAMF to a dir and cd to it.</p>
<pre><span style="color:#0000ff;">python setup.py install
</span></pre>
<p>copy the &#8216;pyAMF&#8217; directory which is under &#8216;build/lib.win32-2.6&#8242; directory inside your extracted PyAMF folder. Paste it under $PYTHONHOME\Lib\site-packages.</p>
<p>I have created a Project and App and dir structure looks like this.</p>
<pre><span style="color:#0000ff;">D:\
   DjangoProjects\
       proj\
           manage.py
           settings.py
           urls.py
           empl\
                  models.py
                  tests.py
                  views.py</span></pre>
<p>I have written a simple model and a method getAllItems inside models.py. Here is the code.</p>
<pre><span style="color:#0000ff;">from django.db import models

def getAllItems(self):
    rows = Employees.objects.all()
    return rows

class Employees(models.Model):
    emp_no = models.IntegerField(primary_key=True)
    birth_date = models.DateField()
    first_name = models.CharField(max_length=42)
    last_name = models.CharField(max_length=48)
    gender = models.CharField(max_length=3)
    hire_date = models.DateField()
    class Meta:
        db_table = u'employees'</span></pre>
<p>Now if we want to invoke getAllItems from Flex, we need to add a gateway file . Here is my gateway.py under empl app.</p>
<pre><span style="color:#0000ff;">from pyamf.remoting.gateway.django import DjangoGateway

import proj.empl.models as models

services = {
    'Employees': models
    # could include other functions as well
}

echoGateway = DjangoGateway(services)</span>
<span style="color:#0000ff;">#UPDATE: Pass expose_request=false parameter to DjangoGateway to skip http request object as a mandated parameter.</span></pre>
<p>Here, note that inside services, &#8216;Employees&#8217; is going to be your &#8216;destination&#8217; of RemoteObject in Flex.<br />
Update your URLConf like this. I am re-directing URL anything ending with gateway/ to my gateway.py.</p>
<pre><span style="color:#0000ff;">from django.conf.urls.defaults import *
from proj.empl import gateway

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',

    ('^gateway/$', gateway.echoGateway)
)</span></pre>
<p>We have successfully configured our Django/PyAMF. Let us write a simple Flex client to invoke getAllItems(). Our Remote Class here would be models with destination as &#8216;Employees&#8217;. I am using Flex 4 beta here.</p>
<pre><span style="color:#0000ff;">&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
 xmlns:s="library://ns.adobe.com/flex/spark"
 xmlns:mx="library://ns.adobe.com/flex/halo" minWidth="1024" minHeight="768" initialize="application1_initializeHandler(event)"&gt;
 &lt;fx:Script&gt;
 &lt;![CDATA[
 import mx.rpc.http.Operation;
 import mx.controls.Alert;
 import mx.events.FlexEvent;
 import mx.rpc.events.FaultEvent;
 import mx.rpc.events.ResultEvent;
 protected function test_resultHandler(event:ResultEvent):void
 {
 dg.dataProvider = event.result;
 }

 protected function test_faultHandler(event:FaultEvent):void
 {
 Alert.show(event.fault.faultDetail);
 }

 protected function application1_initializeHandler(event:FlexEvent):void
 {
 test.getAllItems();
 }
 ]]&gt;
 &lt;/fx:Script&gt;
 &lt;fx:Declarations&gt;
 &lt;mx:RemoteObject id="test" endpoint="http://localhost:8000/gateway/"
 destination="Employees" result="test_resultHandler(event)" fault="test_faultHandler(event)"&gt;

 &lt;/mx:RemoteObject&gt;
 &lt;/fx:Declarations&gt;
 &lt;mx:DataGrid id="dg"/&gt;

&lt;/s:Application&gt;</span></pre>
<p>Start your Django development server from inside Django project.</p>
<pre><span style="color:#0000ff;">python manage.py runserver</span></pre>
<p>.</p>
<p>Run the application and check your data in DataGrid:)</p>
<div id="attachment_56" class="wp-caption aligncenter" style="width: 510px"><img class="size-full wp-image-56" title="DGClient" src="http://radhakrishnabhat.files.wordpress.com/2009/08/dgclient.jpg?w=500&#038;h=149" alt="After running my Flex client" width="500" height="149" /><p class="wp-caption-text">After running my Flex client</p></div><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radhakrishnabhat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radhakrishnabhat.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/radhakrishnabhat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/radhakrishnabhat.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/radhakrishnabhat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/radhakrishnabhat.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/radhakrishnabhat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/radhakrishnabhat.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/radhakrishnabhat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/radhakrishnabhat.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/radhakrishnabhat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/radhakrishnabhat.wordpress.com/54/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/radhakrishnabhat.wordpress.com/54/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/radhakrishnabhat.wordpress.com/54/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=radhakrishnabhat.wordpress.com&amp;blog=8116573&amp;post=54&amp;subd=radhakrishnabhat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://radhakrishnabhat.wordpress.com/2009/08/26/setting-up-django-and-pyamf-to-use-python-models-objects-in-flex-using-remoteobject/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afe194e3f6ab51c305b3987dfd965103?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rakris</media:title>
		</media:content>

		<media:content url="http://radhakrishnabhat.files.wordpress.com/2009/08/dgclient.jpg" medium="image">
			<media:title type="html">DGClient</media:title>
		</media:content>
	</item>
		<item>
		<title>A simple sample Twitter Client using ActionScript APIs</title>
		<link>http://radhakrishnabhat.wordpress.com/2009/08/11/a-simple-sample-twitter-client-using-actionscript-apis/</link>
		<comments>http://radhakrishnabhat.wordpress.com/2009/08/11/a-simple-sample-twitter-client-using-actionscript-apis/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 16:00:01 +0000</pubDate>
		<dc:creator>rakris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[AIR]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Twitter]]></category>
		<category><![CDATA[TwitterScript]]></category>

		<guid isPermaLink="false">http://radhakrishnabhat.wordpress.com/?p=38</guid>
		<description><![CDATA[Hello all, I used &#8220;TwitterScript&#8221; ActionScript APIs to develop this simple twitter client. There is no help or documentation about the classes available inside that SWC. But we can figure out by looking at method signature names. Here is the Screenshot. Here is the *.air file. TwitterClient Here is the source code. Source code<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=radhakrishnabhat.wordpress.com&amp;blog=8116573&amp;post=38&amp;subd=radhakrishnabhat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hello all,</p>
<p>I used &#8220;<a href="http://code.google.com/p/twitterscript/">TwitterScript</a>&#8221;  ActionScript APIs to develop this simple twitter client. There is no help or documentation about the classes available inside that SWC. But we can figure out by looking at method signature names.</p>
<p>Here is the Screenshot.</p>
<p><img class="alignnone size-full wp-image-40" title="TwitterClient" src="http://radhakrishnabhat.files.wordpress.com/2009/08/twitterclient.jpg?w=335&#038;h=524" alt="TwitterClient" width="335" height="524" /></p>
<p>Here is the *.air file.<br />
<a href="http://sites.google.com/site/forfileuploading/flex/TwitterClient.air">TwitterClient</a></p>
<p>Here is the source code.<br />
<a href="http://sites.google.com/site/forfileuploading/flex/TwitterClient.zip">Source code</a></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radhakrishnabhat.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radhakrishnabhat.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/radhakrishnabhat.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/radhakrishnabhat.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/radhakrishnabhat.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/radhakrishnabhat.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/radhakrishnabhat.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/radhakrishnabhat.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/radhakrishnabhat.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/radhakrishnabhat.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/radhakrishnabhat.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/radhakrishnabhat.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/radhakrishnabhat.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/radhakrishnabhat.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=radhakrishnabhat.wordpress.com&amp;blog=8116573&amp;post=38&amp;subd=radhakrishnabhat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://radhakrishnabhat.wordpress.com/2009/08/11/a-simple-sample-twitter-client-using-actionscript-apis/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afe194e3f6ab51c305b3987dfd965103?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rakris</media:title>
		</media:content>

		<media:content url="http://radhakrishnabhat.files.wordpress.com/2009/08/twitterclient.jpg" medium="image">
			<media:title type="html">TwitterClient</media:title>
		</media:content>
	</item>
		<item>
		<title>Creating YouTube App in Flash Builder 4 using PHP Service</title>
		<link>http://radhakrishnabhat.wordpress.com/2009/06/23/creating-youtube-app-in-flash-builder-4-using-php-service/</link>
		<comments>http://radhakrishnabhat.wordpress.com/2009/06/23/creating-youtube-app-in-flash-builder-4-using-php-service/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 09:13:12 +0000</pubDate>
		<dc:creator>rakris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[builder]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://radhakrishnabhat.wordpress.com/?p=13</guid>
		<description><![CDATA[Flash Builder 4 has many cool features. One of them is Data Centric Development (DCD). Here is one cool sample app created using Flash Builder 4 beta. Create a Flex Project with PHP Server type as shown in screenshot below Enter the WebRoot and RootURL for your Server. I am using MAMP as my server [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=radhakrishnabhat.wordpress.com&amp;blog=8116573&amp;post=13&amp;subd=radhakrishnabhat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Flash Builder 4 has many cool features. One of them is Data Centric Development (DCD).  Here is one cool sample app created using Flash Builder 4 beta.</p>
<ul>
<li>
<h3>Create a Flex Project with PHP Server type as shown in screenshot below</h3>
</li>
</ul>
<div id="attachment_14" class="wp-caption aligncenter" style="width: 316px"><img class="size-full wp-image-14 " title="Picture 1" src="http://radhakrishnabhat.files.wordpress.com/2009/06/picture-1.png?w=306&#038;h=338" alt="Creating Project." width="306" height="338" /><p class="wp-caption-text">Creating Project.</p></div>
<ul>
<li>
<h3>Enter the WebRoot and RootURL for your Server. I am using MAMP as my server</h3>
<p>.</li>
</ul>
<div id="attachment_15" class="wp-caption aligncenter" style="width: 316px"><img class="size-full wp-image-15 " title="2nd Page" src="http://radhakrishnabhat.files.wordpress.com/2009/06/picture-2.png?w=306&#038;h=338" alt="Enter the Web Root" width="306" height="338" /><p class="wp-caption-text">Enter the Web Root</p></div>
<p>Click FINISH. Now in order to connect to any data, we are gonna have to create a service for that. Click on &#8216;Connect to Data/Services&#8217; link in Data/Services View.</p>
<div id="attachment_16" class="wp-caption alignnone" style="width: 321px"><img class="size-full wp-image-16" title="Connect to Service" src="http://radhakrishnabhat.files.wordpress.com/2009/06/picture-3.png?w=311&#038;h=145" alt="Connect to service" width="311" height="145" /><p class="wp-caption-text">Connect to service</p></div>
<ul>
<li>
<h3>Select PHP, and enter service name and import the required PHP file</h3>
<p>.</li>
</ul>
<p>I am using the PHP Code <a href="http://sites.google.com/site/forfileuploading/flex/YouTube.php?attredirects=0" target="_blank">YouTube</a> which i referred from<a href="http://www.ibm.com/developerworks/xml/library/x-youtubeapi/"> <a href="http://www.ibm.com/developerworks/xml/library/x-youtubeapi/" rel="nofollow">http://www.ibm.com/developerworks/xml/library/x-youtubeapi/</a></a> . It basically returns the few entries from the feed it received.</p>
<p style="text-align:center;"><img class="size-full wp-image-19 aligncenter" title="Picture 6" src="http://radhakrishnabhat.files.wordpress.com/2009/06/picture-6.png?w=306&#038;h=338" alt="Picture 6" width="306" height="338" /></p>
<p>Click on Finish. Now you can see a Service has been created in DataServices view. Context Click on getMostViewed() function and click on &#8216;Configure return type&#8217;. This step is required because in order to bind the returned data, we do need to know the type of the object it returns.</p>
<p>Enter &#8216;Videos&#8217; as the name of the newly created data type and click next. Change the type of the argument &#8216;you_url&#8217; to String and enter its value as &#8216;<a href="http://gdata.youtube.com/feeds/api/standardfeeds/top_rated&#8217;" rel="nofollow">http://gdata.youtube.com/feeds/api/standardfeeds/top_rated&#8217;</a>. You can give any youtube feed as argument to this. This is just to configure our return type. Click Next and finish. The returned Object is analysed now.</p>
<ul>
<li>
<h3>Binding data to the components</h3>
</li>
</ul>
<p><img class="alignnone size-full wp-image-20" title="Picture 7" src="http://radhakrishnabhat.files.wordpress.com/2009/06/picture-7.png?w=510&#038;h=174" alt="Picture 7" width="510" height="174" /></p>
<p>Now we want to Bind this data to a DataGrid component in Flex. Open MXML file, switch to design view. Drag and drop a DataGrid from the components view. And now for the best part. Drag and drop getMostViewed() function from Data/Services view onto the DataGrid. The DataGrid gets bound to the data with appropriate column names. After it switches to source view for you to enter argument, enter any feed you want. Say, &#8216;<a href="http://gdata.youtube.com/feeds/api/standardfeeds/top_rated&#8217;" rel="nofollow">http://gdata.youtube.com/feeds/api/standardfeeds/top_rated&#8217;</a>. Save the file and just run it.</p>
<p>CONGRATS. You have developed an amazing application within a few minutes. <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>If you want to make this application more beautiful, lets do some tiny configurations:)</p>
<ul>
<li>
<h3>Add a List with many feeds to make this application Dynamic.</h3>
</li>
</ul>
<p>Copy the following code and paste it in your MXML file.</p>
<pre>&lt;s:List labelField="value" x="44" y="85" id="iList" selectionChanged="dataGrid_creationCompleteHandler(event)" selectedIndex="0"&gt;
       &lt;s:dataProvider&gt;
           &lt;mx:ArrayCollection&gt;
              &lt;fx:Object value="Top Rated" url="http://gdata.youtube.com/feeds/api/standardfeeds/top_rated"/&gt;
              &lt;fx:Object value="Top Favourites" url="http://gdata.youtube.com/feeds/api/standardfeeds/top_favorites"/&gt;
              &lt;fx:Object value="Most Viewed" url="http://gdata.youtube.com/feeds/api/standardfeeds/most_viewed"/&gt;
              &lt;fx:Object value="Most Popular" url="http://gdata.youtube.com/feeds/api/standardfeeds/most_popular"/&gt;
              &lt;fx:Object value="Most Responded" url="http://gdata.youtube.com/feeds/api/standardfeeds/most_responded"/&gt;
              &lt;fx:Object value="Most Linked" url="http://gdata.youtube.com/feeds/api/standardfeeds/most_linked"/&gt;
              &lt;fx:Object value="Recently Featured" url="http://gdata.youtube.com/feeds/api/standardfeeds/recently_featured"/&gt;
              &lt;fx:Object value="Watch on Mobile" url="http://gdata.youtube.com/feeds/api/standardfeeds/watch_on_mobile"/&gt;

        &lt;/mx:ArrayCollection&gt;
     &lt;/s:dataProvider&gt;
&lt;/s:List&gt;</pre>
<p>Align List and DataGrid accordingly in Design view. Change FlexEvent to Event type in dataGrid_creationCompleteHandler() function. Now instead of hardcoding argument for youtube.getMostViewed() function we will pass List&#8217;s selected Item. Replace the argument with iList.selectedItem.url .</p>
<p>Hold on. Don&#8217;t run it now. Lets add more colors:). Now we want to show the thumbnail image of the video and add a link to view it in youtube finally.</p>
<ul>
<li>
<h3>Adding an ItemRenderer for thumbNail column of DataGrid.</h3>
</li>
</ul>
<p>Copy the following and edit your MXML file. I have added image as item renderer for thumbNail column and Linkbutton for playerURL.</p>
<pre>&lt;mx:DataGrid x="205" y="78" height="384" width="812" id="dataGrid" creationComplete="dataGrid_creationCompleteHandler(event)"
            dataProvider="{getMostViewedResult.lastResult}" editable="true"&gt;
       &lt;mx:columns&gt;
            &lt;mx:DataGridColumn headerText="thumbNail" dataField="thumbNail"&gt;
               &lt;mx:itemRenderer&gt;
                &lt;fx:Component&gt;
                 &lt;mx:Image source='{data.thumbNail.toString().split("\"")[1].toString()}'  height="100"/&gt;
                &lt;/fx:Component&gt;
              &lt;/mx:itemRenderer&gt;
            &lt;/mx:DataGridColumn&gt;
            &lt;mx:DataGridColumn headerText="length" dataField="length"/&gt;
            &lt;mx:DataGridColumn headerText="playerURL" dataField="playerURL"&gt;
             &lt;mx:itemRenderer&gt;
              &lt;fx:Component&gt;

               &lt;mx:LinkButton label="Watch!" click='navigateToURL(new URLRequest(data.playerURL.toString().split("\"")[1].toString()))'/&gt;
              &lt;/fx:Component&gt;
             &lt;/mx:itemRenderer&gt;
             &lt;/mx:DataGridColumn&gt;
             &lt;mx:DataGridColumn headerText="rating" dataField="rating"/&gt;
             &lt;mx:DataGridColumn headerText="viewCount" dataField="viewCount"/&gt;
       &lt;/mx:columns&gt;
&lt;/mx:DataGrid&gt;</pre>
<p>Now save it and run the application.</p>
<p>You should see something like this -</p>
<p><img class="alignnone size-full wp-image-23" title="Picture 10" src="http://radhakrishnabhat.files.wordpress.com/2009/06/picture-10.png?w=663&#038;h=320" alt="Picture 10" width="663" height="320" /></p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radhakrishnabhat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radhakrishnabhat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/radhakrishnabhat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/radhakrishnabhat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/radhakrishnabhat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/radhakrishnabhat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/radhakrishnabhat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/radhakrishnabhat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/radhakrishnabhat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/radhakrishnabhat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/radhakrishnabhat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/radhakrishnabhat.wordpress.com/13/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/radhakrishnabhat.wordpress.com/13/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/radhakrishnabhat.wordpress.com/13/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=radhakrishnabhat.wordpress.com&amp;blog=8116573&amp;post=13&amp;subd=radhakrishnabhat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://radhakrishnabhat.wordpress.com/2009/06/23/creating-youtube-app-in-flash-builder-4-using-php-service/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afe194e3f6ab51c305b3987dfd965103?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rakris</media:title>
		</media:content>

		<media:content url="http://radhakrishnabhat.files.wordpress.com/2009/06/picture-1.png" medium="image">
			<media:title type="html">Picture 1</media:title>
		</media:content>

		<media:content url="http://radhakrishnabhat.files.wordpress.com/2009/06/picture-2.png" medium="image">
			<media:title type="html">2nd Page</media:title>
		</media:content>

		<media:content url="http://radhakrishnabhat.files.wordpress.com/2009/06/picture-3.png" medium="image">
			<media:title type="html">Connect to Service</media:title>
		</media:content>

		<media:content url="http://radhakrishnabhat.files.wordpress.com/2009/06/picture-6.png" medium="image">
			<media:title type="html">Picture 6</media:title>
		</media:content>

		<media:content url="http://radhakrishnabhat.files.wordpress.com/2009/06/picture-7.png" medium="image">
			<media:title type="html">Picture 7</media:title>
		</media:content>

		<media:content url="http://radhakrishnabhat.files.wordpress.com/2009/06/picture-10.png" medium="image">
			<media:title type="html">Picture 10</media:title>
		</media:content>
	</item>
		<item>
		<title>Adobe Flash Builder 4 Beta is out!</title>
		<link>http://radhakrishnabhat.wordpress.com/2009/06/10/adobe-flash-builder-4-beta-is-out/</link>
		<comments>http://radhakrishnabhat.wordpress.com/2009/06/10/adobe-flash-builder-4-beta-is-out/#comments</comments>
		<pubDate>Wed, 10 Jun 2009 12:39:52 +0000</pubDate>
		<dc:creator>rakris</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[builder]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://radhakrishnabhat.wordpress.com/?p=5</guid>
		<description><![CDATA[Get it here. http://labs.adobe.com/technologies/flashbuilder4/ Some of the cool features in Flash Builder 4. Data Centric Development (DCD) &#8211; Build applications easily around your data without having to worry implementing binding data. Network Monitor &#8211; Record &#38; Monitor your network calls. FlexUnit integration Event handler generation    and many more. In the coming days I will be [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=radhakrishnabhat.wordpress.com&amp;blog=8116573&amp;post=5&amp;subd=radhakrishnabhat&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Get it here.</p>
<p><a class="aligncenter" title="Flash Builder 4 - Adobe Labs" href="http://labs.adobe.com/technologies/flashbuilder4/" target="_blank">http://labs.adobe.com/technologies/flashbuilder4/</a></p>
<p>Some of the cool features in Flash Builder 4.</p>
<ul>
<li>Data Centric Development (DCD) &#8211; Build applications easily around your data without having to worry implementing binding data.</li>
<li>Network Monitor &#8211; Record &amp; Monitor your network calls.</li>
<li>FlexUnit integration</li>
<li>Event handler generation    and many more.</li>
</ul>
<p>In the coming days I will be blogging about using Flash Builder to easily develop eye-catching applications. So visit this blog again after sometime <img src='http://s2.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p><br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/radhakrishnabhat.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/radhakrishnabhat.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/radhakrishnabhat.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/radhakrishnabhat.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/radhakrishnabhat.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/radhakrishnabhat.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/radhakrishnabhat.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/radhakrishnabhat.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/radhakrishnabhat.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/radhakrishnabhat.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/radhakrishnabhat.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/radhakrishnabhat.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/radhakrishnabhat.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/radhakrishnabhat.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=radhakrishnabhat.wordpress.com&amp;blog=8116573&amp;post=5&amp;subd=radhakrishnabhat&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://radhakrishnabhat.wordpress.com/2009/06/10/adobe-flash-builder-4-beta-is-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/afe194e3f6ab51c305b3987dfd965103?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rakris</media:title>
		</media:content>
	</item>
	</channel>
</rss>
