Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How can I use MapQuest API in Adobe Flash CC?

Contributor ,
Jun 22, 2014 Jun 22, 2014

Hi all,

Since Google Maps API will be deprecated in 3 months I'm trying to use MapQuest instead. (MapQuest Developer Network: Map APIs, SDKs and Web Services - MapQuest Developer Network)

But I can't import the component MQFlashMapsAPI_7.1.5_MQ_MOBILE.swc into my project.. Any idea why?

I've read that I have to import the core.swc from the Flex SDK.. I've put the core.swc file in the components folder, but when I'm going into the components window in Adobe Flash, neither core.swc or MQFlashMapsAPI are visible.

Do you what should I do in order to import MQFlashMapsAPI in my project ?

I'm using Adobe Flash pro CC

Thank you for your help,

TOPICS
ActionScript
2.3K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Contributor , Jun 23, 2014 Jun 23, 2014

I've found the solution.

You must put the swc file in : C:\Program Files\Adobe\Adobe Flash CC\Common\Configuration\ActionScript 3.0\libs  AND    C:\Users\Name\AppData\Local\Adobe\Flash CC\fr_FR\Configuration\Components\Flex

Hope it'll help someone else.

Thx everyone for your help.

Translate
LEGEND ,
Jun 23, 2014 Jun 23, 2014

If it requires Flex, you can't use it in Flash Pro. Apache Flex (formerly Adobe Flex) is used in Flash Builder (note the product in the upper right to use it):

Free, open-source framework | Adobe Flex

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 23, 2014 Jun 23, 2014

It doesn't require Flex, I've used the MapQuest API before and it works perfect in Flash. But I've never used CC before... not sure how you'd get it to work there.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 23, 2014 Jun 23, 2014

I would be really shocked if it requires ActionScript 2.0 but CC doesn't support that. Otherwise I honestly don't know why it would want a flex library in a place you can't utilize Flex.

You say you've used this API before. Is this the same MapQuest SWC version you successfully used before or is it updated? What version of flash did you successfully use this in? Lastly did you get Flex from Adobe (4.6.0) or Apache?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Jun 23, 2014 Jun 23, 2014

I used in Flash CS6 - not Flex. Same SWC version - I did some testing just a couple of months ago. Who said anything about AS2?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Jun 23, 2014 Jun 23, 2014

I've found the solution.

You must put the swc file in : C:\Program Files\Adobe\Adobe Flash CC\Common\Configuration\ActionScript 3.0\libs  AND    C:\Users\Name\AppData\Local\Adobe\Flash CC\fr_FR\Configuration\Components\Flex

Hope it'll help someone else.

Thx everyone for your help.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 24, 2014 Jun 24, 2014

I don't believe that's really the correct answer. It appears you're not configuring your project to look in the correct places for the libraries it needs and just copied the SWC to a very global path to Flash. The best way is not to litter global Flash directories with those files and to configure your paths properly in the project.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Mar 15, 2015 Mar 15, 2015
LATEST

i'm a total newbie can you post your source code?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines