<?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>Mjcprasad's Blog</title>
	<atom:link href="http://flexnflex.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://flexnflex.wordpress.com</link>
	<description>Want to become a Flex Expert</description>
	<lastBuildDate>Wed, 29 Jul 2009 13:04:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='flexnflex.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Mjcprasad's Blog</title>
		<link>http://flexnflex.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://flexnflex.wordpress.com/osd.xml" title="Mjcprasad&#039;s Blog" />
	<atom:link rel='hub' href='http://flexnflex.wordpress.com/?pushpress=hub'/>
		<item>
		<title>IFrame Demo</title>
		<link>http://flexnflex.wordpress.com/2009/07/29/iframe-demo/</link>
		<comments>http://flexnflex.wordpress.com/2009/07/29/iframe-demo/#comments</comments>
		<pubDate>Wed, 29 Jul 2009 13:04:18 +0000</pubDate>
		<dc:creator>mjcprasad2000</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexnflex.wordpress.com/2009/07/29/iframe-demo/</guid>
		<description><![CDATA[http://rrao.host.adobe.com/kannan/FlexiFrame/IFrameDemo.html http://rrao.host.adobe.com/kannan/FlexiFrame/srcview/index.html<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=921&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a class="alignleft" title="Demo" href="http://rrao.host.adobe.com/kannan/FlexiFrame/IFrameDemo.html">http://rrao.host.adobe.com/kannan/FlexiFrame/IFrameDemo.html</a></p>
<p><a class="alignleft" title="Source" href="http://rrao.host.adobe.com/kannan/FlexiFrame/srcview/index.html">http://rrao.host.adobe.com/kannan/FlexiFrame/srcview/index.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexnflex.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexnflex.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexnflex.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexnflex.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexnflex.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexnflex.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexnflex.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexnflex.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexnflex.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexnflex.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexnflex.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexnflex.wordpress.com/921/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexnflex.wordpress.com/921/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexnflex.wordpress.com/921/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=921&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexnflex.wordpress.com/2009/07/29/iframe-demo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9d56bf91cb5c254cda2c9842d09e16aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mjcprasad2000</media:title>
		</media:content>
	</item>
		<item>
		<title>RollOver Image</title>
		<link>http://flexnflex.wordpress.com/2009/07/24/rollover-image/</link>
		<comments>http://flexnflex.wordpress.com/2009/07/24/rollover-image/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 04:21:12 +0000</pubDate>
		<dc:creator>mjcprasad2000</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexnflex.wordpress.com/?p=919</guid>
		<description><![CDATA[Main.MXML &#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62; &#60;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221; xmlns:com=&#8221;com.*&#8221;&#62; &#60;com:RollOverComp UpImage=&#8221;@Embed(source=&#8217;assets/UpImage.png&#8217;)&#8221; OverImage=&#8221;@Embed(source=&#8217;assets/OverImage.png&#8217;)&#8221; ImageLink=&#8221;http://www.google.com&#8221;/&#62; &#60;/mx:Application&#62; RollOverComp.MXML &#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62; &#60;mx:Canvas xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; creationComplete=&#8221;init()&#8221; creationPolicy=&#8221;all&#8221; &#62; &#60;mx:Script&#62; &#60;![CDATA[ public var UpImage:Class; public var OverImage:Class; public var ImageLink:String; private function init():void{ up.source = UpImage; addEventListener(MouseEvent.ROLL_OVER, mouseOver); addEventListener(MouseEvent.ROLL_OUT, mouseOut); addEventListener(MouseEvent.CLICK, mouseClick); } private function mouseOver(e:MouseEvent):void{ currentState = 'overState'; } private function [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=919&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Main.MXML</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221; xmlns:com=&#8221;com.*&#8221;&gt;<br />
&lt;com:RollOverComp UpImage=&#8221;@Embed(source=&#8217;assets/UpImage.png&#8217;)&#8221; OverImage=&#8221;@Embed(source=&#8217;assets/OverImage.png&#8217;)&#8221;<br />
ImageLink=&#8221;http://www.google.com&#8221;/&gt;<br />
&lt;/mx:Application&gt;</p>
<p><strong>RollOverComp.MXML</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Canvas xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221;<br />
creationComplete=&#8221;init()&#8221; creationPolicy=&#8221;all&#8221; &gt;<br />
&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
public var UpImage:Class;<br />
public var OverImage:Class;<br />
public var ImageLink:String;<br />
private function init():void{<br />
up.source = UpImage;<br />
addEventListener(MouseEvent.ROLL_OVER, mouseOver);<br />
addEventListener(MouseEvent.ROLL_OUT, mouseOut);<br />
addEventListener(MouseEvent.CLICK, mouseClick);<br />
}<br />
private function mouseOver(e:MouseEvent):void{<br />
currentState = 'overState';<br />
}<br />
private function mouseOut(e:MouseEvent):void{<br />
currentState = '';<br />
}<br />
private function mouseClick(e:MouseEvent):void{<br />
navigateToURL(new URLRequest(ImageLink),"_blank");<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;<br />
&lt;mx:states&gt;<br />
&lt;mx:State name=&#8221;overState&#8221;&gt;<br />
&lt;mx:RemoveChild target=&#8221;{up}&#8221;/&gt;<br />
&lt;mx:AddChild relativeTo=&#8221;{this}&#8221;&gt;<br />
&lt;mx:Image source=&#8221;{OverImage}&#8221; id=&#8221;over&#8221;/&gt;<br />
&lt;/mx:AddChild&gt;<br />
&lt;/mx:State&gt;<br />
&lt;/mx:states&gt;<br />
&lt;mx:transitions&gt;<br />
&lt;mx:Transition fromState=&#8221;*&#8221; toState=&#8221;overState&#8221;&gt;<br />
&lt;mx:Fade duration=&#8221;800&#8243; alphaFrom=&#8221;0&#8243; alphaTo=&#8221;1&#8243; target=&#8221;{over}&#8221;/&gt;<br />
&lt;/mx:Transition&gt;<br />
&lt;mx:Transition fromState=&#8221;overState&#8221; toState=&#8221;*&#8221;&gt;<br />
&lt;mx:Fade duration=&#8221;500&#8243; alphaFrom=&#8221;0&#8243; alphaTo=&#8221;1&#8243; target=&#8221;{up}&#8221;/&gt;<br />
&lt;/mx:Transition&gt;<br />
&lt;/mx:transitions&gt;<br />
&lt;mx:Image id=&#8221;up&#8221;/&gt;<br />
&lt;/mx:Canvas&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexnflex.wordpress.com/919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexnflex.wordpress.com/919/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexnflex.wordpress.com/919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexnflex.wordpress.com/919/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexnflex.wordpress.com/919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexnflex.wordpress.com/919/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexnflex.wordpress.com/919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexnflex.wordpress.com/919/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexnflex.wordpress.com/919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexnflex.wordpress.com/919/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexnflex.wordpress.com/919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexnflex.wordpress.com/919/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexnflex.wordpress.com/919/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexnflex.wordpress.com/919/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=919&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexnflex.wordpress.com/2009/07/24/rollover-image/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9d56bf91cb5c254cda2c9842d09e16aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mjcprasad2000</media:title>
		</media:content>
	</item>
		<item>
		<title>Steps using SWC files in your Flex projects</title>
		<link>http://flexnflex.wordpress.com/2009/07/22/steps-using-swc-files-in-your-flex-projects/</link>
		<comments>http://flexnflex.wordpress.com/2009/07/22/steps-using-swc-files-in-your-flex-projects/#comments</comments>
		<pubDate>Wed, 22 Jul 2009 05:18:47 +0000</pubDate>
		<dc:creator>mjcprasad2000</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexnflex.wordpress.com/?p=917</guid>
		<description><![CDATA[To use SWC files in your Flex projects, you add them to the project&#8217;s library path. The SWC files can be located in the project, in a Flex library project, in a shared folder within the workspace, or any other location that has been linked to the project (using a shared folder that was added [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=917&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>To use SWC files in your Flex projects, you add them to the project&#8217;s library path. The SWC files can be located in the project, in a Flex library project, in a shared folder within the workspace, or any other location that has been linked to the project (using a shared folder that was added to the project&#8217;s source path, for example).</p>
<p>When you use SWC files in applications, there are configuration options that determine whether they are statically or dynamically linked to the application, merged into the application SWF file, or external to it and accessed separately at run time.</p>
<p><strong>Add an SWC file to the library path</strong></p>
<ol>
<li>With a project selected in      the Flex Navigator view, select Project &gt; Properties &gt; Flex Build      Path.</li>
<li>Click on the Library Path      tab.</li>
<li>Select any of these options      to add SWC files:</li>
</ol>
<p>Add Project Adds a Flex library project.</p>
<p>Add SWC Folder Lets you add a folder that contain SWC files.</p>
<p>Add SWC Adds a compiled SWC file.</p>
<p>Add Flex SDK Lets you add other Flex SDKs. If your project already has a Flex SDK in its library path, this button is disabled. If you remove the existing Flex SDK from your library path, the button is enabled. When you click this button, a Flex SDK node is added, but you are not prompted which one is added. To control which Flex SDK to use, select Project &gt; Properties &gt; Flex Compiler.</p>
<ol>
<li>Enter or browse to and select      the location of the SWC file, project, or folder. Click OK.</li>
</ol>
<p>The SWC file, library project, or folder is added to the library path.</p>
<p><strong>Merge the SWC file into the application SWF file when compiled</strong></p>
<ol>
<li>With a project selected in      the Flex Navigator view, select Project &gt; Properties &gt; Flex Build      Path.</li>
<li>Click on the Library Path      tab, and then select and expand the SWC file entry to display the SWC      options.</li>
<li>Double-click the Link Type      option. The Library Path Items Options dialog box appears.</li>
<li>Select the Merged into Code      option, and click OK.</li>
</ol>
<p>This procedure is the equivalent of using the library-path compiler option.</p>
<p><strong>Set the SWC file as an external library file</strong></p>
<ol>
<li>With a project selected in      the Flex Navigator view, select Project &gt; Properties &gt; Flex Build      Path.</li>
<li>Select the Library Path tab,      and then select and expand the SWC file entry to display the SWC options.</li>
<li>Double-click the Link Type      option. The Library Path Items Options dialog box appears.</li>
<li>Select the External option,      and click OK.</li>
</ol>
<p>This procedure is the equivalent of using the external-library-path compiler option.</p>
<p><strong>Use the SWC file as an RSL</strong></p>
<ol>
<li>With a project selected in      the Flex Navigator view, select Project &gt; Properties &gt; Flex Build      Path.</li>
<li>Select the Library Path tab,      and then select and expand the SWC file entry to display the SWC options.</li>
<li>Double-click the Link Type      option. The Library Path Items Options dialog box appears.</li>
<li>Select the Run-time Shared      Library (RSL) option.</li>
<li>Enter the URL where the SWC      library will reside when the application is deployed.</li>
<li>(Optional) To extract the SWF      file in the SWC file when it is placed in the deploy location, select the      Automatically extract swf to deployment path option.</li>
<li>Click OK.</li>
</ol>
<p>Using the SWC files as an RSL simplifies the process for using RSLs manually. To do this, you extract the SWF file from the SWC file and set the values of the runtime-shared-library-path compiler option.</p>
<p>For more information about using SWC files as an RSL, see <a href="http://livedocs.adobe.com/flex/3/html/rsl_01.html#168690">Using Runtime Shared Libraries</a> in <em>Building and Deploying Adobe Flex 3 Applications.</em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexnflex.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexnflex.wordpress.com/917/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexnflex.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexnflex.wordpress.com/917/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexnflex.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexnflex.wordpress.com/917/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexnflex.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexnflex.wordpress.com/917/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexnflex.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexnflex.wordpress.com/917/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexnflex.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexnflex.wordpress.com/917/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexnflex.wordpress.com/917/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexnflex.wordpress.com/917/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=917&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexnflex.wordpress.com/2009/07/22/steps-using-swc-files-in-your-flex-projects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9d56bf91cb5c254cda2c9842d09e16aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mjcprasad2000</media:title>
		</media:content>
	</item>
		<item>
		<title>Resize the controls using ResizeManager Class</title>
		<link>http://flexnflex.wordpress.com/2009/07/21/resize-the-controls-using-resizemanager-class/</link>
		<comments>http://flexnflex.wordpress.com/2009/07/21/resize-the-controls-using-resizemanager-class/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 09:54:13 +0000</pubDate>
		<dc:creator>mjcprasad2000</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexnflex.wordpress.com/?p=915</guid>
		<description><![CDATA[&#60;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&#62; &#60;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221; initialize=&#8221;initApp();&#8221;&#62; &#60;mx:Script&#62; &#60;![CDATA[ import mx.events.DropdownEvent; import flash.display.*; import flash.utils.*; import mx.controls.*; import mx.containers.*; import mx.core.UIComponent; import mx.containers.Panel import sjd.managers.*; import mx.managers.PopUpManager; [Bindable] public var cards: Array = [{label:"mx.controls.ComboBox", data:"mx.controls.ComboBox"}, {label:"mx.containers.Panel", data:"mx.containers.Panel"}, {label:"mx.containers.Canvas", data:"mx.containers.Canvas"}, {label:"mx.containers.TitleWindow", data:"mx.containers.TitleWindow"}, {label:"mx.controls.TextArea", data:"mx.controls.TextArea"}, {label:"mx.controls.Button", data:"mx.controls.Button"}]; private function initApp():void{ var window:TitleWindow = TitleWindow(PopUpManager.createPopUp( this, TitleWindow , [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=915&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;mx:Application xmlns:mx=&#8221;http://www.adobe.com/2006/mxml&#8221; layout=&#8221;absolute&#8221; initialize=&#8221;initApp();&#8221;&gt;</p>
<p>&lt;mx:Script&gt;<br />
&lt;![CDATA[<br />
import mx.events.DropdownEvent;<br />
import flash.display.*;<br />
import flash.utils.*;<br />
import mx.controls.*;<br />
import mx.containers.*;<br />
import mx.core.UIComponent;<br />
import mx.containers.Panel<br />
import sjd.managers.*;<br />
import mx.managers.PopUpManager;</p>
<p>[Bindable]<br />
public var cards: Array = [{label:"mx.controls.ComboBox", data:"mx.controls.ComboBox"},<br />
{label:"mx.containers.Panel", data:"mx.containers.Panel"},<br />
{label:"mx.containers.Canvas", data:"mx.containers.Canvas"},<br />
{label:"mx.containers.TitleWindow", data:"mx.containers.TitleWindow"},<br />
{label:"mx.controls.TextArea", data:"mx.controls.TextArea"},<br />
{label:"mx.controls.Button", data:"mx.controls.Button"}];</p>
<p>private function initApp():void{<br />
var window:TitleWindow = TitleWindow(PopUpManager.createPopUp( this, TitleWindow , false));<br />
window.x = 100;<br />
window.y = 100;<br />
window.width = 200;<br />
window.height = 200;<br />
window.title = &#8220;PopUp Window&#8221;<br />
ResizeManager.enableResize(window, 50);<br />
}<br />
private function creatObj():void{<br />
var itemName:String = c1.selectedItem["data"];<br />
var obj:UIComponent;<br />
switch(itemName){<br />
case &#8220;mx.controls.ComboBox&#8221;:<br />
obj = new ComboBox();<br />
break;<br />
case &#8220;mx.containers.Panel&#8221;:<br />
obj = new Panel();<br />
obj.width = Math.random() * this.width / 2;<br />
obj.height = Math.random() * this.height / 2;<br />
break;<br />
case &#8220;mx.containers.TitleWindow&#8221;:<br />
obj = new TitleWindow();<br />
obj.width = Math.random() * this.width / 2;<br />
obj.height = Math.random() * this.height / 2;<br />
break;<br />
case &#8220;mx.controls.TextArea&#8221;:<br />
obj = new TextArea();<br />
break;<br />
case &#8220;mx.controls.Button&#8221;:<br />
obj = new Button();<br />
break;<br />
case &#8220;mx.containers.Canvas&#8221;:<br />
obj = new Canvas();<br />
obj.width = Math.random() * this.width / 2;<br />
obj.height = Math.random() * this.height / 2;<br />
obj.setStyle(&#8220;borderStyle&#8221;, &#8220;solid&#8221;);<br />
obj.setStyle(&#8220;backgroundColor&#8221;, &#8220;#FFFF00&#8243;);<br />
break;<br />
}<br />
obj.x = Math.random() * this.width &#8211; obj.width;<br />
obj.y = Math.random() * this.height &#8211; obj.height + 50;<br />
this.addChild(obj);<br />
ResizeManager.enableResize(obj, 50);<br />
}<br />
]]&gt;<br />
&lt;/mx:Script&gt;<br />
&lt;mx:ComboBox id=&#8221;c1&#8243; x=&#8221;0&#8243; dataProvider=&#8221;{cards}&#8221; width=&#8221;200&#8243; /&gt;<br />
&lt;mx:Button id=&#8221;b1&#8243; label=&#8221;Create&#8221; x=&#8221;210&#8243; click=&#8221;creatObj();&#8221; /&gt;<br />
&lt;/mx:Application&gt;</p>
<p><strong>ResizeManager.as</strong></p>
<p>package sjd.managers{</p>
<p>import flash.events.MouseEvent;<br />
import flash.geom.Point;<br />
import mx.containers.Panel;<br />
import mx.core.Application;<br />
import mx.core.UIComponent;<br />
import mx.events.FlexEvent;<br />
import mx.managers.CursorManager;<br />
import mx.managers.CursorManagerPriority;</p>
<p>/**<br />
* @class ResizeManager<br />
* @brief Enable any UIComponent to resize<br />
* @author Jove<br />
* @version 1.1<br />
*/<br />
public class ResizeManager{</p>
<p>[Embed(source="/sjd/assets/mouseMove.gif")]<br />
private static const CURSOR_MOVE:Class;<br />
[Embed(source="/sjd/assets/verticalSize.gif")]<br />
private static const VERTICAL_SIZE:Class;<br />
[Embed(source="/sjd/assets/horizontalSize.gif")]<br />
private static const HORIZONTAL_SIZE:Class;<br />
[Embed(source="/sjd/assets/leftObliqueSize.gif")]<br />
private static const LEFT_OBLIQUE_SIZE:Class;<br />
[Embed(source="/sjd/assets/rightObliqueSize.gif")]<br />
private static const RIGHT_OBLIQUE_SIZE:Class;</p>
<p>private static const RESIZE_OLD_POINT:String = &#8220;oldPoint&#8221;;<br />
private static const RESIZE_OLD_HEIGHT:String = &#8220;oldHeight&#8221;;<br />
private static const RESIZE_OLD_WIDTH:String = &#8220;oldWidth&#8221;;<br />
private static const RESIZE_OLD_X:String = &#8220;oldX&#8221;;<br />
private static const RESIZE_OLD_Y:String = &#8220;oldY&#8221;;<br />
private static const RESIZE_MIN_SIZE:String = &#8220;minSize&#8221;;<br />
private static const RESIZE_IS_POPUPE:String = &#8220;isPopup&#8221;;</p>
<p>private static const SIDE_OTHER:Number = 0;<br />
private static const SIDE_TOP:Number = 1;<br />
private static const SIDE_BOTTOM:Number = 2;<br />
private static const SIDE_LEFT:Number = 4;<br />
private static const SIDE_RIGHT:Number = 8;</p>
<p>private static var resizeObj:UIComponent;<br />
private static var mouseState:Number = 0;</p>
<p>public static var isResizing:Boolean = false;<br />
public static var mouseMargin:Number = 4;<br />
public static var defaultCursor:Class = null;<br />
public static var defaultCursorOffX:Number = 0;<br />
public static var defaultCursorOffY:Number = 0;</p>
<p>public static function setDefaultCursor(cursor:Class = null, offX:Number = 0, offY:Number = 0):void{<br />
defaultCursor = cursor;<br />
defaultCursorOffX = offX;<br />
defaultCursorOffY = offY;<br />
}</p>
<p>/**<br />
* Enable the UIComponent to have resize capability.<br />
* @param targetObj The UIComponent to be enabled resize capability<br />
* @param minSize The min size of the UIComponent when resizing<br />
*/<br />
public static function enableResize(targetObj:UIComponent, minSize:Number):void{<br />
//Application.application.parent:SystemManager<br />
Application.application.parent.addEventListener(MouseEvent.MOUSE_UP, doMouseUp);<br />
Application.application.parent.addEventListener(MouseEvent.MOUSE_MOVE, doResize);</p>
<p>initPosition(targetObj);</p>
<p>targetObj.setStyle(RESIZE_OLD_POINT, new Point());<br />
targetObj.setStyle(RESIZE_MIN_SIZE, minSize);<br />
targetObj.setStyle(RESIZE_IS_POPUPE, targetObj.isPopUp);</p>
<p>targetObj.addEventListener(MouseEvent.MOUSE_DOWN, doMouseDown);<br />
//targetObj.addEventListener(MouseEvent.MOUSE_UP, doMouseUp);<br />
targetObj.addEventListener(MouseEvent.MOUSE_MOVE, doMouseMove);<br />
targetObj.addEventListener(MouseEvent.MOUSE_OUT, doMouseOut);<br />
}</p>
<p>/**<br />
* Disable the UIComponent to have resize capability.<br />
* @param targetObj The UIComponent to be disabled resize capability<br />
*/<br />
public static function disableResize(targetObj:UIComponent):void{<br />
targetObj.removeEventListener(MouseEvent.MOUSE_DOWN, doMouseDown);<br />
//targetObj.removeEventListener(MouseEvent.MOUSE_UP, doMouseUp);<br />
targetObj.removeEventListener(MouseEvent.MOUSE_MOVE, doMouseMove);<br />
targetObj.removeEventListener(MouseEvent.MOUSE_OUT, doMouseOut);<br />
}</p>
<p>private static function initPosition(obj:Object):void{<br />
obj.setStyle(RESIZE_OLD_HEIGHT, obj.height);<br />
obj.setStyle(RESIZE_OLD_WIDTH, obj.width);<br />
obj.setStyle(RESIZE_OLD_X, obj.x);<br />
obj.setStyle(RESIZE_OLD_Y, obj.y);<br />
}</p>
<p>/**<br />
* Set the first global point that mouse down on the resizeObj.<br />
* @param The MouseEvent.MOUSE_DOWN<br />
*/<br />
private static function doMouseDown(event:MouseEvent):void{</p>
<p>if(mouseState != SIDE_OTHER){</p>
<p>resizeObj = UIComponent(event.currentTarget);</p>
<p>initPosition(resizeObj);</p>
<p>var point:Point = new Point();<br />
point.x = resizeObj.mouseX;<br />
point.y = resizeObj.mouseY;</p>
<p>point = resizeObj.localToGlobal(point);<br />
resizeObj.setStyle(RESIZE_OLD_POINT, point);<br />
}<br />
}</p>
<p>/**<br />
* Clear the resizeObj and also set the latest position.<br />
* @param The MouseEvent.MOUSE_UP<br />
*/<br />
private static function doMouseUp(event:MouseEvent):void{<br />
isResizing = false;<br />
if(resizeObj != null){<br />
initPosition(resizeObj);<br />
}<br />
resizeObj = null;<br />
}</p>
<p>/**<br />
* Show the mouse arrow when not draging.<br />
* Call doResize(event) to resize resizeObj when mouse is inside the resizeObj area.<br />
* @param The MouseEvent.MOUSE_MOVE<br />
*/<br />
private static function doMouseMove(event:MouseEvent):void</p>
<p>{<br />
var thisObj:UIComponent = UIComponent(event.currentTarget);<br />
var point:Point = new Point();<br />
point = thisObj.localToGlobal(point);<br />
isResizing = true;<br />
if(resizeObj == null)</p>
<p>{<br />
var xPosition:Number = Application.application.parent.mouseX;<br />
var yPosition:Number = Application.application.parent.mouseY;<br />
if(xPosition &gt;= (point.x + thisObj.width &#8211; mouseMargin) &amp;&amp; yPosition &gt;= (point.y + thisObj.height &#8211; mouseMargin)){<br />
changeCursor(LEFT_OBLIQUE_SIZE, -6, -6);<br />
mouseState = SIDE_RIGHT | SIDE_BOTTOM;<br />
}else if(xPosition &lt;= (point.x + mouseMargin) &amp;&amp; yPosition &lt;= (point.y + mouseMargin)){<br />
changeCursor(LEFT_OBLIQUE_SIZE, -6, -6);<br />
mouseState = SIDE_LEFT | SIDE_TOP;<br />
}else if(xPosition &lt;= (point.x + mouseMargin) &amp;&amp; yPosition &gt;= (point.y + thisObj.height &#8211; mouseMargin)){<br />
changeCursor(RIGHT_OBLIQUE_SIZE, -6, -6);<br />
mouseState = SIDE_LEFT | SIDE_BOTTOM;<br />
}else if(xPosition &gt;= (point.x + thisObj.width &#8211; mouseMargin) &amp;&amp; yPosition &lt;= (point.y + mouseMargin)){<br />
changeCursor(RIGHT_OBLIQUE_SIZE, -6, -6);<br />
mouseState = SIDE_RIGHT | SIDE_TOP;<br />
}else if(xPosition &gt;= (point.x + thisObj.width &#8211; mouseMargin)){<br />
changeCursor(HORIZONTAL_SIZE, -9, -9);<br />
mouseState = SIDE_RIGHT;<br />
}else if(xPosition &lt;= (point.x + mouseMargin)){<br />
changeCursor(HORIZONTAL_SIZE, -9, -9);<br />
mouseState = SIDE_LEFT;<br />
}else if(yPosition &gt;= (point.y + thisObj.height &#8211; mouseMargin)){<br />
changeCursor(VERTICAL_SIZE, -9, -9);<br />
mouseState = SIDE_BOTTOM;<br />
}else if(yPosition &lt;= (point.y + mouseMargin)){<br />
changeCursor(VERTICAL_SIZE, -9, -9);<br />
mouseState = SIDE_TOP;<br />
}else{<br />
changeCursor(defaultCursor, defaultCursorOffX, defaultCursorOffY);<br />
mouseState = SIDE_OTHER;<br />
isResizing = false;<br />
}</p>
<p>if(thisObj.getStyle(RESIZE_IS_POPUPE)){<br />
//When cursor is move arrow, disable popup<br />
if(mouseState != SIDE_OTHER){<br />
thisObj.isPopUp = false;<br />
}else{<br />
thisObj.isPopUp = true;<br />
}<br />
}<br />
}<br />
//Use SystemManager to listen the mouse reize event, so we needn&#8217;t handle the event at the current object.<br />
//doResize(event);<br />
}</p>
<p>/*** Hide the arrow when not draging and moving out the resizeObj.<br />
* @param The MouseEvent.MOUSE_MOVE*/<br />
private static function doMouseOut(event:MouseEvent):void{<br />
if(resizeObj == null)</p>
<p>{<br />
changeCursor(defaultCursor, defaultCursorOffX, defaultCursorOffY);<br />
mouseState = SIDE_OTHER;<br />
}<br />
}</p>
<p>/*** Resize when the draging resizeObj, resizeObj is not null.<br />
* @param The MouseEvent.MOUSE_MOVE*/</p>
<p>private static function doResize(event:MouseEvent):void</p>
<p>{<br />
if(resizeObj != null){<br />
var point:Point = Point(resizeObj.getStyle(RESIZE_OLD_POINT));<br />
var xPlus:Number = Application.application.parent.mouseX &#8211; point.x;<br />
var yPlus:Number = Application.application.parent.mouseY &#8211; point.y;<br />
var windowMinSize:Number = Number(resizeObj.getStyle(RESIZE_MIN_SIZE));<br />
var ow:Number = Number(resizeObj.getStyle(RESIZE_OLD_WIDTH));<br />
var oh:Number = Number(resizeObj.getStyle(RESIZE_OLD_HEIGHT));<br />
var oX:Number = Number(resizeObj.getStyle(RESIZE_OLD_X));<br />
var oY:Number = Number(resizeObj.getStyle(RESIZE_OLD_Y))<br />
switch(mouseState)</p>
<p>{<br />
case SIDE_RIGHT | SIDE_BOTTOM:<br />
resizeObj.width = ow + xPlus &gt; windowMinSize ? ow + xPlus : windowMinSize;<br />
resizeObj.height = oh + yPlus &gt; windowMinSize ? oh + yPlus : windowMinSize;<br />
break;<br />
case SIDE_LEFT | SIDE_TOP:<br />
resizeObj.width = ow &#8211; xPlus &gt; windowMinSize ? ow &#8211; xPlus : windowMinSize;<br />
resizeObj.height = oh &#8211; yPlus &gt; windowMinSize ? oh &#8211; yPlus : windowMinSize;<br />
resizeObj.x = xPlus &lt; ow &#8211; windowMinSize ? oX + xPlus: resizeObj.x;<br />
resizeObj.y = yPlus &lt; oh &#8211; windowMinSize ? oY + yPlus : resizeObj.y;<br />
break;<br />
case SIDE_LEFT | SIDE_BOTTOM:<br />
resizeObj.width = ow &#8211; xPlus &gt; windowMinSize ? ow &#8211; xPlus : windowMinSize;<br />
resizeObj.height = oh + yPlus &gt; windowMinSize ? oh + yPlus : windowMinSize;<br />
resizeObj.x = xPlus &lt; ow &#8211; windowMinSize ? oX + xPlus: resizeObj.x;<br />
break;<br />
case SIDE_RIGHT | SIDE_TOP:<br />
resizeObj.width = ow + xPlus &gt; windowMinSize ? ow + xPlus : windowMinSize;<br />
resizeObj.height = oh &#8211; yPlus &gt; windowMinSize ? oh &#8211; yPlus : windowMinSize;<br />
resizeObj.y = yPlus &lt; oh &#8211; windowMinSize ? oY + yPlus : resizeObj.y;<br />
break;<br />
case SIDE_RIGHT:<br />
resizeObj.width = ow + xPlus &gt; windowMinSize ? ow + xPlus : windowMinSize;<br />
break;<br />
case SIDE_LEFT:<br />
resizeObj.width = ow &#8211; xPlus &gt; windowMinSize ? ow &#8211; xPlus : windowMinSize;<br />
resizeObj.x = xPlus &lt; ow &#8211; windowMinSize ? oX + xPlus: resizeObj.x;<br />
break;<br />
case SIDE_BOTTOM:<br />
resizeObj.height = oh + yPlus &gt; windowMinSize ? oh + yPlus : windowMinSize;<br />
break;<br />
case SIDE_TOP:<br />
resizeObj.height = oh &#8211; yPlus &gt; windowMinSize ? oh &#8211; yPlus : windowMinSize;<br />
resizeObj.y = yPlus &lt; oh &#8211; windowMinSize ? oY + yPlus : resizeObj.y;<br />
break;<br />
}<br />
}<br />
}</p>
<p>private static var currentType:Class = null;<br />
/*** Remove the current cursor and set an image.<br />
* @param type The image class<br />
* @param xOffset The xOffset of the cursorimage<br />
* @param yOffset The yOffset of the cursor image*/</p>
<p>private static function changeCursor(type:Class, xOffset:Number = 0, yOffset:Number = 0):void</p>
<p>{<br />
if(currentType != type)</p>
<p>{<br />
currentType = type;<br />
CursorManager.removeCursor(CursorManager.currentCursorID);<br />
if(type != null)</p>
<p>{<br />
CursorManager.setCursor(type, CursorManagerPriority.MEDIUM, xOffset, yOffset);<br />
}<br />
}<br />
}<br />
}<br />
}</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexnflex.wordpress.com/915/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexnflex.wordpress.com/915/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexnflex.wordpress.com/915/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexnflex.wordpress.com/915/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexnflex.wordpress.com/915/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexnflex.wordpress.com/915/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexnflex.wordpress.com/915/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexnflex.wordpress.com/915/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexnflex.wordpress.com/915/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexnflex.wordpress.com/915/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexnflex.wordpress.com/915/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexnflex.wordpress.com/915/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexnflex.wordpress.com/915/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexnflex.wordpress.com/915/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=915&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexnflex.wordpress.com/2009/07/21/resize-the-controls-using-resizemanager-class/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9d56bf91cb5c254cda2c9842d09e16aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mjcprasad2000</media:title>
		</media:content>
	</item>
		<item>
		<title>Binding of properties between sub components</title>
		<link>http://flexnflex.wordpress.com/2009/07/21/binding-of-properties-between-sub-components/</link>
		<comments>http://flexnflex.wordpress.com/2009/07/21/binding-of-properties-between-sub-components/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 08:08:44 +0000</pubDate>
		<dc:creator>mjcprasad2000</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexnflex.wordpress.com/?p=909</guid>
		<description><![CDATA[In the process of testing what he outlined, I created a simple example, which I have posted here. The point of this example is to show how you can declare &#8220;public&#8221; variables in a component, and then access those variables as properties form the component that uses it&#8230; The example consists of 2 files: FormExample.mxml [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=909&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In the process of testing what he outlined, I created a simple example, which I have posted here.</p>
<p>The point of this example is to show how you can declare &#8220;public&#8221; variables in a component, and then access those variables as properties form the component that uses it&#8230;</p>
<p>The example consists of 2 files:</p>
<p>FormExample.mxml (Application File)</p>
<p>Code:</p>
<div>&lt;?xml version=<span style="color:#0000ff;">&#8220;1.0&#8243;</span> encoding=<span style="color:#0000ff;">&#8220;utf-8&#8243;</span>?&gt;<br />
<span style="color:#000080;">&lt;mx:Application xmlns:mx=<span style="color:#0000ff;">&#8220;<a href="http://www.adobe.com/2006/mxml" target="_blank">http://www.adobe.com/2006/mxml</a>&#8220;</span> layout=<span style="color:#0000ff;">&#8220;absolute&#8221;</span> &gt;</span></p>
<p><span style="color:#000080;">&lt;mx:Panel&gt;</span><br />
<span style="color:#808080;"><em>&lt;!&#8211; call in the MyForm component &#8211;&gt;</em></span><br />
<span style="color:#000080;">&lt;local:MyForm<br />
id=<span style="color:#0000ff;">&#8220;myForm&#8221;</span><br />
title=<span style="color:#0000ff;">&#8220;My Form&#8221;</span><br />
xmlns:local=<span style="color:#0000ff;">&#8220;*&#8221;</span><br />
/&gt;</span></p>
<p><span style="color:#808080;"><em>&lt;!&#8211;<br />
a button with the <span style="color:#0000ff;">&#8220;enabled&#8221;</span> property bound to the <span style="color:#0000ff;">&#8220;formValid&#8221;</span> property of the myForm component above<br />
&#8211;&gt;</em></span><br />
<span style="color:#000080;">&lt;mx:Button<br />
id=<span style="color:#0000ff;">&#8220;myButton&#8221;</span><br />
label=<span style="color:#0000ff;">&#8220;My Button: enabled is &#8216;{myButton.enabled.toString()}&#8217;&#8221;</span><br />
enabled=<span style="color:#0000ff;">&#8220;{myForm.formValid}&#8221;</span><br />
/&gt;</span></p>
<p><span style="color:#000080;">&lt;/mx:Panel&gt;</span></p>
<p><span style="color:#000080;">&lt;/mx:Application&gt;</span></div>
<p>MyForm.mxml (in the root folder of the project)</p>
<p>Code:</p>
<div>&lt;?xml version=<span style="color:#0000ff;">&#8220;1.0&#8243;</span> encoding=<span style="color:#0000ff;">&#8220;utf-8&#8243;</span>?&gt;<br />
<span style="color:#000080;">&lt;mx:Panel xmlns:mx=<span style="color:#0000ff;">&#8220;<a href="http://www.adobe.com/2006/mxml" target="_blank">http://www.adobe.com/2006/mxml</a>&#8220;</span> layout=<span style="color:#0000ff;">&#8220;vertical&#8221;</span>&gt;</span></p>
<p><span style="color:#000080;">&lt;mx:Script&gt;</span><br />
&lt;![CDATA[<br />
<span style="color:#808080;"><em>/*<br />
Create property and expose it by declaring it as <span style="color:#0000ff;">"public"</span>,<br />
and let the compiler know to make if bindable using the [Bindable] meta tag<br />
*/</em></span><br />
[Bindable] public var formValid:Boolean = false;<br />
]]&gt;<br />
<span style="color:#000080;">&lt;/mx:Script&gt;</span><br />
<span style="color:#808080;"><em>&lt;!&#8211; Something to let us know if the &#8216;form&#8217; is currently Valid or Invalid &#8211;&gt;</em></span><br />
<span style="color:#000080;">&lt;mx:Text text=<span style="color:#0000ff;">&#8220;Form is Currently {formValid == true ? &#8216;Valid&#8217; : &#8216;Invalid&#8217;}&#8221;</span> /&gt;</span></p>
<p><span style="color:#808080;"><em>&lt;!&#8211; simple button to toggle the formValid status &#8211;&gt;</em></span><br />
<span style="color:#000080;">&lt;mx:Button label=<span style="color:#0000ff;">&#8220;Toggle Form Valid&#8221;</span> click=<span style="color:#0000ff;">&#8220;formValid = !formValid;&#8221;</span> /&gt;</span></p>
<p><span style="color:#000080;">&lt;/mx:Panel&gt;</span></div>
<p>Result:</p>
<div id="form_20071215"></div>
<p>// </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexnflex.wordpress.com/909/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexnflex.wordpress.com/909/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexnflex.wordpress.com/909/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexnflex.wordpress.com/909/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexnflex.wordpress.com/909/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexnflex.wordpress.com/909/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexnflex.wordpress.com/909/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexnflex.wordpress.com/909/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexnflex.wordpress.com/909/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexnflex.wordpress.com/909/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexnflex.wordpress.com/909/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexnflex.wordpress.com/909/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexnflex.wordpress.com/909/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexnflex.wordpress.com/909/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=909&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexnflex.wordpress.com/2009/07/21/binding-of-properties-between-sub-components/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9d56bf91cb5c254cda2c9842d09e16aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mjcprasad2000</media:title>
		</media:content>
	</item>
		<item>
		<title>AutoComplete</title>
		<link>http://flexnflex.wordpress.com/2009/07/21/autocomplete/</link>
		<comments>http://flexnflex.wordpress.com/2009/07/21/autocomplete/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 07:49:43 +0000</pubDate>
		<dc:creator>mjcprasad2000</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexnflex.wordpress.com/?p=907</guid>
		<description><![CDATA[POSTED BY: hillelcoren While there are a number of other Flex AutoComplete components out there, I wasn’t able to find one which fit my needs. After struggling for a while I ended up creating my own. Demo Download Google Code Important Info License: The component is freeware with the source code available. You can use [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=907&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<p>POSTED BY: hillelcoren</p>
<p>While there are a number of other Flex AutoComplete components out there, I wasn’t able to find one which fit my needs. After struggling for a while I ended up creating my own.</p>
<ul>
<li><a href="http://web.me.com/hillelcoren/Site/Demo.html" target="_blank">Demo</a></li>
<li><a href="http://web.me.com/hillelcoren/Site/AutoComplete.zip">Download</a></li>
<li><a href="http://code.google.com/p/flex-autocomplete/" target="_blank">Google Code</a></li>
</ul>
<h3>Important Info</h3>
<ul>
<li><strong>License:</strong> The component is freeware with the source code available. You can use it any way you like, I just ask that if you make any improvements or fix any bugs that you send them back to me so I can include them in the component.</li>
<li><strong>Support:</strong> I try as hard as possible to respond to any questions posted on the blog within a day. I’ve been using the component for a while now and am pretty confident that it works well. If you’d like to extend it I’m happy to work with you to get your feature working.</li>
<li><strong>What’s next:</strong> I’m currently working on improving the documentation and starting to test it under Flex 4.</li>
</ul>
<h3>Version History</h3>
<ul>
<li><a href="http://hillelcoren.com/2009/07/03/flex-autocomplete-version-1-0/" target="_blank">1.0 released on July 3rd, 2009</a></li>
<li><a href="http://hillelcoren.com/2009/05/11/flex-autocomplete-version-0-98-2/" target="_blank">0.98.2 released on May 11th, 2009</a></li>
<li><a href="http://hillelcoren.com/2009/04/07/flex-autocomplete-version-0981/" target="_blank">0.98.1 released on April 7th, 2009</a></li>
<li><a href="http://hillelcoren.com/2009/03/12/flex-autocomplete-new-batch-of-changes/" target="_blank">0.98 released on March 12th 2009</a></li>
<li><a href="http://hillelcoren.com/2009/02/01/flex-autocomplete-almost-there/" target="_blank">0.93 released on February 1st, 2009</a></li>
<li><a href="http://hillelcoren.com/2009/01/01/flex-autocomplete-latest-version/" target="_blank">0.91 released on January 1st, 2009</a></li>
<li><a href="http://hillelcoren.com/2008/11/10/flex-autocomplete-component-a-new-take-on-an-old-standard/" target="_blank">0.90 released on November 10, 2008</a></li>
</ul>
<p><a title="View Demo" href="http://web.me.com/hillelcoren/Site/Demo.html">http://web.me.com/hillelcoren/Site/Demo.html</a></div>
<div><a title="ViewSource" href="http://web.me.com/hillelcoren/Site/srcview/index.html">viewSource:</a></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexnflex.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexnflex.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexnflex.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexnflex.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexnflex.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexnflex.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexnflex.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexnflex.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexnflex.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexnflex.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexnflex.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexnflex.wordpress.com/907/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexnflex.wordpress.com/907/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexnflex.wordpress.com/907/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=907&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexnflex.wordpress.com/2009/07/21/autocomplete/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9d56bf91cb5c254cda2c9842d09e16aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mjcprasad2000</media:title>
		</media:content>
	</item>
		<item>
		<title>Importing Contacts from Mail Server</title>
		<link>http://flexnflex.wordpress.com/2009/07/21/importing-contacts-from-mail-server/</link>
		<comments>http://flexnflex.wordpress.com/2009/07/21/importing-contacts-from-mail-server/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 05:40:35 +0000</pubDate>
		<dc:creator>mjcprasad2000</dc:creator>
				<category><![CDATA[Flex]]></category>

		<guid isPermaLink="false">http://flexnflex.wordpress.com/2009/07/21/importing-contacts-from-mail-server/</guid>
		<description><![CDATA[One of the requirements called for importing contacts from their email addresses. With the number of websites implementing contact importers these days, I figured there would be plenty of Flex components out there to import your contacts. After googling for about half an hour, I was quite frustrated not finding any. I started looking for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=906&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>One of the requirements called for importing contacts from their email addresses. With the number of websites implementing contact importers these days, I figured there would be plenty of Flex components out there to import your contacts.</p>
<p>After googling for about half an hour, I was quite frustrated not finding any. I started looking for PHP solutions that I could port to Flex. I found <a title="OpenInviter" href="http://openinviter.com/" target="_blank">OpenInviter</a>.</p>
<p>As of now, it allows you to import contacts from 62 different email and social network providers.</p>
<p>So I started working on a Flex component that imports contacts via OpenInviter.</p>
<h2>What the component does</h2>
<p>Enter your email address and password and the component will attempt to retrieve contacts from your email provider and display it in a datagrid. Also, that component will attempt to detect your provider from email address you’ve entered. Feel free to extend it to your liking.</p>
<p><strong><em>Note: </em></strong><em>The component is still very basic. If you’ve got suggestions on how it can be improved upon or simplified, feel free to comment on this page. I’ll be listening and updating as time allows.</em></p>
<p><em><strong><em>Disclaimer:</em></strong><em> I happened to have come across some claims that OpenInviter may be storing email addresses and passwords you inpuy while accessing their APIs. Although those were only comments at some blog post, I feel compelled to distance myself from OpenInviter’s team. I take no responsibility for OpenInviter’s actions. The component mentioned in this tutorial uses OpenInviter’s API. If you’re not comfortable with OpenInviter’s handling of your personal information, do not use any information or content on this tutorial.</em></em></p>
<p><em><em>If anyone has any sort of information on this, please share it with us.</em></em></p>
<p><em><em>By clicking on the links below, you agree to have read and understood the disclaimer above.</em></em></p>
<ul>
<li><a title="Click here to see the component in action" href="http://www.alamgirdesigns.com/flex/component/inviter/demo" target="_blank">View Demo</a></li>
<li><a title="Click here to download the component source files." href="http://www.alamgirdesigns.com/flex/component/inviter/source/FlexOpenInviterComponent.zip" target="_self">Download Component Source </a></li>
<li><a title="Click here to download the application source files." href="http://www.alamgirdesigns.com/flex/component/inviter/source/FlexOpenInviterApplication.zip" target="_self">Download Application Source </a></li>
</ul>
<h2><strong>Implementation from Source files</strong></h2>
<p>If you’ve got the source files, these are the steps you’ll need to take before the component can be used.</p>
<ol>
<li>Register for a private key at <a href="http://openinviter.com/register.php">http://openinviter.com/register.php</a></li>
<li>If you download the OpenInviter class from their website, it comes pre-filled with your username and private key. If you are using the openinviter class included in the source, enter your <em>username </em>and <em>private_key</em> in the <em>config.php</em> file.</li>
<li>Upload the OpenInviter class and <em>FlexInviter.php </em>on your server. Make sure they’re both on the same folder.</li>
<li>Import the Flex Project file (if you’ve downloaded application source). Otherwise add the <em>com</em> folder to your project. The component is called <em>FlexOpenInviter</em>.</li>
<li>Open the <em>FlexOpenInviter</em> component and fill in the <em>importerGatewayURL </em>string pointing to the url of the <em>FlexInviter.php</em> file that you just uploaded.</li>
<li>That should be it… test the application!</li>
</ol>
<h2><strong>Code Review</strong></h2>
<h3><strong>MXML</strong></h3>
<p><em> </em></p>
<div><span><sup><a title="WP-CodeBox HowTo?" href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank"><span style="color:#99cc00;">?</span></a></sup></span><span><a href=";">View Code</a> XML</span></div>
<div>
<table border="0" width="100%">
<tbody>
<tr>
<td>
<pre style="font-family:monospace;">	<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:HTTPService</span> <span style="color:#000066;">id</span>=<span style="color:#ff0000;">"svc"</span></span>
<span style="color:#009900;">		<span style="color:#000066;">method</span>=<span style="color:#ff0000;">"POST"</span></span>
<span style="color:#009900;">		<span style="color:#000066;">url</span>=<span style="color:#ff0000;">"{importerGatewayURL}"</span></span>
<span style="color:#009900;">		<span style="color:#000066;">resultFormat</span>=<span style="color:#ff0000;">"e4x"</span></span>
<span style="color:#009900;">		<span style="color:#000066;">result</span>=<span style="color:#ff0000;">"svcResult_handler( event )"</span> <span style="color:#000000;font-weight:bold;">/&gt;</span></span>

	<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:Form<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
		<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:FormItem</span> <span style="color:#000066;">label</span>=<span style="color:#ff0000;">"Email address"</span><span style="color:#000000;font-weight:bold;">&gt;</span></span>
			<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:TextInput</span> <span style="color:#000066;">id</span>=<span style="color:#ff0000;">"txtEmail"</span></span>
<span style="color:#009900;">				<span style="color:#000066;">change</span>=<span style="color:#ff0000;">"emailInput_handler( event )"</span> <span style="color:#000000;font-weight:bold;">/&gt;</span></span>
		<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/mx:FormItem<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
		<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:FormItem</span> <span style="color:#000066;">label</span>=<span style="color:#ff0000;">"Password"</span><span style="color:#000000;font-weight:bold;">&gt;</span></span>
			<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:TextInput</span> <span style="color:#000066;">id</span>=<span style="color:#ff0000;">"txtPassword"</span></span>
<span style="color:#009900;">				<span style="color:#000066;">displayAsPassword</span>=<span style="color:#ff0000;">"true"</span> <span style="color:#000000;font-weight:bold;">/&gt;</span></span>
		<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/mx:FormItem<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
		<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:FormItem</span> <span style="color:#000066;">label</span>=<span style="color:#ff0000;">"Provider"</span><span style="color:#000000;font-weight:bold;">&gt;</span></span>
			<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:ComboBox</span> <span style="color:#000066;">id</span>=<span style="color:#ff0000;">"cmbProvider"</span> </span>
<span style="color:#009900;">				<span style="color:#000066;">dataProvider</span>=<span style="color:#ff0000;">"{xmlProviders.email..name}"</span> <span style="color:#000000;font-weight:bold;">/&gt;</span></span>
		<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/mx:FormItem<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
		<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:FormItem<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
			<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:Button</span> <span style="color:#000066;">id</span>=<span style="color:#ff0000;">"btnSubmit"</span> </span>
<span style="color:#009900;">				<span style="color:#000066;">label</span>=<span style="color:#ff0000;">"Submit"</span></span>
<span style="color:#009900;">				<span style="color:#000066;">click</span>=<span style="color:#ff0000;">"sumbitClick_handler( event )"</span> <span style="color:#000000;font-weight:bold;">/&gt;</span></span>
		<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/mx:FormItem<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
	<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/mx:Form<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>

	<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:DataGrid</span> <span style="color:#000066;">id</span>=<span style="color:#ff0000;">"dg"</span> </span>
<span style="color:#009900;">		<span style="color:#000066;">dataProvider</span>=<span style="color:#ff0000;">"{xmlContacts.contact}"</span> </span>
<span style="color:#009900;">		<span style="color:#000066;">width</span>=<span style="color:#ff0000;">"400"</span> <span style="color:#000066;">height</span>=<span style="color:#ff0000;">"80%"</span></span>
<span style="color:#009900;">		<span style="color:#000066;">allowMultipleSelection</span>=<span style="color:#ff0000;">"true"</span>  <span style="color:#000000;font-weight:bold;">&gt;</span></span>
		<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:columns<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
			<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:DataGridColumn</span> <span style="color:#000066;">dataField</span>=<span style="color:#ff0000;">"name"</span> <span style="color:#000000;font-weight:bold;">/&gt;</span></span>
			<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;mx:DataGridColumn</span> <span style="color:#000066;">dataField</span>=<span style="color:#ff0000;">"email"</span> <span style="color:#000000;font-weight:bold;">/&gt;</span></span>
		<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/mx:columns<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
	<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/mx:DataGrid<span style="color:#000000;font-weight:bold;">&gt;</span></span></span></pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>For those familiar with MXML, the above code should be self-explanatory. I will get to the XML Schema soon.</p>
<h3><strong>PHP File (FlexInviter.php)</strong></h3>
<p><em> </em></p>
<div><span><sup><a title="WP-CodeBox HowTo?" href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank"><span style="color:#99cc00;">?</span></a></sup></span><span><a href=";">View Code</a> PHP</span></div>
<div>
<table border="0" width="100%">
<tbody>
<tr>
<td>
<pre style="font-family:monospace;"><span style="color:#000000;font-weight:bold;">&lt;?php</span>
<span style="color:#b1b100;">include</span><span style="color:#009900;">(</span> <span style="color:#0000ff;">'OpenInviter/openinviter.php'</span> <span style="color:#009900;">)</span><span style="color:#339933;">;</span>
<span style="color:#000088;">$inviter</span> <span style="color:#339933;">=</span> <span style="color:#000000;font-weight:bold;">new</span> OpenInviter<span style="color:#009900;">(</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
<span style="color:#000088;">$plugins</span> <span style="color:#339933;">=</span> <span style="color:#000088;">$inviter</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">getPlugins</span><span style="color:#009900;">(</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>

<span style="color:#b1b100;">if</span> <span style="color:#009900;">(</span> <span style="color:#000088;">$_POST</span><span style="color:#009900;">[</span> <span style="color:#0000ff;">'action'</span> <span style="color:#009900;">]</span> <span style="color:#339933;">==</span> <span style="color:#0000ff;">"get_plugins"</span> <span style="color:#009900;">)</span>
<span style="color:#009900;">{</span>
	<a href="http://www.php.net/echo"><span style="color:#990000;">echo</span></a> arrayToXMLProviders<span style="color:#009900;">(</span> <span style="color:#000088;">$plugins</span> <span style="color:#009900;">)</span><span style="color:#339933;">;</span>
<span style="color:#009900;">}</span>
<span style="color:#b1b100;">else</span> <span style="color:#b1b100;">if</span> <span style="color:#009900;">(</span> <span style="color:#000088;">$_POST</span><span style="color:#009900;">[</span> <span style="color:#0000ff;">'action'</span> <span style="color:#009900;">]</span> <span style="color:#339933;">==</span> <span style="color:#0000ff;">"get_contacts"</span> <span style="color:#009900;">)</span>
<span style="color:#009900;">{</span>
	<span style="color:#000088;">$inviter</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">startPlugin</span><span style="color:#009900;">(</span> <span style="color:#000088;">$_POST</span><span style="color:#009900;">[</span> <span style="color:#0000ff;">'provider'</span> <span style="color:#009900;">]</span> <span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	<span style="color:#000088;">$inviter</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">login</span><span style="color:#009900;">(</span> <span style="color:#000088;">$_POST</span><span style="color:#009900;">[</span> <span style="color:#0000ff;">'user_username'</span> <span style="color:#009900;">]</span><span style="color:#339933;">,</span> <span style="color:#000088;">$_POST</span><span style="color:#009900;">[</span> <span style="color:#0000ff;">'user_userpwd'</span> <span style="color:#009900;">]</span> <span style="color:#009900;">)</span><span style="color:#339933;">;</span>

	<a href="http://www.php.net/echo"><span style="color:#990000;">echo</span></a> arrayToXMLContacts<span style="color:#009900;">(</span> <span style="color:#000088;">$inviter</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">getMyContacts</span><span style="color:#009900;">(</span><span style="color:#009900;">)</span> <span style="color:#009900;">)</span><span style="color:#339933;">;</span>
<span style="color:#009900;">}</span>

<span style="color:#000000;font-weight:bold;">function</span> arrayToXMLContacts<span style="color:#009900;">(</span> <span style="color:#000088;">$paramxml</span> <span style="color:#009900;">)</span>
<span style="color:#009900;">{</span>
	<span style="color:#000088;">$xml</span> <span style="color:#339933;">=</span> <span style="color:#000000;font-weight:bold;">new</span> XmlWriter<span style="color:#009900;">(</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	<span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">openMemory</span><span style="color:#009900;">(</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	<span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">startDocument</span><span style="color:#009900;">(</span><span style="color:#0000ff;">'1.0'</span><span style="color:#339933;">,</span> <span style="color:#0000ff;">'UTF-8'</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	<span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">startElement</span><span style="color:#009900;">(</span><span style="color:#0000ff;">'root'</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>

	<span style="color:#000000;font-weight:bold;">function</span> write<span style="color:#009900;">(</span>XMLWriter <span style="color:#000088;">$xml</span><span style="color:#339933;">,</span> <span style="color:#000088;">$param</span><span style="color:#009900;">)</span><span style="color:#009900;">{</span>
	    <span style="color:#b1b100;">foreach</span><span style="color:#009900;">(</span><span style="color:#000088;">$param</span> <span style="color:#b1b100;">as</span> <span style="color:#000088;">$key</span> <span style="color:#339933;">=&gt;</span> <span style="color:#000088;">$value</span><span style="color:#009900;">)</span><span style="color:#009900;">{</span>
		<span style="color:#666666;font-style:italic;">/*if(is_array($value)){
	            $xml-&gt;startElement("contact");
	            write($xml, $value);
	            $xml-&gt;endElement();
	            continue;
	        }*/</span>
	        <span style="color:#000088;">$splitKey</span> <span style="color:#339933;">=</span> <a href="http://www.php.net/split"><span style="color:#990000;">split</span></a><span style="color:#009900;">(</span> <span style="color:#0000ff;">"@"</span><span style="color:#339933;">,</span> <span style="color:#000088;">$key</span> <span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	        <span style="color:#000088;">$key</span> <span style="color:#339933;">=</span> <span style="color:#000088;">$splitKey</span><span style="color:#009900;">[</span><span style="color:#cc66cc;">0</span><span style="color:#009900;">]</span><span style="color:#339933;">;</span>
	        <span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">startElement</span><span style="color:#009900;">(</span><span style="color:#0000ff;">'contact'</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	        <span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">writeElement</span><span style="color:#009900;">(</span> <span style="color:#0000ff;">"name"</span><span style="color:#339933;">,</span> <span style="color:#000088;">$key</span> <span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	        <span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">writeElement</span><span style="color:#009900;">(</span> <span style="color:#0000ff;">"email"</span><span style="color:#339933;">,</span> <span style="color:#000088;">$value</span> <span style="color:#009900;">)</span><span style="color:#339933;">;</span>
		<span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">endElement</span><span style="color:#009900;">(</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>

	    <span style="color:#009900;">}</span>
	<span style="color:#009900;">}</span>
	write<span style="color:#009900;">(</span><span style="color:#000088;">$xml</span><span style="color:#339933;">,</span> <span style="color:#000088;">$paramxml</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>

	<span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">endElement</span><span style="color:#009900;">(</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	<span style="color:#b1b100;">return</span> <span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">outputMemory</span><span style="color:#009900;">(</span><span style="color:#000000;font-weight:bold;">true</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
<span style="color:#009900;">}</span>

<span style="color:#000000;font-weight:bold;">function</span> arrayToXMLProviders<span style="color:#009900;">(</span> <span style="color:#000088;">$paramxml</span> <span style="color:#009900;">)</span>
<span style="color:#009900;">{</span>
	<span style="color:#000088;">$xml</span> <span style="color:#339933;">=</span> <span style="color:#000000;font-weight:bold;">new</span> XmlWriter<span style="color:#009900;">(</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	<span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">openMemory</span><span style="color:#009900;">(</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	<span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">startDocument</span><span style="color:#009900;">(</span><span style="color:#0000ff;">'1.0'</span><span style="color:#339933;">,</span> <span style="color:#0000ff;">'UTF-8'</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	<span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">startElement</span><span style="color:#009900;">(</span><span style="color:#0000ff;">'root'</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>

	<span style="color:#000000;font-weight:bold;">function</span> write<span style="color:#009900;">(</span>XMLWriter <span style="color:#000088;">$xml</span><span style="color:#339933;">,</span> <span style="color:#000088;">$param</span><span style="color:#009900;">)</span><span style="color:#009900;">{</span>
	    <span style="color:#b1b100;">foreach</span><span style="color:#009900;">(</span><span style="color:#000088;">$param</span> <span style="color:#b1b100;">as</span> <span style="color:#000088;">$key</span> <span style="color:#339933;">=&gt;</span> <span style="color:#000088;">$value</span><span style="color:#009900;">)</span><span style="color:#009900;">{</span>
		<span style="color:#b1b100;">if</span><span style="color:#009900;">(</span><a href="http://www.php.net/is_array"><span style="color:#990000;">is_array</span></a><span style="color:#009900;">(</span><span style="color:#000088;">$value</span><span style="color:#009900;">)</span><span style="color:#009900;">)</span><span style="color:#009900;">{</span>
	            <span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">startElement</span><span style="color:#009900;">(</span><span style="color:#000088;">$key</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	            write<span style="color:#009900;">(</span><span style="color:#000088;">$xml</span><span style="color:#339933;">,</span> <span style="color:#000088;">$value</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	            <span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">endElement</span><span style="color:#009900;">(</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	            <span style="color:#b1b100;">continue</span><span style="color:#339933;">;</span>
	        <span style="color:#009900;">}</span>

	        <span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">writeElement</span><span style="color:#009900;">(</span> <span style="color:#000088;">$key</span><span style="color:#339933;">,</span> <span style="color:#000088;">$value</span> <span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	    <span style="color:#009900;">}</span>
	<span style="color:#009900;">}</span>
	write<span style="color:#009900;">(</span><span style="color:#000088;">$xml</span><span style="color:#339933;">,</span> <span style="color:#000088;">$paramxml</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>

	<span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">endElement</span><span style="color:#009900;">(</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
	<span style="color:#b1b100;">return</span> <span style="color:#000088;">$xml</span><span style="color:#339933;">-&gt;</span><span style="color:#004000;">outputMemory</span><span style="color:#009900;">(</span><span style="color:#000000;font-weight:bold;">true</span><span style="color:#009900;">)</span><span style="color:#339933;">;</span>
<span style="color:#009900;">}</span>
<span style="color:#000000;font-weight:bold;">?&gt;</span></pre>
</td>
</tr>
</tbody>
</table>
</div>
<p><strong><em>Note:</em></strong><em> The PHP script is lacking and so is the XML schema it generates. Comments and suggestions are welcomed!</em></p>
<p>Before we look at the ActionScript code, let’s look at how the provider and contact data is being received.</p>
<ol>
<li>Includes the OpenInviter class (openinviter.php)</li>
<li>Instantiates an object of that class ($inviter)</li>
<li>Gets plugin list. Plugins are used synonymous with providers here. For example… Gmail, Hotmail, Yahoo are plugins.</li>
<li>If Flex sends in <em>action</em> parameter as <em>get_plugins</em>, convert plugin list (array by default) to XML and return to Flex. I had some issues returning the array. So it’s XML for now!</li>
<li>If Flex sends in <em>action </em>parameter as <em>get_contacts</em>, call the OpenInviter class method startPlugin passing in the provider. Meaning, connect to the provider (Gmail, Hotmail, Yahoo, etc ). Then, login with the username and password provided by Flex as parameters. And finally, convert contact list (array by default) to XML and return to Flex.</li>
<li><em>arrayToXMLContacts </em>and <em>arrayToXMLProviders </em>functions do what their names imply. Converts provider and contact arrays to XML.</li>
</ol>
<h3><strong>XML Schema</strong></h3>
<p>Sample Provider</p>
<div><span><sup><a title="WP-CodeBox HowTo?" href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank"><span style="color:#99cc00;">?</span></a></sup></span><span><a href=";">View Code</a> XML</span></div>
<div>
<table border="0" width="100%">
<tbody>
<tr>
<td>
<pre style="font-family:monospace;"><span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;root<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
  <span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;email<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
    <span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;name<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>Abv<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/name<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
    <span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;version<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>1.0.0<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/version<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
    <span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;description<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>Get the contacts from a Abv account<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/description<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
    <span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;base_version<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>1.6.5<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/base_version<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
    <span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;type<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>email<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/type<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
    <span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;check_url<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>http://www.abv.bg/<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/check_url<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
  <span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/email<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/root<span style="color:#000000;font-weight:bold;">&gt;</span></span></span></pre>
</td>
</tr>
</tbody>
</table>
</div>
<p>Sample Contact</p>
<div><span><sup><a title="WP-CodeBox HowTo?" href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank"><span style="color:#99cc00;">?</span></a></sup></span><span><a href=";">View Code</a> XML</span></div>
<div>
<table border="0" width="100%">
<tbody>
<tr>
<td>
<pre style="font-family:monospace;"><span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;root<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
  <span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;contact<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
    <span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;name<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>PersonName<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/name<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
    <span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;email<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>person@gmail.com<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/email<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
  <span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/contact<span style="color:#000000;font-weight:bold;">&gt;</span></span></span>
<span style="color:#009900;"><span style="color:#000000;font-weight:bold;">&lt;/root<span style="color:#000000;font-weight:bold;">&gt;</span></span></span></pre>
</td>
</tr>
</tbody>
</table>
</div>
<h3><strong>ActionScript</strong></h3>
<p><em> </em></p>
<div><span><sup><a title="WP-CodeBox HowTo?" href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank"><span style="color:#99cc00;">?</span></a></sup></span><span><a href=";">View Code</a> ACTIONSCRIPT</span></div>
<div style="display:none;">
<table border="0" width="100%">
<tbody>
<tr>
<td>
<pre style="font-family:monospace;"><span style="color:#0066cc;">import</span> mx.<span style="color:#006600;">utils</span>.<span style="color:#006600;">StringUtil</span>;

<span style="color:#808080;font-style:italic;">/** THIS NEEDS TO BE FILLED TO COMPONENT TO WORK **/</span>
<span style="color:#66cc66;">[</span>Bindable<span style="color:#66cc66;">]</span>
<span style="color:#0066cc;">private</span> <span style="color:#000000;font-weight:bold;">var</span> importerGatewayURL:<span style="color:#0066cc;">String</span> = <span style="color:#ff0000;">""</span>;

<span style="color:#66cc66;">[</span>Bindable<span style="color:#66cc66;">]</span>
<span style="color:#0066cc;">private</span> <span style="color:#000000;font-weight:bold;">var</span> xmlProviders:<span style="color:#0066cc;">XML</span>;

<span style="color:#66cc66;">[</span>Bindable<span style="color:#66cc66;">]</span>
<span style="color:#0066cc;">private</span> <span style="color:#000000;font-weight:bold;">var</span> xmlContacts:<span style="color:#0066cc;">XML</span>;

<span style="color:#0066cc;">private</span> <span style="color:#000000;font-weight:bold;">function</span> init<span style="color:#66cc66;">(</span><span style="color:#66cc66;">)</span>:<span style="color:#0066cc;">void</span>
<span style="color:#66cc66;">{</span>
	getProviders<span style="color:#66cc66;">(</span><span style="color:#66cc66;">)</span>;
<span style="color:#66cc66;">}</span>

<span style="color:#0066cc;">private</span> <span style="color:#000000;font-weight:bold;">function</span> getProviders<span style="color:#66cc66;">(</span><span style="color:#66cc66;">)</span>:<span style="color:#0066cc;">void</span>
<span style="color:#66cc66;">{</span>
	<span style="color:#000000;font-weight:bold;">var</span> param:<span style="color:#0066cc;">Object</span> = <span style="color:#000000;font-weight:bold;">new</span> <span style="color:#0066cc;">Object</span><span style="color:#66cc66;">(</span><span style="color:#66cc66;">)</span>;
	param.<span style="color:#006600;">action</span> = <span style="color:#ff0000;">"get_plugins"</span>;
	svc.<span style="color:#0066cc;">send</span><span style="color:#66cc66;">(</span> param <span style="color:#66cc66;">)</span>;
<span style="color:#66cc66;">}</span>

<span style="color:#0066cc;">private</span> <span style="color:#000000;font-weight:bold;">function</span> getContacts<span style="color:#66cc66;">(</span><span style="color:#66cc66;">)</span>:<span style="color:#0066cc;">void</span>
<span style="color:#66cc66;">{</span>
	<span style="color:#000000;font-weight:bold;">var</span> providerXMLString:<span style="color:#0066cc;">String</span> = xmlProviders.<span style="color:#006600;">email</span>.<span style="color:#006600;">children</span><span style="color:#66cc66;">(</span><span style="color:#66cc66;">)</span><span style="color:#66cc66;">[</span> cmbProvider.<span style="color:#006600;">selectedIndex</span> <span style="color:#66cc66;">]</span>;
	<span style="color:#000000;font-weight:bold;">var</span> xmlSplitArray:<span style="color:#0066cc;">Array</span> = providerXMLString.<span style="color:#0066cc;">split</span><span style="color:#66cc66;">(</span><span style="color:#ff0000;">"&gt;"</span><span style="color:#66cc66;">)</span>;
	<span style="color:#000000;font-weight:bold;">var</span> providerString:<span style="color:#0066cc;">String</span> = xmlSplitArray<span style="color:#66cc66;">[</span><span style="color:#cc66cc;">0</span><span style="color:#66cc66;">]</span>.<span style="color:#0066cc;">toString</span><span style="color:#66cc66;">(</span><span style="color:#66cc66;">)</span>.<span style="color:#0066cc;">substr</span><span style="color:#66cc66;">(</span><span style="color:#cc66cc;">1</span><span style="color:#66cc66;">)</span>;

	<span style="color:#000000;font-weight:bold;">var</span> param:<span style="color:#0066cc;">Object</span> = <span style="color:#000000;font-weight:bold;">new</span> <span style="color:#0066cc;">Object</span><span style="color:#66cc66;">(</span><span style="color:#66cc66;">)</span>;
	param.<span style="color:#006600;">action</span> = <span style="color:#ff0000;">"get_contacts"</span>;
	param.<span style="color:#006600;">user_username</span> = txtEmail.<span style="color:#0066cc;">text</span>;
	param.<span style="color:#006600;">user_userpwd</span> = txtPassword.<span style="color:#0066cc;">text</span>;
	param.<span style="color:#006600;">provider</span> = StringUtil.<span style="color:#006600;">trim</span><span style="color:#66cc66;">(</span> providerString <span style="color:#66cc66;">)</span>;

	svc.<span style="color:#0066cc;">send</span><span style="color:#66cc66;">(</span> param <span style="color:#66cc66;">)</span>;
<span style="color:#66cc66;">}</span>

<span style="color:#0066cc;">private</span> <span style="color:#000000;font-weight:bold;">function</span> emailInput_handler<span style="color:#66cc66;">(</span> <span style="color:#0066cc;">e</span>:Event <span style="color:#66cc66;">)</span>:<span style="color:#0066cc;">void</span>
<span style="color:#66cc66;">{</span>
	<span style="color:#000000;font-weight:bold;">var</span> arrEmailParts:<span style="color:#0066cc;">Array</span> = txtEmail.<span style="color:#0066cc;">text</span>.<span style="color:#0066cc;">split</span><span style="color:#66cc66;">(</span><span style="color:#ff0000;">"@"</span><span style="color:#66cc66;">)</span>;
	<span style="color:#b1b100;">if</span> <span style="color:#66cc66;">(</span> arrEmailParts.<span style="color:#0066cc;">length</span> <span style="color:#66cc66;">&lt;</span>= <span style="color:#cc66cc;">1</span> <span style="color:#66cc66;">)</span>
	<span style="color:#66cc66;">{</span>
		<span style="color:#b1b100;">return</span>
	<span style="color:#66cc66;">}</span>				

	<span style="color:#000000;font-weight:bold;">var</span> strProvider:<span style="color:#0066cc;">String</span> = arrEmailParts<span style="color:#66cc66;">[</span><span style="color:#cc66cc;">1</span><span style="color:#66cc66;">]</span>;
	<span style="color:#b1b100;">for</span> <span style="color:#66cc66;">(</span> <span style="color:#000000;font-weight:bold;">var</span> i:<span style="color:#0066cc;">int</span> = <span style="color:#cc66cc;">0</span>; i <span style="color:#66cc66;">&lt;</span> cmbProvider.<span style="color:#006600;">dataProvider</span>.<span style="color:#0066cc;">length</span>; i++ <span style="color:#66cc66;">)</span>
	<span style="color:#66cc66;">{</span>
		<span style="color:#b1b100;">if</span> <span style="color:#66cc66;">(</span> cmbProvider.<span style="color:#006600;">dataProvider</span><span style="color:#66cc66;">[</span>i<span style="color:#66cc66;">]</span>.<span style="color:#0066cc;">toString</span><span style="color:#66cc66;">(</span><span style="color:#66cc66;">)</span>.<span style="color:#0066cc;">substr</span><span style="color:#66cc66;">(</span> <span style="color:#cc66cc;">0</span>, strProvider.<span style="color:#0066cc;">length</span> <span style="color:#66cc66;">)</span>.<span style="color:#0066cc;">toLowerCase</span><span style="color:#66cc66;">(</span><span style="color:#66cc66;">)</span> == strProvider.<span style="color:#0066cc;">toLowerCase</span><span style="color:#66cc66;">(</span><span style="color:#66cc66;">)</span><span style="color:#66cc66;">)</span>
		<span style="color:#66cc66;">{</span>
			cmbProvider.<span style="color:#006600;">selectedIndex</span> = i;
			<span style="color:#b1b100;">break</span>;
		<span style="color:#66cc66;">}</span>
	<span style="color:#66cc66;">}</span>
<span style="color:#66cc66;">}</span>

<span style="color:#0066cc;">private</span> <span style="color:#000000;font-weight:bold;">function</span> sumbitClick_handler<span style="color:#66cc66;">(</span> <span style="color:#0066cc;">e</span>:Event <span style="color:#66cc66;">)</span>:<span style="color:#0066cc;">void</span>
<span style="color:#66cc66;">{</span>
	getContacts<span style="color:#66cc66;">(</span><span style="color:#66cc66;">)</span>;
<span style="color:#66cc66;">}</span>

<span style="color:#0066cc;">private</span> <span style="color:#000000;font-weight:bold;">var</span> resultIsProviderList:<span style="color:#0066cc;">Boolean</span> = <span style="color:#000000;font-weight:bold;">true</span>;
<span style="color:#0066cc;">private</span> <span style="color:#000000;font-weight:bold;">function</span> svcResult_handler<span style="color:#66cc66;">(</span> <span style="color:#0066cc;">e</span>:Event <span style="color:#66cc66;">)</span>:<span style="color:#0066cc;">void</span>
<span style="color:#66cc66;">{</span>
	<span style="color:#b1b100;">if</span> <span style="color:#66cc66;">(</span> resultIsProviderList <span style="color:#66cc66;">)</span>
	<span style="color:#66cc66;">{</span>
		xmlProviders = <span style="color:#0066cc;">XML</span><span style="color:#66cc66;">(</span> svc.<span style="color:#006600;">lastResult</span> <span style="color:#66cc66;">)</span>;
		resultIsProviderList = <span style="color:#000000;font-weight:bold;">false</span>;
	<span style="color:#66cc66;">}</span>
	<span style="color:#b1b100;">else</span>
	<span style="color:#66cc66;">{</span>
		xmlContacts = <span style="color:#0066cc;">XML</span><span style="color:#66cc66;">(</span> svc.<span style="color:#006600;">lastResult</span> <span style="color:#66cc66;">)</span>;
	<span style="color:#66cc66;">}</span>
<span style="color:#66cc66;">}</span></pre>
</td>
</tr>
</tbody>
</table>
</div>
<ul>
<li><em>importerGatewayURL </em>should point to the <em>FlexInviter.php</em> file</li>
<li><em>init() </em>called on component’s <em>creationComplete</em> event</li>
<li><em>getContacts() - providerXMLString, xmlSplitArray </em>and<em> providerString</em> basically drill down to the name of the selected provider, so it can be sent to the php code alongwith the username and password.</li>
<li><em>emailInput_handler()</em> &#8211; this function basically tries to match the domain of the email address to the provider. So, if you type your email address as myemailaddress@gmail.com, this function will switch your provider to Gmail.</li>
</ul>
<h2>Known Bugs</h2>
<ol>
<li>Contact <em>name</em> and <em>email</em> may be switched depending on the provider</li>
<li>Provider detector is basic. Doesn’t work with all providers</li>
<li>No fault handler</li>
</ol>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexnflex.wordpress.com/906/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexnflex.wordpress.com/906/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexnflex.wordpress.com/906/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexnflex.wordpress.com/906/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexnflex.wordpress.com/906/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexnflex.wordpress.com/906/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexnflex.wordpress.com/906/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexnflex.wordpress.com/906/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexnflex.wordpress.com/906/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexnflex.wordpress.com/906/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexnflex.wordpress.com/906/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexnflex.wordpress.com/906/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexnflex.wordpress.com/906/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexnflex.wordpress.com/906/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=906&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexnflex.wordpress.com/2009/07/21/importing-contacts-from-mail-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9d56bf91cb5c254cda2c9842d09e16aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mjcprasad2000</media:title>
		</media:content>
	</item>
		<item>
		<title>Awesome 3D Text with VectorVision</title>
		<link>http://flexnflex.wordpress.com/2009/07/20/awesome-3d-text-with-vectorvision/</link>
		<comments>http://flexnflex.wordpress.com/2009/07/20/awesome-3d-text-with-vectorvision/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 07:30:17 +0000</pubDate>
		<dc:creator>mjcprasad2000</dc:creator>
				<category><![CDATA[ActionScript]]></category>

		<guid isPermaLink="false">http://flexnflex.wordpress.com/?p=904</guid>
		<description><![CDATA[I love 3D in Flash, but till now I’d never been very happy with the quality of text rendering in my Papervision3D projects. Papervision is a bitmap based 3D engine and because of that not very good at rendering text. Yesterday, I found VectorVision, which is an extension of Paperviosn3D that enables rendering vectors inside [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=904&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I love 3D in Flash, but till now I’d never been very happy with the quality of text rendering in my <a href="http://code.google.com/p/papervision3d/">Papervision3D</a> projects. Papervision is a bitmap based 3D engine and because of that not very good at rendering text.</p>
<p>Yesterday, I found <a href="http://code.google.com/p/vectorvision/">VectorVision</a>, which is an extension of Paperviosn3D that enables rendering vectors inside of Papervision3D. The authors <a href="http://blog.barcinski-jeanjean.com/">Mark Barcinski &amp; Adrien Jeanjean</a>, have ported some of the work Mathieu Badimon did for his <a href="http://five3d.mathieu-badimon.com/">vector based 3D engine, Five3D</a>, to enable vector fonts inside of Papervision. And to top that they added support for <a href="http://www.barcinski-jeanjean.com/entries/vectorvision/SvgExample.html">rendering any SVG in Papervision</a> .. super cool !!</p>
<p>Here’s a <a href="http://experiments.mrinalwadhwa.com/3D/VectorVision_3DText_Example/">quick example</a> I cooked up, notice the crisp font ..</p>
<p><a href="http://experiments.mrinalwadhwa.com/3D/VectorVision_3DText_Example/"><img title="View 3D Text Example" src="http://weblog.mrinalwadhwa.com/wp-content/uploads/2008/09/3dtext.png" alt="" width="100%" /></a></p>
<blockquote>
<ul>
<li><a href="http://experiments.mrinalwadhwa.com/3D/VectorVision_3DText_Example/">View Example</a></li>
<li><a href="http://experiments.mrinalwadhwa.com/3D/VectorVision_3DText_Example/srcview/index.html">View Source of Example</a></li>
<li><a href="http://code.google.com/p/vectorvision/">Check out VectorVision</a></li>
</ul>
</blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexnflex.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexnflex.wordpress.com/904/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexnflex.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexnflex.wordpress.com/904/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexnflex.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexnflex.wordpress.com/904/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexnflex.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexnflex.wordpress.com/904/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexnflex.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexnflex.wordpress.com/904/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexnflex.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexnflex.wordpress.com/904/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexnflex.wordpress.com/904/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexnflex.wordpress.com/904/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=904&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexnflex.wordpress.com/2009/07/20/awesome-3d-text-with-vectorvision/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9d56bf91cb5c254cda2c9842d09e16aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mjcprasad2000</media:title>
		</media:content>

		<media:content url="http://weblog.mrinalwadhwa.com/wp-content/uploads/2008/09/3dtext.png" medium="image">
			<media:title type="html">View 3D Text Example</media:title>
		</media:content>
	</item>
		<item>
		<title>Compile Flex applications using ANT</title>
		<link>http://flexnflex.wordpress.com/2009/07/20/compile-flex-applications-using-ant/</link>
		<comments>http://flexnflex.wordpress.com/2009/07/20/compile-flex-applications-using-ant/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 05:43:06 +0000</pubDate>
		<dc:creator>mjcprasad2000</dc:creator>
				<category><![CDATA[Flex - Ant]]></category>

		<guid isPermaLink="false">http://flexnflex.wordpress.com/2009/07/20/compile-flex-applications-using-ant/</guid>
		<description><![CDATA[A quick setup and example of how to compile a Flex application using ANT. This example will show the basics of how to run the ANT script to compile your flex application, I will walk through more complex examples in later posts but to get started look through the script and properties files below or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=902&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A quick setup and example of how to compile a Flex application using <span>ANT</span>. This example will show the basics of how to run the <span>ANT</span> script to compile your flex application, I will walk through more complex examples in later posts but to get started look through the script and properties files below or download the attached project files at the bottom of this post.</p>
<p><a href="http://ant.apache.org/"><span>ANT</span></a> is a very powerful tool that, once you get into using it, will make your development, deployment and automation a lot simpler as well a lot less prone to error. If you are new to <a href="http://ant.apache.org/"><span>ANT</span></a> there are a lot of resources out on the web that will help you get up to speed. This post and others to follow will focus specifically on the uses of <span>ANT</span> with Flex in a <span>CI</span> build process.</p>
<p><span> </span></p>
<p><strong>Ant Script</strong></p>
<p>&lt;?xml version=&#8221;1.0&#8243; encoding=&#8221;utf-8&#8243;?&gt;<br />
&lt;project name=&#8221;FlexANTBuildSample&#8221; default=&#8221;build&#8221; basedir=&#8221;.&#8221;&gt;</p>
<p>&lt;!&#8211;<br />
DEFINE import our build properties file and define our tasks<br />
&#8211;&gt;<br />
&lt;property file=&#8221;./build.properties&#8221; /&gt;</p>
<p>&lt;path id=&#8221;project.classpath&#8221;&gt;<br />
&lt;fileset dir=&#8221;${tools.dir}&#8221;&gt;<br />
&lt;include name=&#8221;**/*.jar&#8221;/&gt;<br />
&lt;/fileset&gt;<br />
&lt;/path&gt;</p>
<p>&lt;taskdef resource=&#8221;flexTasks.tasks&#8221; classpath=&#8221;${flexTasks.jar}&#8221; /&gt;<br />
&lt;taskdef resource=&#8221;com/adobe/ac/ant/tasks/tasks.properties&#8221; classpath=&#8221;${flexAntTasks.jar}&#8221;/&gt;<br />
&lt;taskdef resource=&#8221;net/sf/antcontrib/antcontrib.properties&#8221; classpathref=&#8221;project.classpath&#8221;/&gt;</p>
<p>&lt;!&#8211;<br />
TARGETS<br />
&#8211;&gt;<br />
&lt;target name=&#8221;build&#8221; depends=&#8221;init, clean, makeWrapper, compile&#8221;/&gt;</p>
<p>&lt;!&#8211;<br />
INITIALIZE<br />
&#8211;&gt;<br />
&lt;target name=&#8221;init&#8221; description=&#8221;Initializes the build&#8221;&gt;<br />
&lt;condition property=&#8221;environment.display&#8221; value=&#8221;:1&#8243;&gt;<br />
&lt;os name=&#8221;Linux&#8221;/&gt;<br />
&lt;/condition&gt;<br />
&lt;tstamp/&gt;<br />
&lt;echo message=&#8221;=============================================&#8221;/&gt;<br />
&lt;echo message=&#8221;${project.name}-${project.version} [${TODAY}]&#8220;/&gt;<br />
&lt;echo message=&#8221;Copyright (c) ${project.year} ${project.owner}&#8221;/&gt;<br />
&lt;echo message=&#8221;OS : ${os.name}&#8221; /&gt;<br />
&lt;echo message=&#8221;Author: ${author}&#8221; /&gt;<br />
&lt;echo message=&#8221;==============================================&#8221;/&gt;<br />
&lt;/target&gt;</p>
<p>&lt;!&#8211;<br />
CLEAN the existing output folder and files and then re-generate the output folder<br />
&#8211;&gt;<br />
&lt;target name=&#8221;clean&#8221; description=&#8221;deletes and recreates the metadata destination directory&#8221;&gt;<br />
&lt;delete verbose=&#8221;${verbose}&#8221; dir=&#8221;${deploy.dir}&#8221;/&gt;<br />
&lt;mkdir dir=&#8221;${deploy.dir}&#8221;/&gt;<br />
&lt;echo message=&#8221;Deploy directory created&#8221; /&gt;<br />
&lt;/target&gt;</p>
<p>&lt;!&#8211;<br />
COMPILE<br />
&#8211;&gt;<br />
&lt;target name=&#8221;compile&#8221; description=&#8221;compiles the Main app&#8221; &gt;<br />
&lt;mxmlc context-root=&#8221;main&#8221;<br />
file=&#8221;${mainApp.src}&#8221;<br />
output=&#8221;${mainApp.swf}&#8221;<br />
actionscript-file-encoding=&#8221;${encoding}&#8221;<br />
keep-generated-actionscript=&#8221;false&#8221;<br />
incremental=&#8221;false&#8221;<br />
locale=&#8221;${locale}&#8221;&gt;</p>
<p>&lt;load-config filename=&#8221;${FLEX_HOME}/frameworks/flex-config.xml&#8221;/&gt;</p>
<p>&lt;compiler.source-path path-element=&#8221;${FLEX_HOME}/frameworks&#8221;/&gt;<br />
&lt;compiler.source-path path-element=&#8221;${srcpath.dir}&#8221;/&gt;<br />
&lt;compiler.library-path dir=&#8221;${FLEX_HOME}/frameworks&#8221; append=&#8221;true&#8221;&gt;<br />
&lt;include name=&#8221;libs&#8221; /&gt;<br />
&lt;/compiler.library-path&gt;<br />
&lt;compiler.library-path dir=&#8221;${basedir}&#8221; append=&#8221;true&#8221;&gt;<br />
&lt;include name=&#8221;libs&#8221; /&gt;<br />
&lt;/compiler.library-path&gt;<br />
&lt;/mxmlc&gt;<br />
&lt;/target&gt;</p>
<p>&lt;!&#8211;<br />
MAKE WRAPPER<br />
&#8211;&gt;<br />
&lt;target name=&#8221;copyTemplates&#8221;&gt;<br />
&lt;copy todir=&#8221;${deploy.dir}&#8221;&gt;<br />
&lt;fileset dir=&#8221;${htmltemplate.dir}&#8221;&gt;<br />
&lt;exclude name=&#8221;**/index.template.html&#8221; /&gt;<br />
&lt;/fileset&gt;<br />
&lt;/copy&gt;<br />
&lt;/target&gt;</p>
<p>&lt;target name=&#8221;makeWrapper&#8221; description=&#8221;copies index.html wrapper and needed files from html-template directory&#8221; depends=&#8221;clean, copyTemplates&#8221;&gt;<br />
&lt;property name=&#8221;pageTitle&#8221; value=&#8221;${mainApp.name}&#8221;/&gt;<br />
&lt;copy file=&#8221;${htmltemplate.dir}/index.template.html&#8221; tofile=&#8221;${deploy.dir}/index.html&#8221; /&gt;<br />
&lt;replace file=&#8221;${deploy.dir}/index.html&#8221; token=&#8221;$${title}&#8221; value=&#8221;${pageTitle}&#8221;/&gt;<br />
&lt;replace file=&#8221;${deploy.dir}/index.html&#8221; token=&#8221;$${swf}&#8221; value=&#8221;${mainApp.name}&#8221;/&gt;<br />
&lt;replace file=&#8221;${deploy.dir}/index.html&#8221; token=&#8221;$${width}&#8221; value=&#8221;100%&#8221;/&gt;<br />
&lt;replace file=&#8221;${deploy.dir}/index.html&#8221; token=&#8221;$${height}&#8221; value=&#8221;100%&#8221;/&gt;<br />
&lt;replace file=&#8221;${deploy.dir}/index.html&#8221; token=&#8221;$${bgcolor}&#8221; value=&#8221;${mainApp.bgColor}&#8221;/&gt;<br />
&lt;replace file=&#8221;${deploy.dir}/index.html&#8221; token=&#8221;$${application}&#8221; value=&#8221;${mainApp.name}&#8221;/&gt;<br />
&lt;replace file=&#8221;${deploy.dir}/index.html&#8221; token=&#8221;$${version_major}&#8221; value=&#8221;9&#8243;/&gt;<br />
&lt;replace file=&#8221;${deploy.dir}/index.html&#8221; token=&#8221;$${version_minor}&#8221; value=&#8221;0&#8243;/&gt;<br />
&lt;replace file=&#8221;${deploy.dir}/index.html&#8221; token=&#8221;$${version_revision}&#8221; value=&#8221;28&#8243;/&gt;<br />
&lt;/target&gt;</p>
<p>&lt;/project&gt;</p>
<p>Build.properties</p>
<p>######################################<br />
## Author information<br />
######################################<br />
author            =    Kenneth Lejnieks<br />
project.owner        =    Lejnieks Consulting<br />
project.owner.url    =    http://www.lejnieks.com<br />
project.fullname        =    Build CI POC 1<br />
project.version        =    1.0.0 alpha  # major.minor[.revision[.build]]<br />
project.name        =    POC Sample 1<br />
project.year        =    2009<br />
application.name    =    POC</p>
<p>######################################<br />
## Path information<br />
######################################<br />
FLEX_HOME        =    sdks/flex-3.2-sdk</p>
<p>htmltemplate.dir    =    ../html-template<br />
srcpath.dir        =    ../src<br />
libs.dir          =    ../libs<br />
tools.dir        =    tools</p>
<p>deploy.dir        =    ../deploy</p>
<p>######################################<br />
## Build arguments<br />
######################################<br />
verbose            =    true</p>
<p>######################################<br />
## Application information<br />
######################################<br />
mainApp.name        =    FlexCISample1<br />
mainApp.src        =    ${srcpath.dir}/${mainApp.name}.mxml<br />
mainApp.swf        =    ${deploy.dir}/${mainApp.name}.swf<br />
mainApp.bgColor        =    #f6f6f6<br />
locale            =    en_US<br />
encoding        =    UTF-8</p>
<p>######################################<br />
## Build Tools<br />
######################################<br />
flexTasks.jar        =    ${FLEX_HOME}/ant/lib/flexTasks.jar<br />
flexAntTasks.jar    =    ${tools.dir}/FlexAntTasks.jar<br />
ant-contrib.jar        =    ${tools.dir}/ant-contrib.jar</p>
<p>Project source files including necessary jars can be found <a href="http://projects.lejnieks.com/Flex%20CI%20Sample.zip">here</a></p>
<p>&lt;!&#8211; 	   &#8211;&gt;posted by klejnieks</p>
<div><strong>Related Posts:</strong></p>
<li><a href="http://lejnieks.com/2009/01/compile-asdocs-with-ant/">Compile ASDocs with ANT</a></li>
<li><a href="http://lejnieks.com/2009/04/using-resource-bundles-in-mxml-for-simple-strings/">Using Resource Bundles in MXML for simple strings</a></li>
<li><a href="http://lejnieks.com/2009/04/skinning-checkbox-with-error-state/">Skinning Checkbox with Error State</a></li>
<li><a href="http://lejnieks.com/2009/04/skinning-combobox-with-error-state/">Skinning ComboBox with Error State</a></li>
<li><a href="http://lejnieks.com/2008/11/overriding-menu-to-include-stage-height-bounds/">Overriding Menu to include stage height bounds</a></li>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexnflex.wordpress.com/902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexnflex.wordpress.com/902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexnflex.wordpress.com/902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexnflex.wordpress.com/902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexnflex.wordpress.com/902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexnflex.wordpress.com/902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexnflex.wordpress.com/902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexnflex.wordpress.com/902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexnflex.wordpress.com/902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexnflex.wordpress.com/902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexnflex.wordpress.com/902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexnflex.wordpress.com/902/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexnflex.wordpress.com/902/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexnflex.wordpress.com/902/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=902&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexnflex.wordpress.com/2009/07/20/compile-flex-applications-using-ant/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9d56bf91cb5c254cda2c9842d09e16aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mjcprasad2000</media:title>
		</media:content>
	</item>
		<item>
		<title>Step by Step process to start with TOMCAT</title>
		<link>http://flexnflex.wordpress.com/2009/07/17/step-by-step-process-to-start-with-tomcat/</link>
		<comments>http://flexnflex.wordpress.com/2009/07/17/step-by-step-process-to-start-with-tomcat/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 07:20:45 +0000</pubDate>
		<dc:creator>mjcprasad2000</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Tomcat]]></category>

		<guid isPermaLink="false">http://flexnflex.wordpress.com/?p=898</guid>
		<description><![CDATA[first u need to install java into your system.. then u can install tomcat. when installing tomcat it will ask for java jre path which u r installed in u r system.  By default it will take.. at the end it will ask user name and pass word.u can type it as admin admin.give port [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=898&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>first u need to install java into your system..</p>
<p>then u can install tomcat. when installing tomcat it will ask for java<br />
jre path which u r installed in u r system.  By default it will take..<br />
at the end it will ask user name and pass word.u can type it as admin<br />
admin.give port number as 8080 in tomcat .</p>
<p>and you can post your application into<br />
in tomcat you fine web apps directory like this C:Program Files\Apache<br />
software foundation\tomcat 5.5\webapps</p>
<p>after installing java u need set class path and path .<br />
for class path</p>
<p>Goto My computer &#8212;&gt;right click on it u will fine properties&#8212;<br />
&gt;advanced tab &#8212;&gt;Environment Variables&#8211;&gt; then u will find User<br />
variables &#8211;&gt;<br />
click on New Button</p>
<p>variable name:PATH<br />
variable value:C:\Program Files\Java\jdk1.5.0_13\bin<br />
then click on OK.<br />
then click on NEW again</p>
<p>variable name:CLASSPATH<br />
variable value: .;C:\Program Files\Java\jdk1.5.0_13\jre\</p>
<div id=":1sd">lib\rt.jar(put<br />
dot and semicolon first then write the path)</p>
<p>then click on OK.<br />
then click on NEW again</p>
<p>variable name:JAVA_HOME<br />
variable value:C:\Program Files\Java\jdk1.5.0_13</p>
<p>i hope this will ok for you .any issues let me know..</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/flexnflex.wordpress.com/898/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/flexnflex.wordpress.com/898/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/flexnflex.wordpress.com/898/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/flexnflex.wordpress.com/898/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/flexnflex.wordpress.com/898/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/flexnflex.wordpress.com/898/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/flexnflex.wordpress.com/898/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/flexnflex.wordpress.com/898/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/flexnflex.wordpress.com/898/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/flexnflex.wordpress.com/898/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/flexnflex.wordpress.com/898/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/flexnflex.wordpress.com/898/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/flexnflex.wordpress.com/898/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/flexnflex.wordpress.com/898/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=flexnflex.wordpress.com&amp;blog=5939654&amp;post=898&amp;subd=flexnflex&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://flexnflex.wordpress.com/2009/07/17/step-by-step-process-to-start-with-tomcat/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/9d56bf91cb5c254cda2c9842d09e16aa?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">mjcprasad2000</media:title>
		</media:content>
	</item>
	</channel>
</rss>
