<?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>geolocation &#8211; Software, Fitness, and Gaming &#8211; Jesse Warden</title>
	<atom:link href="https://jessewarden.com/tag/geolocation/feed" rel="self" type="application/rss+xml" />
	<link>https://jessewarden.com</link>
	<description>Software &#124; Fitness &#124; Gaming</description>
	<lastBuildDate>Tue, 06 Jul 2010 18:22:54 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://jessewarden.com/wp-content/uploads/2016/08/cropped-Lambda2-32x32.png</url>
	<title>geolocation &#8211; Software, Fitness, and Gaming &#8211; Jesse Warden</title>
	<link>https://jessewarden.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Using Geolocation with Flex in the Browser</title>
		<link>https://jessewarden.com/2010/07/using-geolocation-with-flex-in-the-browser.html</link>
					<comments>https://jessewarden.com/2010/07/using-geolocation-with-flex-in-the-browser.html#comments</comments>
		
		<dc:creator><![CDATA[JesterXL]]></dc:creator>
		<pubDate>Tue, 06 Jul 2010 18:22:08 +0000</pubDate>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[geolocation]]></category>
		<category><![CDATA[html5]]></category>
		<guid isPermaLink="false">http://jessewarden.com/?p=2263</guid>

					<description><![CDATA[I went to http://www.html5rocks.com, and some of the samples didn&#8217;t work. The one that did, however, was Geolocation. I thought it was neat because you didn&#8217;t need to utilize an iPhone/Android phone to get Geolocation data, and thus know where you are. I&#8217;ve read on Twitter that it&#8217;s not very accurate. Not sure how it [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>I went to <a href="http://www.html5rocks.com/">http://www.html5rocks.com</a>, and some of the samples didn&#8217;t work.  The one that did, however, was Geolocation.  I thought it was neat because you didn&#8217;t need to utilize an iPhone/Android phone to get Geolocation data, and thus know where you are.  I&#8217;ve read on <a href="http://twitter.com/jesterxl">Twitter</a> that it&#8217;s not very accurate.  Not sure how it works, but it&#8217;s been accurate for me.  The browser support, however, has been atrocious.  So far, the sample below only works in Chrome and Opera.  Safari and Firefox don&#8217;t seem to work for me.  Safari does pop up the permission dialogue, but just sits there; no error, no update.  Regardless, I wanted to see if I could integrate that location data into Flash.</p>
<p><span id="more-2263"></span>If you&#8217;re running in AIR2 or Flash Lite 4, there is already a native <a href="http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/sensors/Geolocation.html?allClasses=1">Geolocation API</a> You can utilize straight from ActionScript 3.  If you&#8217;re in the browser on the desktop, however, it&#8217;s not available unless you tap into the browser API&#8217;s which I&#8217;ve done.</p>
<p>You expose the browser API&#8217;s you need via JavaScript, and just have Flex talk to JavaScript, and JavaScript talk to it.  This example below puts a marker on the map once it gets your location.  While not needed, if you want to utilize in your own applications, you&#8217;ll need a <a href="http://code.google.com/apis/maps/signup.html">Google Maps key</a>.</p>
<p><iframe src ="http://jessewarden.com/archives/flex/geolocation/index.html" width="400px" height="400px"></iframe></p>
<p>Flex Geolocation Example &#8211; <a href="http://jessewarden.com/archives/flex/geolocation/index.html">Larger View</a> | <a href="http://jessewarden.com/archives/flex/geolocation/srcview/Geolocation.zip">Source</a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://jessewarden.com/2010/07/using-geolocation-with-flex-in-the-browser.html/feed</wfw:commentRss>
			<slash:comments>7</slash:comments>
		
		
			</item>
	</channel>
</rss>
