<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Using Google Maps in a Flex project</title>
	<link>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Sat, 22 Nov 2008 07:55:59 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: Kirk</title>
		<link>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-16066</link>
		<author>Kirk</author>
		<pubDate>Tue, 07 Oct 2008 16:35:38 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-16066</guid>
		<description>I downloaded the latest swc file which is map_flex_1_7a.swc.  Perhaps you could try using the this file - I am curious if I need to try to get the map_flex_1_5.swc version.</description>
		<content:encoded><![CDATA[<p>I downloaded the latest swc file which is map_flex_1_7a.swc.  Perhaps you could try using the this file - I am curious if I need to try to get the map_flex_1_5.swc version.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-16064</link>
		<author>peterd</author>
		<pubDate>Tue, 07 Oct 2008 14:33:39 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-16064</guid>
		<description>Kirk,

And you imported the GeocodingEvent and MapEvent classes in your application?
I don't recall having any coding errors in Flex Builder when I published this, but I can try taking another look when I get home tonight.

Peter</description>
		<content:encoded><![CDATA[<p>Kirk,</p>
<p>And you imported the GeocodingEvent and MapEvent classes in your application?<br />
I don&#8217;t recall having any coding errors in Flex Builder when I published this, but I can try taking another look when I get home tonight.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kirk</title>
		<link>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-16063</link>
		<author>Kirk</author>
		<pubDate>Tue, 07 Oct 2008 13:23:29 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-16063</guid>
		<description>Catch 22

When I go to run the example, I get six different errors (all 1046) for the Geocodingevent and the Mapevent.

I understand that if I move the SWF file to my web server this will go away.

The Flex Builder will not finish compiling the SWF file with the errors - so I can move a "good' file to my hosted server.

What is the trick to getting this to work?</description>
		<content:encoded><![CDATA[<p>Catch 22</p>
<p>When I go to run the example, I get six different errors (all 1046) for the Geocodingevent and the Mapevent.</p>
<p>I understand that if I move the SWF file to my web server this will go away.</p>
<p>The Flex Builder will not finish compiling the SWF file with the errors - so I can move a &#8220;good&#8217; file to my hosted server.</p>
<p>What is the trick to getting this to work?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15962</link>
		<author>Mike</author>
		<pubDate>Wed, 01 Oct 2008 11:37:18 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15962</guid>
		<description>If I want to decode a set of address stored in an array
how can I pass the array index in the geocode_success function?

for ...
   geocoder.geocode(address.text)
end</description>
		<content:encoded><![CDATA[<p>If I want to decode a set of address stored in an array<br />
how can I pass the array index in the geocode_success function?</p>
<p>for &#8230;<br />
   geocoder.geocode(address.text)<br />
end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: moymoy</title>
		<link>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15440</link>
		<author>moymoy</author>
		<pubDate>Wed, 10 Sep 2008 02:46:56 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15440</guid>
		<description>hi everyone!


have you ever encountered this error code:

 "1026: Constructor functions must be instance methods."

this applies to this line of code -&#62; private var googleMap:Map;

i guess these codes only works for map_flex_1_5.swc ? hope someone cud send me a link to where to find this version, i would really appreciate it.

otherwise, hope someone could help me to make this work with map_flex_1_6.swc..


moymoy</description>
		<content:encoded><![CDATA[<p>hi everyone!</p>
<p>have you ever encountered this error code:</p>
<p> &#8220;1026: Constructor functions must be instance methods.&#8221;</p>
<p>this applies to this line of code -&gt; private var googleMap:Map;</p>
<p>i guess these codes only works for map_flex_1_5.swc ? hope someone cud send me a link to where to find this version, i would really appreciate it.</p>
<p>otherwise, hope someone could help me to make this work with map_flex_1_6.swc..</p>
<p>moymoy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tom</title>
		<link>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15272</link>
		<author>Tom</author>
		<pubDate>Fri, 05 Sep 2008 10:44:41 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15272</guid>
		<description>Cool, like the map blinds when I resize it, I add a lazy resize:

&lt;pre class="code"&gt;
private var _lazy_resize_timer:uint = 0;

private function mapContainer_resize(evt:ResizeEvent):void 
{
    if (googleMap) 
    {
        clearTimeout(this._lazy_resize_timer);
        this._lazy_resize_timer = setTimeout(_do_lazy_resize,50);
    }
}

private function _do_lazy_resize():void
{
    googleMap.setSize(new Point(mapContainer.width, mapContainer.height));
}
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Cool, like the map blinds when I resize it, I add a lazy resize:</p>
<pre class="code">
private var _lazy_resize_timer:uint = 0;

private function mapContainer_resize(evt:ResizeEvent):void
{
    if (googleMap)
    {
        clearTimeout(this._lazy_resize_timer);
        this._lazy_resize_timer = setTimeout(_do_lazy_resize,50);
    }
}

private function _do_lazy_resize():void
{
    googleMap.setSize(new Point(mapContainer.width, mapContainer.height));
}
</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15138</link>
		<author>peterd</author>
		<pubDate>Tue, 02 Sep 2008 15:13:37 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15138</guid>
		<description>Matt,

I haven't seen that error before (but I've only tried a few simple things with Google Maps).
Does this help? http://groups.google.co.ke/group/Google-Maps-API/browse_thread/thread/afb8173049b08cee?fwc=1

Peter</description>
		<content:encoded><![CDATA[<p>Matt,</p>
<p>I haven&#8217;t seen that error before (but I&#8217;ve only tried a few simple things with Google Maps).<br />
Does this help? <a href="http://groups.google.co.ke/group/Google-Maps-API/browse_thread/thread/afb8173049b08cee?fwc=1" rel="nofollow">http://groups.google.co.ke/group/Google-Maps-API/browse_thread/thread/afb8173049b08cee?fwc=1</a></p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15120</link>
		<author>Matt</author>
		<pubDate>Tue, 02 Sep 2008 09:06:43 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15120</guid>
		<description>Hi Peter.

Thank you for your reply.

Yes, the API key is included in the appid.txt file.</description>
		<content:encoded><![CDATA[<p>Hi Peter.</p>
<p>Thank you for your reply.</p>
<p>Yes, the API key is included in the appid.txt file.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15116</link>
		<author>peterd</author>
		<pubDate>Tue, 02 Sep 2008 05:46:24 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15116</guid>
		<description>Matt,

And you pasted your Google Maps API key in appid.txt?

Peter</description>
		<content:encoded><![CDATA[<p>Matt,</p>
<p>And you pasted your Google Maps API key in appid.txt?</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15095</link>
		<author>Matt</author>
		<pubDate>Mon, 01 Sep 2008 16:21:38 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/08/03/using-google-maps-in-a-flex-project/#comment-15095</guid>
		<description>Hi.

this site is awesome, thank you! :)

I've tried the map demo. On localhost, it showed the debug mode, which is to be expected.
When I uploaded it to the server, the container is visible, but displays this message:

Initialization failed: please check the API key,
swf location, version and network availability.

Any ideas?

Many thanks,

Matt</description>
		<content:encoded><![CDATA[<p>Hi.</p>
<p>this site is awesome, thank you! :)</p>
<p>I&#8217;ve tried the map demo. On localhost, it showed the debug mode, which is to be expected.<br />
When I uploaded it to the server, the container is visible, but displays this message:</p>
<p>Initialization failed: please check the API key,<br />
swf location, version and network availability.</p>
<p>Any ideas?</p>
<p>Many thanks,</p>
<p>Matt</p>
]]></content:encoded>
	</item>
</channel>
</rss>
