<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Digicorp &#187; Flex</title>
	<atom:link href="http://dev.digi-corp.com/category/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://dev.digi-corp.com</link>
	<description>&#62;&#62; Developer Blog</description>
	<lastBuildDate>Wed, 22 Jun 2011 14:13:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Run SWF file in Salesforce Environment</title>
		<link>http://dev.digi-corp.com/2009/08/run-swf-file-in-salesforce-environment/</link>
		<comments>http://dev.digi-corp.com/2009/08/run-swf-file-in-salesforce-environment/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 09:50:24 +0000</pubDate>
		<dc:creator>nishant.shah</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[salesforce]]></category>
		<category><![CDATA[scontrol]]></category>
		<category><![CDATA[swf]]></category>

		<guid isPermaLink="false">http://dev.digi-corp.com/?p=1210</guid>
		<description><![CDATA[For all the developers who are just starting development in Salesforce may find this article useful. I am going to tell you how you can run an SWF file in Salesforce. First of all add a reference to the Salesforce namespace to  mx:Application tag and create a connection to the Salesforce.com server. Eg. &#60;mx:Application xmls:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;    [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 		@page { margin: 0.79in } 		P { margin-bottom: 0.08in } --></p>
<p style="margin-bottom: 0in">For all the developers who are just starting development in Salesforce may find this article useful. I am going to tell you how you can run an SWF file in Salesforce.</p>
<p style="margin-bottom: 0in">First of all add a reference to the Salesforce namespace to  mx:Application tag and create a connection to the Salesforce.com server.</p>
<p style="margin-bottom: 0in"><span style="color: #800000">Eg.</span></p>
<p style="margin-bottom: 0in; padding-left: 30px;"><span style="color: #800000"> &lt;mx:Application xmls:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;                      		                                          	         xmls:salesforce=&#8221;com.salesforce.*&#8221; layout = &#8220;absolute&#8221;/&gt;</span></p>
<p style="margin-bottom: 0in; padding-left: 30px;"><span style="color: #800000"> &lt;salesforce:Connection id=&#8221;apex&#8221;/&gt;</span></p>
<p style="margin-bottom: 0in"><span style="color: #000000"> The Connection object is already created, so to activate it,Prepare a LoginRequest object by populating the username and password fields. We have to define Callback function(loginResult)</span> <span style="color: #000000">that will be fired off when the login response from the Salesforce.com server is received.</span></p>
<p style="margin-bottom: 0in"><span style="color: #800000">Eg.</span></p>
<p style="margin-bottom: 0in; padding-left: 30px;"><span style="color: #800000"> private function login():void</span></p>
<p style="margin-bottom: 0in; padding-left: 30px;"><span style="color: #800000"> {</span></p>
<p style="margin-bottom: 0in; padding-left: 60px;"><span style="color: #800000"> var lr:LoginRequest = new LoginRequest;</span></p>
<p style="margin-bottom: 0in; padding-left: 60px;"><span style="color: #800000"> lr.username = username.txt;</span></p>
<p style="margin-bottom: 0in; padding-left: 60px;"><span style="color: #800000"> lr.password = password.txt;</span></p>
<p style="margin-bottom: 0in; padding-left: 60px;"><span style="color: #800000"> //  lr.server_url = Application.application.parameters.server_url;</span></p>
<p style="margin-bottom: 0in; padding-left: 60px;"><span style="color: #800000"> // lr.session_id = Application.application.parameters.session_id;</span></p>
<p style="margin-bottom: 0in; padding-left: 60px;"><span style="color: #800000"> lr.callback = new AsyncResponder(loginResult);</span></p>
<p style="margin-bottom: 0in; padding-left: 60px;"><span style="color: #800000"> apex.login(lr);</span></p>
<p style="margin-bottom: 0in; padding-left: 30px;"><span style="color: #800000"> }</span></p>
<p style="margin-bottom: 0in">No need to give lr.session_id and lr.server_url when running application on local machine.</p>
<p style="margin-bottom: 0in"><strong>Deployment</strong></p>
<p style="margin-bottom: 0in">We have three choices to deploy our application.</p>
<ol>
<li>
<p style="margin-bottom: 0in">Deploy it to own server.</p>
</li>
<li>
<p style="margin-bottom: 0in">Deploy it on Salesforce 	Environment as an S-Control.</p>
</li>
<li>
<p style="margin-bottom: 0in">Compile application as an Adobe 	AIR application and use the new runtime to use the application on 	the desktop without an application or Web-Server.</p>
</li>
</ol>
<p style="margin-bottom: 0in"><strong>Deploy application on Salesforce Environment as an S-Control</strong></p>
<p style="margin-bottom: 0in">To embed the Flex application as an S-Control , compile application for use in Salesforce by modifying the LoginRequest object in code to use the lr.server_url and lr.session_id arguments instead of lr.username and lr.password.</p>
<p style="margin-bottom: 0in">Now log in to Developer account of Salesforce.com and perform following steps.</p>
<ol>
<li>
<p style="margin-bottom: 0in">Click on Setup.</p>
</li>
<li>
<p style="margin-bottom: 0in">Expand the Develop menu and create 	S-Control.</p>
</li>
<li>
<p style="margin-bottom: 0in">Create a new one and give it 	memorable label and name.</p>
</li>
<li>
<p style="margin-bottom: 0in">The type will be HTML</p>
</li>
<li>
<p style="margin-bottom: 0in">In the filename field, browse and 	select the swf file.</p>
</li>
<li>
<p style="margin-bottom: 0in">In the content area wirte the 	following code.</p>
</li>
</ol>
<p style="margin-bottom: 0in"><span style="color: #800000">&lt;embed src=&#8221;{!Scontrol.JavaArchive}&#8221; play=&#8221;true&#8221;   bgcolor=&#8221;#f3f3ec&#8221;  width=&#8221;100%&#8221; height=&#8221;100%&#8221; name=&#8221;FlexSalesforce&#8221;  Align=&#8221;middle&#8221; 		flashvars=&#8221;session_id={!API.Session_ID}&amp; server_url=    {!API.Partner_Server_URL_90}&#8221; loop=&#8221;false&#8221;allowScriptAccess=&#8221;always&#8221; type=&#8221;application/x-shockwave-flash&#8221;  pluginspage=&#8221;http://www.adobe.com/go/getflashplayer&#8221;&lt;/embed&gt;</span></p>
<p style="margin-bottom: 0in">Here there are three Salesforce.com variables.</p>
<ol>
<li>
<p style="margin-bottom: 0in"><span style="color: #000000">Scontrol 	JavaArchive.</span></p>
</li>
<li>
<p style="margin-bottom: 0in"><span style="color: #000000">API.Session_ID.</span></p>
</li>
<li>
<p style="margin-bottom: 0in"><span style="color: #000000">API.Partner_Server_URL_90.</span></p>
</li>
</ol>
<p style="margin-bottom: 0in">The last two are passed into the SWF when it loads in the browser. These maintain session state. So no need to login while running SWF file.</p>
<p style="margin-bottom: 0in">Now create Tab to house S-Control just created. Create a New Web-Tab with type of Custom S-Control. In step three , Select the S-Control just created to be the content on that tab. Click next through steps four and five. A new tab appear on the top of the screen.</p>
<p>Click on the tab. SWF file will run without required login details.</p>
<p>I hope you found this article useful. Let me know if there are any better ways to do the same thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://dev.digi-corp.com/2009/08/run-swf-file-in-salesforce-environment/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Implementing Salesforce Login Solutuion With Flex 3</title>
		<link>http://dev.digi-corp.com/2009/07/implementing-salesforce-login-solutuion-with-flex-3/</link>
		<comments>http://dev.digi-corp.com/2009/07/implementing-salesforce-login-solutuion-with-flex-3/#comments</comments>
		<pubDate>Sat, 04 Jul 2009 06:12:14 +0000</pubDate>
		<dc:creator>chirag.babaria</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[flex builder]]></category>
		<category><![CDATA[Http protocol error]]></category>
		<category><![CDATA[HTTP request error]]></category>
		<category><![CDATA[Login Error]]></category>
		<category><![CDATA[salesforce]]></category>

		<guid isPermaLink="false">http://dev.digi-corp.com/?p=759</guid>
		<description><![CDATA[In this post, we will see how we can implement salesforce login with flex. All you need is: The Adobe Flex Builder or Flex SDK The Flex Toolkit for Force.com (beta) Salesforce login credentials For the beginner steps for integration of flex toolkit for salesforce you can follow the steps given in below site http://wiki.developerforce.com/index.php/Tutorial:_Creating_Flex_Salesforce_Mashups [...]]]></description>
			<content:encoded><![CDATA[<p style="MARGIN-BOTTOM: 0in">In this post, we will see how we can implement salesforce login with flex.</p>
<p>All you need is:</p>
<ul>
<li>
<p style="MARGIN-BOTTOM: 0in">The <a href="http://www.adobe.com/products/flex/">Adobe Flex Builder</a> or Flex SDK</p>
</li>
<li><a href="http://wiki.developerforce.com/index.php/Members:Flex_Toolkit_download">The Flex Toolkit for Force.com (beta)</a></li>
<li>Salesforce login credentials</li>
</ul>
<p>For the beginner steps for integration of flex toolkit for salesforce you can follow the steps given in below site</p>
<p><a href="http://wiki.developerforce.com/index.php/Tutorial:_Creating_Flex_Salesforce_Mashups">http://wiki.developerforce.com/index.php/Tutorial:_Creating_Flex_Salesforce_Mashups</a></p>
<p>While regarding the login method I will be describing as follows:</p>
<h2>The namespaces to be included in flex builder for login are as follows:</h2>
<div class="wp-caption alignnone" style="width: 660px"><a href="http://dev.digi-corp.com/wp-content/uploads/2009/06/connectivity.jpg" target="_blank"><img src="http://dev.digi-corp.com/wp-content/uploads/2009/06/connectivity.jpg" alt="connectivity" width="650" height="517" /></a><p class="wp-caption-text">namespace for flex to salesforce</p></div>
<p><span style="font-size: medium;"><strong> </strong></span></p>
<h2>The Login function will be as follows:</h2>
<div class="wp-caption alignnone" style="width: 660px"><a href="http://dev.digi-corp.com/wp-content/uploads/2009/06/Login.jpg" target="_blank"><img src="http://dev.digi-corp.com/wp-content/uploads/2009/06/Login.jpg" alt="Login" width="650" height="517" /></a><p class="wp-caption-text">Login method for flex to salesforce</p></div>
<h2>There is a common error while implementing login with salesforce, it will generate following error:</h2>
<p style="MARGIN-BOTTOM: 0in">(com.salesforce.events::ApexFaultEvent)#0</p>
<p>bubbles = false</p>
<p>cancelable = true</p>
<p>context = (null)</p>
<p>currentTarget = (null)</p>
<p>eventPhase = 2</p>
<p>fault = (mx.rpc::Fault)#1</p>
<p>errorID = 0</p>
<p>faultCode = &#8220;Server.Error.Request&#8221;</p>
<p>faultDetail = &#8220;Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"]. URL: http://www.salesforce.com/services/Soap/u/11.0&#8243;</p>
<p>faultString = &#8220;HTTP request error&#8221;</p>
<p>message = &#8220;faultCode:Server.Error.Request faultString:&#8217;HTTP request error&#8217; faultDetail:&#8217;Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"]. URL: http://www.salesforce.com/services/Soap/u/11.0&#8242;&#8221;</p>
<p>name = &#8220;Error&#8221;</p>
<p>rootCause = (flash.events::IOErrorEvent)#2</p>
<p>bubbles = false</p>
<p>cancelable = false</p>
<p>currentTarget = (flash.net::URLLoader)#3</p>
<p>bytesLoaded = 0</p>
<p>bytesTotal = 0</p>
<p>data = (null)</p>
<p>dataFormat = &#8220;text&#8221;</p>
<p>eventPhase = 2</p>
<p>target = (flash.net::URLLoader)#3</p>
<p>text = &#8220;Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0&#8243;</p>
<p>type = &#8220;ioError&#8221;</p>
<p>message = (mx.messaging.messages::ErrorMessage)#4</p>
<p>body = (Object)#5</p>
<p>clientId = &#8220;DirectHTTPChannel0&#8243;</p>
<p>correlationId = &#8220;026E48D3-1BFD-8AA6-A5D6-CDE8A1C8B7D8&#8243;</p>
<p>destination = &#8220;&#8221;</p>
<p>extendedData = (null)</p>
<p>faultCode = &#8220;Server.Error.Request&#8221;</p>
<p>faultDetail = &#8220;Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: http://www.salesforce.com/services/Soap/u/11.0"]. URL: http://www.salesforce.com/services/Soap/u/11.0&#8243;</p>
<p>faultString = &#8220;HTTP request error&#8221;</p>
<p>headers = (Object)#6</p>
<p>messageId = &#8220;154CD995-435D-2011-47FB-CDE8A2A25895&#8243;</p>
<p>rootCause = (flash.events::IOErrorEvent)#2</p>
<p>timestamp = 0</p>
<p>timeToLive = 0</p>
<p>messageId = &#8220;154CD995-435D-2011-47FB-CDE8A2A25895&#8243;</p>
<p>target = (null)</p>
<p>token = (mx.rpc::AsyncToken)#7</p>
<p>message = (mx.messaging.messages::HTTPRequestMessage)#8</p>
<p><a name="smileytongue1"></a><a name="smileytongue"></a>body = &#8220;&lt;se:Envelope xmlns:se=&#8221;http://schemas.xmlsoap.org/soap/envelope/&#8221;&gt;&lt;se:Header xmlns:sfns=&#8221;urnartner.soap.sforce.com&#8221;/&gt;&lt;se:Body&gt;&lt;login xmlns=&#8221;urnartner.soap.sforce.com&#8221; xmlns:ns1=&#8221;sobject.partner.soap.sforce.com&#8221;&gt;&lt;username&gt;xxxxxxxx@xxxxxx.com&lt;/username&gt;</p>
<p>&lt;password&gt;xxxxxxxxxxxxx9KYz1Hmt965XXXXQcNVpjaq61&lt;/password&gt;&lt;/login&gt;&lt;/se:Body&gt;&lt;/se:Envelope&gt;&#8221;</p>
<p>clientId = (null)</p>
<p>contentType = &#8220;text/xml; charset=UTF-8&#8243;</p>
<p>destination = &#8220;DefaultHTTP&#8221;</p>
<p>headers = (Object)#9</p>
<p>DSEndpoint = &#8220;direct_http_channel&#8221;</p>
<p>httpHeaders = (Object)#10</p>
<p>Accept = &#8220;text/xml&#8221;</p>
<p>SOAPAction = &#8220;&#8221;"&#8221;</p>
<p>X-Salesforce-No-500-SC = &#8220;true&#8221;</p>
<p>messageId = &#8220;026E48D3-1BFD-8AA6-A5D6-CDE8A1C8B7D8&#8243;</p>
<p>method = &#8220;POST&#8221;</p>
<p>recordHeaders = false</p>
<p>timestamp = 0</p>
<p>timeToLive = 0</p>
<p>url = &#8220;http://www.salesforce.com/services/Soap/u/11.0&#8243;</p>
<p>responders = (Array)#11</p>
<p>[0] (::SalesForceResponder)#12</p>
<p>result = (null)</p>
<p>type = &#8220;fault&#8221;</p>
<h2>Solution</h2>
<p><span style="TEXT-DECORATION: none"><span style="FONT-WEIGHT: normal">The Flex security model will require that you are running this on https server, unless you specify &#8220;http&#8221; using connection.protocol();</span></span><span style="text-decoration: underline;"><strong><br />
</strong></span><span style="TEXT-DECORATION: none"><span style="FONT-WEIGHT: normal">If your server is not HTTPS, but is HTTP, you can set that on the connection.</span></span></p>
<p>In addition, you will need to pass a security token appended to your password unless you have enabled the IP range in your network configuration.</p>
<p>Both will generate the io error you see.</p>
<p style="MARGIN-BOTTOM: 0in">
<p style="MARGIN-BOTTOM: 0in">If you are using “HTTPS” then you have to specify</p>
<p style="MARGIN-BOTTOM: 0in">connectionprotocol = “https”</p>
<p style="MARGIN-BOTTOM: 0in">
<p style="MARGIN-BOTTOM: 0in">And make sure that in salesforce.com by default <strong>“Require secure connections (https)” is checked</strong></p>
<div class="wp-caption alignnone" style="width: 660px"><a href="http://dev.digi-corp.com/wp-content/uploads/2009/06/HTTPS.jpg" target="_blank"><img src="http://dev.digi-corp.com/wp-content/uploads/2009/06/HTTPS.jpg" alt="HTTPS" width="650" height="517" /></a><p class="wp-caption-text">Sales force security setting</p></div>
<p style="MARGIN-BOTTOM: 0in">But if you are using “http”, then you have to specify</p>
<p style="FONT-WEIGHT: normal; MARGIN-BOTTOM: 0in">connectionprotocol = “http”;</p>
<p style="FONT-WEIGHT: normal; MARGIN-BOTTOM: 0in">And make sure that in salesforce.com by default <strong>“Require secure connections (https)” is checked to false.</strong></p>
<div class="wp-caption alignnone" style="width: 660px"><a href="http://dev.digi-corp.com/wp-content/uploads/2009/06/HTTP.jpg" target="_blank"><img src="http://dev.digi-corp.com/wp-content/uploads/2009/06/HTTP.jpg" alt="HTTP" width="650" height="517" /></a><p class="wp-caption-text">salesforce https setting</p></div>
<p style="MARGIN-BOTTOM: 0in">
]]></content:encoded>
			<wfw:commentRss>http://dev.digi-corp.com/2009/07/implementing-salesforce-login-solutuion-with-flex-3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Overview of Flex</title>
		<link>http://dev.digi-corp.com/2009/05/overview-of-flex/</link>
		<comments>http://dev.digi-corp.com/2009/05/overview-of-flex/#comments</comments>
		<pubDate>Sat, 30 May 2009 05:49:26 +0000</pubDate>
		<dc:creator>nishant.shah</dc:creator>
				<category><![CDATA[asp.net]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[Add new tag]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[flex builder]]></category>
		<category><![CDATA[macromedia]]></category>

		<guid isPermaLink="false">http://dev.digi-corp.com/?p=444</guid>
		<description><![CDATA[What is Adobe Flex ? Adobe Flex is a software development kit released by Adobe Systems for the development and deployment of cross-platform rich Internet applications based on the Adobe Flash platform. Flex applications can be written using Adobe Flash Builder or by using the freely available Flex compiler from Adobe. Adobe Flex takes you [...]]]></description>
			<content:encoded><![CDATA[<p><!-- 	 	 --></p>
<p><span style="text-decoration: underline;"><strong>What is Adobe Flex ?</strong></span></p>
<p><strong> </strong></p>
<p><strong> </strong>Adobe Flex is a software development kit released by <strong>Adobe Systems </strong>for the development and deployment of cross-platform rich Internet applications based on the Adobe Flash platform. Flex applications can be written using Adobe Flash Builder or by using the freely available Flex compiler from Adobe.</p>
<p><strong>Adobe Flex</strong> takes you to the next level of web application development with the concept of <strong>Rich Internet Application</strong>(RIAs).You may have seen applications developed natively in Flash itself and realized that it offers a much more robust experience for the user where productivity is bolstered by ease of use,streamlined workflow,and real time interactivity that is impossible to accomplish in HTML itself. However developing rich applications in Flash for those who are core developers is daunting and unintuitive. The Flash development tool is geard for designers, and developing on a timeline is a strange concept. Flex removes that barrier entry by providing a programmatic way for developing these RIAs.</p>
<p>Flex is very prominent and familiar with professional developers. Flex is a set of products designed in an effective way based on efficient delivery of high performance.</p>
<p>Flex is a standard-based programming model for high performance rich internet applications. Flex application will take advantage of adobe flash player 9 and this will enable developer to extend the capabilities enables the client with richer applications in real time.</p>
<p>Flex is a cross-platform development framework for creating Rich Internet Applications(RIAs). A component based tool that you can use to develop apps that run using Flash player or Adobe Air. Adobe Flex Builder software is an Eclipse based IDE for developing RIAs.</p>
<p><span style="text-decoration: underline;"><strong>Basics of Flex :</strong></span></p>
<ul>
<li>Runs in the Flash 	Player or AIR.</li>
<li>Tag based markup MXML 	serves as the basis for Flex Projects.</li>
<li>MXML is a custom XML 	namespace,looks like &lt;mx:MyTag&gt;&lt;/mx:MyTag&gt;.</li>
<li>Component based 	development : Containers / Layouts Components , UI Elements , Data 	Connectors.</li>
<li>ActionScript 3 can be 	used to add behaviors or other interactivity not covered by MXML.</li>
<li>Supports common OOP 	practices like MVC patterns,code behind,etc.</li>
<li>MXML components can be 	brought onto the canvas via the GUI similar to Dreamweaver or 	VisualStudio.</li>
<li>Markup can be written 	by hand with code assist, too. Again, similar to Dreamweaver or 	VisualStudio.</li>
<li>MXML components have 	attributes that allow for modification of appearance or behavior.</li>
<li>Components can be 	extended for additional capabilities or reuse via MXML or AS or a 	combo of both.</li>
<li>Containers control 	layout (Canvas, Vertical Box, Horizontal Box)</li>
<li>UI components display 	data, control interactivity or display states or other visual 	feedback (Datagrids, lists, buttons, selects menus,radio buttons, etc.).</li>
<li>Data components load 	or send data (Services, XML, Remoting, etc).</li>
<li>Other tags include: 	Script, Style, etc.</li>
<li>Tags can be nested 	similar to HTML/XML.</li>
</ul>
<p><span style="text-decoration: underline;"><strong>Release history :</strong></span></p>
<ul>
<li>Flex 1.0 &#8211; March 	2004</li>
<li>Flex 1.5 &#8211; October 	2004</li>
<li>Flex 2.0(Alpha) &#8211; 	October 2005</li>
<li>Flex 2.0 Beta 1 &#8211; 	February 2006</li>
<li>Flex 2.0 Beta 2 &#8211; 	March 2006</li>
<li>Flex 2.0 Beta 3 &#8211; 	May 2006</li>
<li>Flex 2.0 Final &#8211; 	June 28,2006</li>
<li>Flex 2.0.1 &#8211; January 	5,2007</li>
<li>Flex 3.0 Beta 1 &#8211; 	June 11,2007</li>
<li>Flex 3.0 Beta 2 &#8211; 	October 1,2007</li>
<li>Flex 3.0 Beta 3 &#8211; 	December 12,2007</li>
<li>Flex 3.0 &#8211; February 	25,2008</li>
<li>Flex 3.1 &#8211; August 	15,2008</li>
<li>Flex 	3.2 &#8211; November 17,2008</li>
<li>Flex 3.3 &#8211; March 	4,2009</li>
</ul>
<p align="left"><span style="text-decoration: underline;"><strong>What is Flex Builder ?</strong></span></p>
<p>Macromedia recently released Flex Builder (formerly known as &#8220;Brady&#8221;), an IDE based on Macromedia Dreamweaver MX 2004. Bundled with the Flex application server, Flex Builder provides a WYSIWYG environment for creating Flex applications, an integrated debugger, and code hinting for ActionScript and MXML (plus all of the features supported by Dreamweaver).</p>
<p>The IDE still shows some rough edges. For example, clicking &#8220;Help&#8221; in the &#8220;Manage Sites&#8221; dialog launches &#8220;Using Dreamweaver,&#8221; not &#8220;Using Flex Builder.&#8221; So, if you get stuck in the middle of defining a new Flex site, you won&#8217;t have access to Flex Builder&#8217;s excellent support documents. In test instances, opening any &#8220;On Demand&#8221; video tutorials launched Mozilla-even though it wasn&#8217;t set as the default browser.</p>
<p>Perhaps the best way to get a sense of the productivity benefits of Flex Builder is to compare it to Macromedia&#8217;s other Flash IDE, Macromedia Flash MX 2004 Professional. Both IDEs support a component called &#8220;Accordion&#8221; that provides a compact interface widget for showing and hiding information. A Flash developer can drag the Accordion component to the stage, but to populate it with data must use the ActionScript <code>Accordion.createChild()</code> method to instantiate a <code>UIObject</code> or link an existing symbol. It&#8217;s not rocket science, but it <em>is</em> time consuming. A developer working with Flex Builder, on the other hand, can simply drag an Accordion container to the stage and populate it with drag-and-drop controls such as form widgets or images. The difference in productivity is an order of magnitude. Think of Flex Builder as Visual Studio.NET Light for Flash.</p>
<p align="left"><span style="text-decoration: underline;"><strong>Advantages of Flex :</strong></span></p>
<ul>
<li>
<p align="left">Flex applications can 	be intuitive, easy to use, and almost have the feel of the desktop.</p>
</li>
<li>
<p align="left">Easy to program and 	deploy.</p>
</li>
<li>
<p align="left">Can be deployed right 	now on 50% or more of the world&#8217;s browsers, with ubiquity 	increasing daily.</p>
</li>
<li>
<p align="left">Dedicated IDE based on 	Dreamweaver available now.</p>
</li>
<li>
<p align="left">Doesn&#8217;t require a 	large client installation like the .NET runtime.</p>
</li>
<li>
<p align="left">Extensive Visual 	component library.</p>
</li>
<li>
<p align="left">Powerful coding tools.</p>
</li>
<li>
<p align="left">Scalable and reliable 	solution.</p>
</li>
<li>
<p align="left">Superb Flex 	programming model.</p>
</li>
<li>
<p align="left">Easy Integration into 	a server application.</p>
</li>
<li>
<p align="left">High performance data 	synchronization engine.</p>
</li>
<li>
<p align="left">Interactivity due to 	video, audio, streaming and messaging components.</p>
</li>
</ul>
<p align="left"><span style="text-decoration: underline;"><strong>Disadvantages of Flex :</strong></span></p>
<ul>
<li>
<p align="left">Macromedia has poor 	track record with servers and server tools.</p>
</li>
<li>
<p align="left">Expensive.</p>
</li>
<li>
<p align="left">No free developer 	download.</p>
</li>
</ul>
<p align="left"><span style="text-decoration: underline;"><strong>Examples :</strong></span></p>
<ul>
<li>
<p align="left">To 	get record from DataGrid from particular row and column :</p>
<ul>
<li>var 			SelectedData:String = 			DataGrid.dataProvider[event.rowIndex][DataGrid.columns[event.columnIndex].dataField];</li>
</ul>
</li>
<li>
<p align="left">To 	create Custome Menu on right click :</p>
<ul>
<li>private 			var cm:ContextMenu = new ContextMenu();
<p align="left">cm.hideBuiltInItems();</p>
<p align="left">var 			newMenu:ContextMenuItem =</p>
<ul>
<p align="left">new 				ContextMenuItem(&#8220;View Item&#8221;,true);</p>
</ul>
<p align="left">newMenu.addEventListener(ContextMenuEvent.Menu_ITEM_SELECT,</p>
<p align="left">doMenuFunction);</p>
<p align="left">cm.customItems.push(newMenu);</p>
</li>
<li>private 			function doMenuFunction():void
<p align="left">{</p>
<ul>
<p align="left">Alert.show(event.currentTarget.caption.toString());</p>
</ul>
<p align="left">}</p>
<p align="left">It 			Shows Selected Menu Item.</p>
</li>
</ul>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dev.digi-corp.com/2009/05/overview-of-flex/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

