<?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>Sri on Flex</title>
	<atom:link href="http://iamsri.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://iamsri.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Wed, 20 Jan 2010 16:37:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='iamsri.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/eb1607ed474cab0c56e08e01c67ae2e4?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Sri on Flex</title>
		<link>http://iamsri.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://iamsri.wordpress.com/osd.xml" title="Sri on Flex" />
	<atom:link rel='hub' href='http://iamsri.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Flex tip : ObjectUtil.copy() throws exception</title>
		<link>http://iamsri.wordpress.com/2010/01/20/flex-tip-objectutil-copy-throws-exception/</link>
		<comments>http://iamsri.wordpress.com/2010/01/20/flex-tip-objectutil-copy-throws-exception/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 16:04:48 +0000</pubDate>
		<dc:creator>iamsri</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iamsri.wordpress.com/?p=52</guid>
		<description><![CDATA[In ActionScript, the simpliest way to create a new instance of the Object is, by using ObjectUtil.copy(). This function serialises the entire object into an array of bytes and then deserialises it back into a completely new instance of that &#8230; <a href="http://iamsri.wordpress.com/2010/01/20/flex-tip-objectutil-copy-throws-exception/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=52&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In ActionScript, the simpliest way to create a new instance of the Object is, by using ObjectUtil.copy().</p>
<p>This function serialises the entire object into an array of bytes and then deserialises it back into a completely new instance of that class.</p>
<p>But while deserialing it must have &#8216;type&#8217; information of the Object, otherwise  the created object might have all of the properties of a class instance but it will not be a true class instance.</p>
<p>Here is the way to add Type information</p>
<ul>
<li>Using the <a href="http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/serialize_data_3.html">[RemoteClass] metadata</a> tag.</li>
<li>Using the <a href="http://livedocs.adobe.com/flex/201/langref/flash/net/package.html#registerClassAlias()">registerClassAlias()</a> method.</li>
</ul>
<p><strong></strong> </p>
<p><strong>Way to use [RemoteClass]</strong></p>
<p>package</p>
<p>{</p>
<p>    [RemoteClass]</p>
<p>    public class Example</p>
<p>    {</p>
<p>        public function Example()</p>
<p>        {</p>
<p>         }</p>
<p>    }</p>
<p>}</p>
<p>var ex:Example= new Example();</p>
<p>var o:Object = ObjectUtil.copy(example);</p>
<p><strong>Way to use resisterClassAlias()</strong></p>
<p><strong> </strong>registerClassAlias( &#8221;Example&#8221;, Example ); </p>
<p>var copy:Example = Example( ObjectUtil.copy( example ) );</p>
<p>For more information have a look at this blog</p>
<p><a href="http://www.darronschall.com/weblog/2007/08/on-transient-objectutilcopy-and-casting.cfm">http://www.darronschall.com/weblog/2007/08/on-transient-objectutilcopy-and-casting.cfm</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamsri.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamsri.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamsri.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamsri.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamsri.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamsri.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamsri.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamsri.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamsri.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamsri.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamsri.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamsri.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamsri.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamsri.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=52&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamsri.wordpress.com/2010/01/20/flex-tip-objectutil-copy-throws-exception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/485a7b32ea10f25b6c13444a77e90e8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dari</media:title>
		</media:content>
	</item>
		<item>
		<title>Tip : Server.Processing.DuplicateSessionDetected</title>
		<link>http://iamsri.wordpress.com/2009/11/09/flex-tip-server-processing-duplicatesessiondetected/</link>
		<comments>http://iamsri.wordpress.com/2009/11/09/flex-tip-server-processing-duplicatesessiondetected/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 19:23:34 +0000</pubDate>
		<dc:creator>iamsri</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iamsri.wordpress.com/?p=48</guid>
		<description><![CDATA[Earlier i faced one issue with BlazeDS 3.2.0 Issue : Fault Code : Server.Processing.DuplicateSessionDetected. Error Message : Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection &#8230; <a href="http://iamsri.wordpress.com/2009/11/09/flex-tip-server-processing-duplicatesessiondetected/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=48&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Earlier i faced one issue with BlazeDS 3.2.0</p>
<p><em>Issue :</em></p>
<p>Fault Code : Server.Processing.DuplicateSessionDetected.</p>
<p>Error Message : Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly.</p>
<p><em>Reproducing steps :</em></p>
<p>1. Open your application in two different tabs (basically these two tabs will share same session) and then close one tab.</p>
<p>2. Do any action (related to server interaction ) in other tab..then u can see the exception.</p>
<p>Solution :</p>
<p>Actually you find so many solutions for this problem just like writing custom adaptor etc.</p>
<p>But, my suggession if you are not really concern with BlazeDS version, roll back to BlazeDS 3.0.0.544. <img src='http://s0.wp.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamsri.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamsri.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamsri.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamsri.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamsri.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamsri.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamsri.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamsri.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamsri.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamsri.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamsri.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamsri.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamsri.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamsri.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=48&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamsri.wordpress.com/2009/11/09/flex-tip-server-processing-duplicatesessiondetected/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/485a7b32ea10f25b6c13444a77e90e8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dari</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex tip : About EasyMVC Architecture, Flex Performance</title>
		<link>http://iamsri.wordpress.com/2009/10/27/flex-tip-about-easymvc-architecture-performance/</link>
		<comments>http://iamsri.wordpress.com/2009/10/27/flex-tip-about-easymvc-architecture-performance/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 22:48:12 +0000</pubDate>
		<dc:creator>iamsri</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iamsri.wordpress.com/?p=42</guid>
		<description><![CDATA[Hi Guys, Here i have some links for explaining EasyMVC and Flex Performance compare to other technologies Easy MVC (Basic framework behind Cairngorm) Flex Performance compare to other technologies.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=42&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi Guys, Here i have some links for explaining EasyMVC and Flex Performance compare to other technologies</p>
<p><a href="https://admin.adobe.acrobat.com/_a227210/p13859376/?launcher=false&amp;fcsContent=true&amp;pbMode=normal">Easy MVC (Basic framework behind Cairngorm)</a><a href="http://www.jamesward.com/census/"><br />
Flex Performance compare to other technologies.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamsri.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamsri.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamsri.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamsri.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamsri.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamsri.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamsri.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamsri.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamsri.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamsri.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamsri.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamsri.wordpress.com/42/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamsri.wordpress.com/42/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamsri.wordpress.com/42/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=42&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamsri.wordpress.com/2009/10/27/flex-tip-about-easymvc-architecture-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/485a7b32ea10f25b6c13444a77e90e8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dari</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex Modules</title>
		<link>http://iamsri.wordpress.com/2009/10/19/flex-modules/</link>
		<comments>http://iamsri.wordpress.com/2009/10/19/flex-modules/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 20:21:36 +0000</pubDate>
		<dc:creator>iamsri</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iamsri.wordpress.com/?p=36</guid>
		<description><![CDATA[Flex modules are dynamically loadable and un-loadable SWF&#8217;s at runtime. By using Modular application architecture you can split your application in to pieces (SWF&#8217;s), and you can load particular piece (SWF) dynamically at runtime. This type of architecture increases start-up &#8230; <a href="http://iamsri.wordpress.com/2009/10/19/flex-modules/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=36&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Flex modules are dynamically loadable and un-loadable SWF&#8217;s at runtime.</p>
<p>By using Modular application architecture you can split your application in to pieces (SWF&#8217;s),  and you can load particular piece (SWF) dynamically at runtime.</p>
<p>This type of architecture increases start-up performance.</p>
<p>Note: Modules can&#8217;t run it self just like application.</p>
<p><em><strong>Important Classes in Module api :</strong></em></p>
<p><em>1. Module -&gt; Base class for MXML based modules</em></p>
<p><em>2.ModuleBase -&gt; Base class for Action Script based modules</em></p>
<p><em>3.ModuleManager -&gt; Singleton, centrally manages dynamically loaded Modules (ModuleManager provides a low level api for handling modules than ModuleLoader class)</em></p>
<p><em>4.ModuleLoader -&gt; Loads modules dynamically at run-time.</em></p>
<p><em>5.IModuleInfo -&gt;Interface,  A handle for module, provides information such as url, loaded state etc.</em></p>
<p><em>6.ModuleEvent -&gt; Will dispatch events during module lifecycle.</em> <em><strong> </strong></em></p>
<p><em><strong>Creating Modules with MXML and ActionScript :</strong></em> <em><strong> </strong></em><em></em></p>
<p><em>MXML:</em></p>
<blockquote><p><em><span style="color:#3366ff;">&lt;mx:Module xmlns:mx=&#8221;</span><a href="http://www.adobe.com/2006/mxml"><span style="color:#3366ff;">http://www.adobe.com/2006/mxml</span></a><span style="color:#3366ff;">&#8221; width=&#8221;100%&#8221;  height=&#8221;100%&#8221;</span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;">&#8230;&#8230;&#8230;.</span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;">&lt;/mx:Module&gt;</span></em></p></blockquote>
<p><em>Action Script:</em></p>
<blockquote><p><em><span style="color:#3366ff;">import mx.modules.ModuleBase;</span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;">public class SampleModule extends ModuleBase {</span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;">&#8230;</span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;">}</span></em></p>
<p align="left">If your module does not include any framework code, you can create a class that extend the ModuleBase class. If you use the ModuleBase class, your module will typically be smaller than if you create a module that is based on the Module class because it does not have any framework class dependencies.</p>
</blockquote>
<p><em><strong> Loading Modules :</strong></em> <em>Both ModuleManager, ModuleLoader can be used to load the modules</em></p>
<p><em>ModuleManager :</em></p>
<p><em>ModuleManager is a singleton class, primarily used via static method &#8216;getModule()&#8217;. The &#8216;getModule()&#8217; method will accepts a url argument and returns an IModuleInfo instance.</em></p>
<blockquote><p><span style="color:#3366ff;"> </span><span style="color:#3366ff;"><em>var moduleInfo:IModuleInfo = ModuleManager.getModule( &#8220;SampleModule.swf&#8221; ); </em></span></p></blockquote>
<blockquote><p><span style="color:#3366ff;"><em>moduleInfo.addEventListener( ModuleEvent.READY, onModuleReady ); </em></span></p></blockquote>
<blockquote><p><span style="color:#3366ff;"><em> moduleInfo.load();</em></span></p></blockquote>
<blockquote><p><span style="color:#3366ff;"> </span> <em>When a Module is loaded and ready, to get an instance of loaded module&#8230;</em></p></blockquote>
<blockquote><p><em> </em> <em><span style="color:#3366ff;">protected function onModuleReady( moduleEvent:ModuleEvent ):void {</span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;"> var moduleInfo:IModuleInfo = moduleEvent.module;</span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;"> </span></em> <em><span style="color:#3366ff;"> var sample:SampleModule = moduleInfo.factory.create() as SampleModule;</span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;"> }</span></em></p></blockquote>
<p><em>ModuleLoader :</em> <em></em></p>
<p><em>ModuleLoader ensures that only a single copy of  Module SWF transfererd over the network by using ModuleManager.</em> <em> </em></p>
<p><em>Action Script :</em></p>
<blockquote><p><em> <span style="color:#3366ff;">var loader:ModuleLoader = new ModuleLoader(&#8220;SampleModule.swf&#8221; ); </span></em> <em><span style="color:#3366ff;"> </span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;">loader.addEventListener( ModuleEvent.READY, handleModuleReady );</span></em> <em><span style="color:#3366ff;"> </span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;">loader.load();</span></em> <em> </em></p></blockquote>
<p><em><span style="color:#3366ff;"> </span></em><em> MXML :</em></p>
<blockquote><p><em> <span style="color:#3366ff;"> &lt;mx:ModuleLoader url=&#8221;SampleModule.swf&#8221;      progress=&#8221;handleModuleProgress(event);  ready=&#8221;handleModuleReady(event);&#8221;       error=&#8221;handleModuleEvent(event);&#8221;   /&gt;</span></em> <em> </em></p></blockquote>
<p><em><span style="color:#3366ff;"> </span></em><em> </em> <em><strong>ModuleEvent :</strong></em></p>
<p><em>ModuleEvent types : PROGRESS, READY,ERROR,UNLOAD,SETUP</em> <em></em></p>
<p><em>ModuleEvent properties : module:IModuleInfo, bytesLoaded, bytesTotal</em> <em> </em> <em><strong></strong></em></p>
<p><em><strong>Passing a query string data to Modules :</strong></em> <em></em></p>
<p><em>Query string parameters (e.g. <code>?param=value</code>) can be appended to the URL used to load a Module</em></p>
<blockquote><p><em><span style="color:#3366ff;">&lt;mx:ModuleLoader url=&#8221;SampleModule.swf?firstName=Sri&amp;lastName=Velli&#8221; /&gt;</span></em> <em> </em><em> </em> <em></em></p></blockquote>
<blockquote><p><em>The query string can be accessed in Module using &#8216;loaderInfo&#8217;  property. See the example below how to access and parse the loader string</em></p></blockquote>
<blockquote>
<blockquote><p><em> <span style="color:#3366ff;"> var url:String = this.loaderInfo.url.toString(); </span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;"> // remove everything before the question mark, including the question mark </span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;">var regexQuery:RegExp = /.*\?/;</span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;"> var queryString:String = url.replace( regexQuery, &#8220;&#8221; ); </span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;">// create an array of name=value pairs </span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;">var paramArray:Array = queryString.split( &#8220;&amp;&#8221; );</span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;"> // put the names value into an object </span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;"> var paramObject:Object;       var param:String; </span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;">var pair:Array;</span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;"> for each( param in paramArray )       { </span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;"> pair = param.split( &#8220;=&#8221; ); </span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;"> // name = value </span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;"> paramObject[ pair[0] ] = pair[1]; </span></em></p></blockquote>
<blockquote><p><em><span style="color:#3366ff;">}</span></em></p></blockquote>
</blockquote>
<p><em><strong>Modules and Parent Application, Modules and Modules Communication</strong></em> <em></em></p>
<p><em>Modules can access the methods and properties of parent application by using the parentApplication property.</em> <em>U can access properties and methods of  other modules through the parentApplication by using a ModuleLoader&#8217;s child property.</em> <em></em></p>
<blockquote><p><span style="color:#0000ff;"><em><em>parentApplication.module2.child.hasOwnProperty(&#8220;property&#8221;);</em></em></span></p></blockquote>
<blockquote><p><span style="color:#0000ff;"><em>parentApplication.module2.child.somePreperty;</em></span></p></blockquote>
<blockquote><p><span style="color:#0000ff;"><em>parentApplication.module2.child.someMethod();</em> </span></p></blockquote>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamsri.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamsri.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamsri.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamsri.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamsri.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamsri.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamsri.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamsri.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamsri.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamsri.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamsri.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamsri.wordpress.com/36/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamsri.wordpress.com/36/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamsri.wordpress.com/36/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=36&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamsri.wordpress.com/2009/10/19/flex-modules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/485a7b32ea10f25b6c13444a77e90e8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dari</media:title>
		</media:content>
	</item>
		<item>
		<title>BlazeDS Remote Service</title>
		<link>http://iamsri.wordpress.com/2009/10/16/blazeds-remote-service/</link>
		<comments>http://iamsri.wordpress.com/2009/10/16/blazeds-remote-service/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 18:02:23 +0000</pubDate>
		<dc:creator>iamsri</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iamsri.wordpress.com/?p=30</guid>
		<description><![CDATA[Remote object services allows to access the business logic directly in its native language. On using Flex Remote Object data transfering between Flex Client and server will happen in binary AMF and it will aumatically convert between Action Script and &#8230; <a href="http://iamsri.wordpress.com/2009/10/16/blazeds-remote-service/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=30&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Remote object services allows to access the business logic directly in its native language. On using Flex Remote Object data transfering between Flex Client and server will happen in binary AMF and it will aumatically convert between Action Script and Flex.</p>
<p>Coming to BlazeDS, an open source Java implementation of AMF (Action script Message Fromat) based messaging, allows front end applications easily connect with existing methods on POJOs, Spring Services or EJB. it works with wide range of Java based servers including Tomcat, Weblogic, Websphere, Jboss etc..</p>
<p>Ready use version of BlazeDS with Tomcat is available <a href="http://opensource.adobe.com/wiki/display/blazeds/Release+Builds">here  </a></p>
<p><em>Here is the high level steps how to integrate Flex and Java by using Remote Object</em></p>
<p><em>1. Downlaod and install BlazeDS from <a href="http://opensource.adobe.com/wiki/display/blazeds/Release+Builds">here  </a></em></p>
<p><em>2. Assume you have your businees layer implemneted and deployed in server, and u can create a POZO class  to expose methods that you want to access from Flex applications.</em></p>
<p><em>3.Copy the &#8216;flex&#8217; folder from blazeds.war\WEB-INF to your WEB-INF folder . This folder contains the configuration files needed by BlazeDS. In remote-config.xml file add a new remote destination pointing to POZO class that exposes the business logic.</em></p>
<p><em>              &lt;destination id=&#8221;remoteEx&#8221;&gt;</em></p>
<p><em>                         &lt;properties&gt;</em></p>
<p><em>                                     &lt;source&gt;com.ex.SamplePOZO&lt;/source&gt;</em></p>
<p><em>                                     &lt;scope&gt;application&lt;/scope&gt;</em></p>
<p><em>                         &lt;/properties&gt;</em></p>
<p><em>              &lt;/destination&gt;</em></p>
<p><em>      the root tag for remote-config.xml will looks like this </em></p>
<p><em>      &lt;service id=&#8221;remoting-service&#8221; class=&#8221;flex.messaging.services.RemotingService&#8221;/&gt;</em></p>
<p><em>      This RemoteClass will handles the all calls made to all destinations by invoking the appropriate adaptor. The adaptor is responsible for invoking methods on the Java Class based on source tag and returns the result. If the destination doesn&#8217;t have specific adaptor, the default adaptor from remote-config.xml will be used.</em></p>
<p><em>4. Flex provides Remote </em>Object  component, which allows you to call methods on Java class associated with the corresponding destinations.</p>
<p>      <em>&lt;mx:RemoteObject id=&#8221;remoteService&#8221;  showBusyCurser=&#8221;true&#8221; destination=&#8221;remoteEX&#8221;&gt;</em></p>
<p><em>                 &lt;mx:method name=&#8221;methodname1&#8243; /&gt;</em></p>
<p><em>                 &lt;mx:method name=&#8221;methodname2&#8243; /&gt;</em></p>
<p><em>     &lt;/mx:RemoteObject&gt;</em></p>
<p><em>5. Everything else is transperent from the user&#8217;s point of view (including the conversion between action script and java objects and serialization).</em></p>
<p><em>     Suppose if your POZO class is returning Java Value Object then you need to map it to corresping Action Script Value Object by using [RemoteClass] metadata such as </em></p>
<p><em>      [RemoteClass(alias="com.ex.SampleVO")]</em></p>
<p><em>6.The folder name &#8216;lib&#8217; under blazeDs.war\WEB-INF contains all the jar files needed by blazeDs, copy all these jar files to your WEB-INF\lib folder.</em></p>
<p><em>7.Update the channel definitions in services-config.xml to point to appropriate address and port number</em></p>
<p><em>     server.name, server.port</em></p>
<p><em>8. Add the following entries to your web.xml (taken from blazeDS ,  web.xml)</em></p>
<p><em>&lt;!&#8211; Http Flex Session attribute and binding listener support &#8211;&gt;<br />
&lt;listener&gt;</em><em><br />
   &lt;listener-class&gt;flex.messaging.HttpFlexSession&lt;/listener-class&gt;<br />
&lt;/listener&gt;<br />
&lt;!&#8211; MessageBroker Servlet &#8211;&gt;<br />
&lt;servlet&gt;<br />
   &lt;servlet-name&gt;MessageBrokerServlet&lt;/servlet-name&gt;<br />
   &lt;servlet-class&gt;flex.messaging.MessageBrokerServlet&lt;/servlet-class&gt;<br />
   &lt;init-param&gt;<br />
      &lt;param-name&gt;services.configuration.file&lt;/param-name&gt;<br />
      &lt;param-value&gt;/WEB-INF/flex/services-config.xml&lt;/param-value&gt;<br />
   &lt;/init-param&gt;<br />
   &lt;init-param&gt;<br />
      &lt;param-name&gt;flex.write.path&lt;/param-name&gt;<br />
      &lt;param-value&gt;/WEB-INF/flex&lt;/param-value&gt;<br />
   &lt;/init-param&gt;<br />
   &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;<br />
&lt;/servlet&gt;</p>
<p>&lt;servlet-mapping&gt;<br />
   &lt;servlet-name&gt;MessageBrokerServlet&lt;/servlet-name&gt;<br />
   &lt;url-pattern&gt;/messagebroker/*&lt;/url-pattern&gt;<br />
&lt;/servlet-mapping&gt;</em></p>
<p><em></em> </p>
<p><em><br />
<em>That&#8217;s it. You are done&#8230;</em></em></p>
<p><em></em> </p>
<p><em></em></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamsri.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamsri.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamsri.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamsri.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamsri.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamsri.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamsri.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamsri.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamsri.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamsri.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamsri.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamsri.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamsri.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamsri.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=30&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamsri.wordpress.com/2009/10/16/blazeds-remote-service/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/485a7b32ea10f25b6c13444a77e90e8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dari</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex tip : About html-template folder in Flex Builder</title>
		<link>http://iamsri.wordpress.com/2009/10/14/flex-tip-about-html-template-folder-in-flex-builder/</link>
		<comments>http://iamsri.wordpress.com/2009/10/14/flex-tip-about-html-template-folder-in-flex-builder/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 03:20:16 +0000</pubDate>
		<dc:creator>iamsri</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iamsri.wordpress.com/?p=27</guid>
		<description><![CDATA[Here you go&#8230; basically this folder contains the following files * AC_OETags.js – A JavaScript source file used by client to detect and embed the Flash Player * playerProductInstall.swf &#8211; This implements the Flash Player Express Install mechanism which comes &#8230; <a href="http://iamsri.wordpress.com/2009/10/14/flex-tip-about-html-template-folder-in-flex-builder/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=27&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Here you go&#8230;</p>
<p>basically this folder contains the following files<br />
* <strong>AC_OETags.js</strong> – A JavaScript source file used by client to detect and embed the Flash Player<br />
* <strong>playerProductInstall.swf</strong> &#8211; This implements the Flash Player Express Install mechanism which comes into  play if the client does not have the required player<br />
* <strong>index.template.html</strong> -HTML template that is used by the FlexBuilder to generate the wrapper html for all the application files in your project.</p>
<p>You can refer this post for more about index.template.html</p>
<p><a href="http://www.morearty.com/blog/2006/12/11/changing-the-filenames-in-flex-builder-html-templates/">http://www.morearty.com/blog/2006/12/11/changing-the-filenames-in-flex-builder-html-templates/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamsri.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamsri.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamsri.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamsri.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamsri.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamsri.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamsri.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamsri.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamsri.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamsri.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamsri.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamsri.wordpress.com/27/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamsri.wordpress.com/27/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamsri.wordpress.com/27/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=27&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamsri.wordpress.com/2009/10/14/flex-tip-about-html-template-folder-in-flex-builder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/485a7b32ea10f25b6c13444a77e90e8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dari</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex tip : Regarding Event.ADDED_TO_STAGE</title>
		<link>http://iamsri.wordpress.com/2009/10/06/flex-tip-regarding-event-added_to_stage/</link>
		<comments>http://iamsri.wordpress.com/2009/10/06/flex-tip-regarding-event-added_to_stage/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 14:39:07 +0000</pubDate>
		<dc:creator>iamsri</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iamsri.wordpress.com/?p=23</guid>
		<description><![CDATA[Earlier i faced some problems regarding Event.ADDED_TO_STAGE, at last i resolved all of them. Conclusions: If you want to add event listeners to your application (just like systemManager.addEventListener(EventType, listener)), u can do this only after application was added to stage &#8230; <a href="http://iamsri.wordpress.com/2009/10/06/flex-tip-regarding-event-added_to_stage/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=23&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Earlier i faced some problems regarding Event.ADDED_TO_STAGE, at last i resolved all of them.</p>
<p>Conclusions:</p>
<p>If you want to add event listeners to your application (just like systemManager.addEventListener(EventType, listener)), u can do this only after application was added to stage (before that stage/systemManager will be null) and we can dispatch events only in/after applicationComplete.</p>
<p>Here is the events firing order, have a look.</p>
<p>1.     creationComplete<br />
2.     ADDED_TO_STAGE  &#8211;&gt; here we are adding listeners to events (So, we can dispatch this events in next steps only)<br />
3.     applicationComplete</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamsri.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamsri.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamsri.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamsri.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamsri.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamsri.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamsri.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamsri.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamsri.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamsri.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamsri.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamsri.wordpress.com/23/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamsri.wordpress.com/23/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamsri.wordpress.com/23/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=23&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamsri.wordpress.com/2009/10/06/flex-tip-regarding-event-added_to_stage/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/485a7b32ea10f25b6c13444a77e90e8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dari</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex tip : Getting the server url in Flex code dynamically</title>
		<link>http://iamsri.wordpress.com/2009/10/06/flex-tip-getting-the-server-url/</link>
		<comments>http://iamsri.wordpress.com/2009/10/06/flex-tip-getting-the-server-url/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 13:41:37 +0000</pubDate>
		<dc:creator>iamsri</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iamsri.wordpress.com/?p=18</guid>
		<description><![CDATA[Let us consider &#8216;x.swf&#8217; is a application, we are downloading this swf from a server. If you want to get the server url dynamicaly&#8230;here is the code snippet var serverUrl : String = Application.application.loaderInfo.url; var index : int = serverUrl.indexOf(&#8220;x.swf&#8221;); &#8230; <a href="http://iamsri.wordpress.com/2009/10/06/flex-tip-getting-the-server-url/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=18&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let us consider &#8216;x.swf&#8217; is a application, we are downloading this swf from a server.</p>
<p>If you want to get the server url dynamicaly&#8230;here is the code snippet</p>
<p>var serverUrl : String = Application.application.loaderInfo.url;<br />
var index : int = serverUrl.indexOf(&#8220;x.swf&#8221;);<br />
serverUrl = serverUrl.substr(0, index-1);</p>
<p>We can also use below code<br />
var locationurl:String = ExternalInterface.call(&#8220;window.location.href.toString&#8221;);<br />
var servicesUrl:String = locationurl.split(&#8220;/&#8221;)[2];</p>
<p>But this is not appropriate in all conditions.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamsri.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamsri.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamsri.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamsri.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamsri.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamsri.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamsri.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamsri.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamsri.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamsri.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamsri.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamsri.wordpress.com/18/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamsri.wordpress.com/18/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamsri.wordpress.com/18/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=18&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamsri.wordpress.com/2009/10/06/flex-tip-getting-the-server-url/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/485a7b32ea10f25b6c13444a77e90e8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dari</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex tip : Setting component height and width dynamically based on Application height and width</title>
		<link>http://iamsri.wordpress.com/2009/10/06/flex-tip-setting-component-height-and-width-dynamically-based-on-application-height-and-width/</link>
		<comments>http://iamsri.wordpress.com/2009/10/06/flex-tip-setting-component-height-and-width-dynamically-based-on-application-height-and-width/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 11:21:54 +0000</pubDate>
		<dc:creator>iamsri</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://iamsri.wordpress.com/?p=16</guid>
		<description><![CDATA[Suppose let us assume that &#8216;x&#8217; is the instance of pop up. x.width = stage.width * 0.5; x.height = stage.height * 0.5; Conclusion : Here pop up height and width are exactly 1/2 of the Application height and width.<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=16&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Suppose let us assume that  &#8216;x&#8217; is the instance of pop up. </p>
<p>x.width = stage.width * 0.5;<br />
x.height = stage.height * 0.5;</p>
<p>Conclusion : Here pop up height and width are exactly 1/2 of the Application height and width.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamsri.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamsri.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamsri.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamsri.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamsri.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamsri.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamsri.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamsri.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamsri.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamsri.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamsri.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamsri.wordpress.com/16/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamsri.wordpress.com/16/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamsri.wordpress.com/16/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=16&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamsri.wordpress.com/2009/10/06/flex-tip-setting-component-height-and-width-dynamically-based-on-application-height-and-width/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/485a7b32ea10f25b6c13444a77e90e8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dari</media:title>
		</media:content>
	</item>
		<item>
		<title>Flex tip : Frame Rate</title>
		<link>http://iamsri.wordpress.com/2009/05/11/hello-world/</link>
		<comments>http://iamsri.wordpress.com/2009/05/11/hello-world/#comments</comments>
		<pubDate>Mon, 11 May 2009 21:16:55 +0000</pubDate>
		<dc:creator>iamsri</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hey bloggers, i recently studied something about Frame rates in Flex. Conclusions from what i studied&#8230;.. Higher frame rates makes your application faster (But it will cost your CPU performance). The default frame rate for Flex is 24 frames per second (for Flash &#8230; <a href="http://iamsri.wordpress.com/2009/05/11/hello-world/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=1&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hey bloggers, i recently studied something about Frame rates in Flex.</p>
<p><em>Conclusions from what i studied&#8230;..</em></p>
<p>Higher frame rates makes your application faster (But it will cost your CPU performance).</p>
<p>The default frame rate for Flex is 24 frames per second (for Flash 9).  </p>
<p>If you want you can specify what ever you want&#8230;</p>
<p>Ways to specify frameRate:</p>
<p>              1.          &lt;mx:Application frameRate=&#8221;60&#8243;/&gt;</p>
<p>              2.          stage.frameRate = &#8220;60&#8243;</p>
<p>              3.          [SWF(frameRate = "60")]</p>
<p>                            public class Example extends Sprite {</p>
<p>                                      &#8230;&#8230;&#8230;.</p>
<p>                           }</p>
<p>              4.         You can set as compile time argument</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/iamsri.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/iamsri.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/iamsri.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/iamsri.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/iamsri.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/iamsri.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/iamsri.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/iamsri.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/iamsri.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/iamsri.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/iamsri.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/iamsri.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/iamsri.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/iamsri.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=iamsri.wordpress.com&amp;blog=7710393&amp;post=1&amp;subd=iamsri&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://iamsri.wordpress.com/2009/05/11/hello-world/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/485a7b32ea10f25b6c13444a77e90e8f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Dari</media:title>
		</media:content>
	</item>
	</channel>
</rss>
