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

<channel>
	<title>Rahul Vaidya's Blog &#187; Flex</title>
	<atom:link href="http://www.rvaidya.com/blog/category/flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rvaidya.com/blog</link>
	<description>Development, Tech, Whatever.</description>
	<lastBuildDate>Wed, 16 Sep 2009 00:33:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Flex Builder and Eclipse 3.5</title>
		<link>http://www.rvaidya.com/blog/flex/2009/09/08/flex-builder-and-eclipse-3-5/</link>
		<comments>http://www.rvaidya.com/blog/flex/2009/09/08/flex-builder-and-eclipse-3-5/#comments</comments>
		<pubDate>Wed, 09 Sep 2009 05:11:39 +0000</pubDate>
		<dc:creator>Rahul</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[3.5]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.rvaidya.com/blog/?p=59</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a blog post by a frustrated developer who seems to have found out how to set up the Flex Builder plugin with Eclipse 3.5 (I have tried it and it works!).&nbsp; Thank you, frustrated developer!</p>
<p><a href="http://worldwizards.blogspot.com/2009/08/eclipse-35-and-flex-builder.html" target="_blank">http://worldwizards.blogspot.com/2009/08/eclipse-35-and-flex-builder.html</a></p>
<p>From the post:</p>
<p>(1) Download and install Eclipse 3.5.  I used the J2EE install.<br />
(2) Download and run the Flex Builder 3 installer.<br />
(3) Ignore all the warnings that it only supports Eclipse 3.3 and 3.4. Just keep telling it that you know what you are doing and want to install it anyway. It will end with a scary message about failing and suggest you do a manual install from inside of eclipse. <span style="font-weight: bold;">Don&#8217;t do that!</span><br />
(4) Here is the magic, when it is done there will be a file in your eclipse/links directory called<br />
com.adobe.flexbuilder.feature.core.link<br />
Open that file in wordpad and you will see it contains one line:<br />
<span style="font-family: courier new;"><br />
C:/Program Files/Adobe/Flex Builder 3 Plug-in</span></p>
<p>Edit that line so it looks like this:</p>
<p><span style="font-family: courier new;">path=C:/Program Files/Adobe/Flex Builder 3 Plug-in</span></p>
<p>Save the file and start eclipse.  Voilla!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rvaidya.com/blog/flex/2009/09/08/flex-builder-and-eclipse-3-5/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>Google Maps Flex API: Refresh TileLayer without refreshing map</title>
		<link>http://www.rvaidya.com/blog/gis/2009/02/27/google-maps-flex-api-refresh-tilelayer-without-refreshing-map/</link>
		<comments>http://www.rvaidya.com/blog/gis/2009/02/27/google-maps-flex-api-refresh-tilelayer-without-refreshing-map/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 06:18:20 +0000</pubDate>
		<dc:creator>Rahul</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[GIS]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[google maps]]></category>
		<category><![CDATA[mapserver]]></category>
		<category><![CDATA[Tile]]></category>

		<guid isPermaLink="false">http://www.rvaidya.com/blog/?p=43</guid>
		<description><![CDATA[This submission is in response to this gmaps-api-flex feature request. This is a hack that provides functionality like what was requested here. So you&#8217;ve added a custom tile layer to your Google Maps app in Flex, which lets you show all your pretty spatial features. Fantastic! If you want to make this tile layer dynamic, [...]]]></description>
			<content:encoded><![CDATA[<p>This submission is in response to <a href="http://code.google.com/p/gmaps-api-issues/issues/detail?id=503" target="_blank">this gmaps-api-flex feature request</a>.  This is a hack that provides functionality like what was requested here.</p>
<p>So you&#8217;ve added a custom tile layer to your Google Maps app in Flex, which lets you show all your pretty spatial features.  Fantastic!  If you want to make this tile layer dynamic, however, you run into a few problems.  The Google Maps Flex API caches tiles that it has loaded from a specific Tile Overlay, so if your data changes, the changes won&#8217;t be reflected on your map immediately.  There have been various hacks that force a refresh of the map, but they don&#8217;t completely meet the requirements set in this feature request.  The attached code here is a hack that tries to mimic the requested functionality, without refreshing the entire map.</p>
<p>After exploring a little, I saw that one way the Flex API differentiates overlays is by the request URL.  If you create an overlay, add it to the map, remove it, create a new overlay with the same URL, and add the new overlay, it will load the tiles from the internal cache.  Now, this functionality can be nice if you&#8217;re switching between two different overlays, and there haven&#8217;t been any changes in the data.  For instance, if an app requests tiles from the following URLs in order:</p>
<p>mapserver.php?X=0&amp;Y=0&amp;Z=0&amp;LAYERS=calicounties</p>
<p>mapserver.php?X=0&amp;Y=0&amp;Z=0&amp;LAYERS=oregcounties</p>
<p>it will load both of these layers properly, and cache them both.  If you then load the calicounties layer, using the same URL string, it&#8217;ll give you back the cached version.</p>
<p>However, if the data has changed, you&#8217;d want to reload the entire layer.  To do this, I have appended a garbage GET variable to the URL.  The requests will now look like:</p>
<p>mapserver.php?X=0&amp;Y=0&amp;Z=0&amp;LAYERS=calicounties&amp;GARBAGE=SDK34K</p>
<p>mapserver.php?X=0&amp;Y=0&amp;Z=0&amp;LAYERS=oregcounties&amp;GARBAGE=SDK34K</p>
<p>Simply change the GARBAGE variable when loading calicounties again and it&#8217;ll load from the source.</p>
<p>The included code implements four events that are dispatched to/listened from the map object:</p>
<ul>
<li>TileLayerRefresh
<ul>
<li>Tell the Tile Layer to refresh (do not change the GARBAGE variable)</li>
</ul>
</li>
<li>TileLayerReload
<ul>
<li>Tell the Tile Layer to reload (change the GARBAGE variable)</li>
</ul>
</li>
<li>TileLayerRefreshed
<ul>
<li>Refresh/Reload completed successfully (all tiles loaded)</li>
<li>Implemented by incrementing a counter whenever Loader instances are created, and decrementing the counter whenever they complete/fail.</li>
</ul>
</li>
<li>TileLayerRefreshError
<ul>
<li>If any loading errors occurred.</li>
</ul>
</li>
</ul>
<p>Note: You need to pass the TileLayer both the TileOverlay that holds it and the Map object, so it can handle refreshing and event dispatch by itself.</p>
<p><!--DEVFMTCODE--><pre class="devcodeblock" title="ActionScript"><div class="devcodeoverflow"><ol><li></li><li><span style="color: #000000; font-weight: bold;">var</span> tileLayer:MapServerTileLayer = <span style="color: #000000; font-weight: bold;">new</span> MapServerTileLayer<span style="color: #66cc66;">&#40;</span>map<span style="color: #66cc66;">&#41;</span>;</li><li><span style="color: #000000; font-weight: bold;">var</span> tileLayerOverlay:TileLayerOverlay = <span style="color: #000000; font-weight: bold;">new</span> TileLayerOverlay<span style="color: #66cc66;">&#40;</span>tileLayer<span style="color: #66cc66;">&#41;</span>;</li><li>tileLayer.<span style="color: #006600;">setOverlay</span><span style="color: #66cc66;">&#40;</span>tileLayerOverlay<span style="color: #66cc66;">&#41;</span>;</li><li>map.<span style="color: #006600;">addOverlay</span><span style="color: #66cc66;">&#40;</span>tileLayerOverlay<span style="color: #66cc66;">&#41;</span>;</li><li></li></ol></div></pre><!--END_DEVFMTCODE--></p>
<p>For an example on using MapServer/PHP MapScript with Google Maps, go to <a href="http://www.rvaidya.com/blog/gis/2009/02/12/mapserver-using-google-maps-with-php-mapscript/" target="_blank">this blog post</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rvaidya.com/blog/gis/2009/02/27/google-maps-flex-api-refresh-tilelayer-without-refreshing-map/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
