Thank you, Pamela

I already have created (with lot of effort) a simple AS3 movie with
just the map, so overlaying this AS3 movie over the AS2 movie can be
an option worth of looking at. Since I already have the AS3 movie
working, it would be easier than using the Javascript API.

It is a pity Google doesn't care about the AS2 programmers. AS3 maybe
more structured, efficient and generate faster code, but it is too
much complicated for the user mainly oriented to the graphical part of
Flash like me. And there are lots of webs like mine already programmed
in AS2 that can't just add a Google Map because they would have to
port all the site to AS3. Even for an expert AS3 programmer it would
be a big task, hardly worth the effort.

This is an example of how complicated AS3 is for a graphic artist who
has only basic programming background:

Button for sending e-mail in AS2:
//------------------------------------------------------------------
on (release) {
    getURL("mailto:[email protected]";);
};
//------------------------------------------------------------------

Direct and simple. The code is in the button but you can be neat and
place it in the main timeline with little effort. Now let's see the
same thing in AS3:
//------------------------------------------------------------------
import flash.net.*;

correo.addEventListener(MouseEvent.CLICK, abrirCorreo);

function abrirCorreo(event:MouseEvent):void {
    var url:String = "mailto:[email protected]";;
    var request:URLRequest = new URLRequest(url);
    navigateToURL(request);
};
//------------------------------------------------------------------


You already have the AS3 API. porting it the AS2 should be very easy,
or letting somebody to do the work for you. I'm sure there is a lot of
people willing to do it.

Juan C Walls


On Mar 30, 2:17 am, pamela fox <[email protected]> wrote:
> Hi jedikalimero-
> I believe your only option is to embed the JS Map over the current AS2 SWF.
> There's an example that's similar of overlaying the Earth API over a Flex
> application:http://cynergysystems.com/blogs/page/andrewtrice?entry=google_eath_fl...
>
> Actually, perhaps you can overlay an AS3 SWF over an AS2 SWF, using the
> right CSS mastery. I have no demo of that though, just speculation.
>
> - pamela
>
> On Sat, Mar 28, 2009 at 9:49 AM, jedikalimero <[email protected]> wrote:
>
> > Unfortunately, the client wants the map to be dynamic, so the user can
> > search for subway stations, change to satellite view, see nearby
> > monuments, zoom, etc.
>
> > On 27 mar, 23:46, Arothian <[email protected]> wrote:
> > > If your map is simply showing the singular location fo this 'shop' you
> > > could try using the Static Map API and embedding a image into the app.
> > > I'm not that familiar with the image tools or AS2 but its an idea.
>
> > > On Mar 27, 6:42 pm, jedikalimero <[email protected]> wrote:
>
> > > > I have a flash site that was developed inActionScript 2. the client
> > > > now wants to include a Google Map with a map view of his shop, so you
> > > > click on a botton labeled "location" and the map would appear in the
> > > > site (not in another window/tab/page)
>
> > > > Problem, evidently is Google Maps API only supports AS3. and loading
> > > > an AS3 movie from an AS2 movie will not work.
>
> > > > Is there any way to solve this? (apart from rewriting the entire site
> > > > in AS3, obviously)
>
> > > > What if I make a simple AS3 movie that loads my current AS2 movie and
> > > > then my AS2 movie loads the Map AS3 movie or ask the base AS3 movie to
> > > > load the map AS3 movie?
>
> > > > What if I use the JavaScript API to overlay the map in a new HTML
> > > > layer over the layer that contains the flash? (any example of how to?)
>
> > > > Thanks
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API For Flash" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-maps-api-for-flash?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to