Skip to main content
Inspiring
June 22, 2014
Answered

How can I use MapQuest API in Adobe Flash CC?

  • June 22, 2014
  • 4 replies
  • 2444 views

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,

This topic has been closed for replies.
Correct answer Stephdidou

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.

4 replies

Participant
March 15, 2015

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

sinious
Legend
June 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.

StephdidouAuthorCorrect answer
Inspiring
June 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.

sinious
Legend
June 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

Inspiring
June 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.

sinious
Legend
June 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?