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

Error #5001: The name of package 'mapTools' does not reflect the location of this file. Please change the pa

New Here ,
Jan 27, 2009 Jan 27, 2009

Copy link to clipboard

Copied

Ok, this is a simple question. I have a package mapTools defined in ActionScript file MapManager.as, as shown in the attached code. The directory structure looks lke this:

C:\
----- \engine
----------\ media
-------------- \Flash
------------------- \mapTools
--------------------------- MapManager.as
--------------------------- MAP.fla

So files MapManager.as and MAP.fla are in the same directory. So I open MAP.fla and when I do TestMovie I get this error:

"5001: The name of package 'mapTools' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:\engine\media\Flash\mapTools\MapManager.as"

What is the cause of this error?



TOPICS
ActionScript

Views

1.9K

Translate

Translate

Report

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

Community Expert , Jan 27, 2009 Jan 27, 2009
if it's that's the document class, put the fla back in mapTools and remove mapTools from the package name.

Votes

Translate

Translate
Community Expert ,
Jan 27, 2009 Jan 27, 2009

Copy link to clipboard

Copied

move MAP.fla up one directory to flash and retest.

Votes

Translate

Translate

Report

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
New Here ,
Jan 27, 2009 Jan 27, 2009

Copy link to clipboard

Copied

Just tried that and got the same error.

Also, probably should mention that MapManager is declared as the Document class for MAP.fla.

Votes

Translate

Translate

Report

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 Expert ,
Jan 27, 2009 Jan 27, 2009

Copy link to clipboard

Copied

if it's that's the document class, put the fla back in mapTools and remove mapTools from the package name.

Votes

Translate

Translate

Report

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
New Here ,
Jan 28, 2009 Jan 28, 2009

Copy link to clipboard

Copied

yeah, that seems to work, but I don't understand why. Does that mean if you set an external class as the Document class for a FLA document, the package the class is declared in can not have a name?

Votes

Translate

Translate

Report

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 Expert ,
Jan 28, 2009 Jan 28, 2009

Copy link to clipboard

Copied

LATEST
no, it can. but then you must specify the path/name in the document class box in the properties panel and the path is relative to the fla file.

Votes

Translate

Translate

Report

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