Converting the Google Maps Flash API to Flash-based Javascript?

I was given an older program to work with, and it uses the Google Maps API for Flash. The application is built in Flash CS5 and cannot be converted to anything other than Flash (since it is part of a larger Flex application that uses Flash embedded SWF files and loads them into an application with advanced Flex build), so I can not use pure Javascript an approach. And also I don't know Javascript, I am basically a pure Flash / Flex developer, hehe.

Is there an easy way to convert an application from a Flash based API to a Javascript based API? I don’t even know where to start, I'm just from college, this is my first real big project, and I'm the only Flash developer

Otherwise, I am stuck because the API key has expired, Google has not issued new keys, and they do not respond to my request for a key extension. I also studied the MapQuest API and converted it to this, however, I'm not sure.

I also want to note that I cannot use the web view, since the content must be displayed on top, and the whole map must be integrated in SWF, I only need to extract data from the API and display it in Flash as a Flash element. I used to use web setup, and this did not meet my needs for this project.

+4
source share
2 answers

Converted the application to the MapQuest API . I was expecting a nightmare, and I was really very surprised at how smooth the transition went (as you can see from the timestamps). Did not take much time.

The functionality is comparable, and it boiled down to simply changing some function names to get the same functionality for simpler things, and then digging around a bit and it all worked.

+1
source

See my answer to the duplicate question: Enabling Google Maps in Flash - I implemented JavaScript Bing, Google and MapQuest maps and their enhancement services in Flash - the full post (with code) was too long, so it is here: http: // pastebin.com/Jzq5E06F

+1
source

Source: https://habr.com/ru/post/1433835/


All Articles