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

Error 5001- I saw a few discussions about this but nothing seems to help

New Here ,
May 02, 2013 May 02, 2013

Hello,

I am very new toaction-scripting, and I cannot seem to find a tutorial that explains what I feel should be a fairly simple task:

I have customized widgets for Adobe Captivate which use the import com.adobe.captivate.widgets.* and import.adobe.captivate.events.* commands.Right now they aren't working and here's why:

I have added the appropriate paths to Flash's actionscript library, but during the publishing from Flash, I receive the following compile errors:

  • 5001: The name of package 'com.adobe.captivate.widgets' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:\Program Files\Adobe\Adobe Captivate 6 x64\ActionScript\export\as3\com\adobe\captivate\widgets
  • 5001: The name of package 'com.adobe.captivate.widgets' does not reflect the location of this file. Please change the package definition's name inside this file, or move the file. C:\Program Files\Adobe\Adobe Captivate 6 x64\ActionScript\export\as3\com\adobe\captivate\widgets

Now, the obvious solution would be to review the names and locations and correct them to match. But the problem is they do match already.

The files are  in the directories C:\Program Files\Adobe\Adobe Captivate 6 x64\ActionScript\export\as3\com\adobe\captivate\widgets

and

C:\Program Files\Adobe\Adobe Captivate 6 x64\ActionScript\export\as3\com\adobe\captivate\events

but Flash does not seem to recognize them. The Compile Errors point to the CPMovieHandle and CPMovieProperties as directly, not the actionscript calling them, and specifically to line one of each:

package com.adobe.captivate.widgets

I looked around on the forums to see if this was answered before, and found this is a common error, but usually the answer is simply that the paths don't match or a difference in lower and uppercase letters. My paths appear to be the exact same.

TOPICS
ActionScript
1.4K
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 Expert ,
May 02, 2013 May 02, 2013

attach a screenshot showing the library paths you added.

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
New Here ,
May 02, 2013 May 02, 2013

They're long directories, and that window isn't scaleable, so here are two screenshots:

ActionScripts_Path1.JPGActionScripts_Path2.JPG

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
Guide ,
May 02, 2013 May 02, 2013

You might get better help on one of the Captivate forums, as Captivate widget development is fairly specialized and that's where the people who do it hang out.

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
New Here ,
May 02, 2013 May 02, 2013

Yeah, I have posted there as well.

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
New Here ,
May 02, 2013 May 02, 2013

Got it sorted out. The paths needed to be added under Edit>Preferences>ActionScript>ActionScript 3.0 Settings as well.

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
Guide ,
May 02, 2013 May 02, 2013

That's where you were before. Do you mean that you were trying to add it like it was just .as files and you needed to add it to the Library tab (because it was swc files)?

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
New Here ,
May 03, 2013 May 03, 2013

No, although I was beign too specific with the paths.

What I had entered:

  • C:\Program Files\Adobe\Adobe Captivate 6 x64\ActionScript\export\as3\com\adobe\captivate\widgets
  • C:\Program Files\Adobe\Adobe Captivate 6 x64\ActionScript\export\as3\com\adobe\captivate\events

What I should have entered:

  • C:\Program Files\Adobe\Adobe Captivate 6 x64\ActionScript\export\as3\

But no, I was entering the path through: File> Actionscript Settings

and the changes weren't showing up under Edit>Preferences>ActionScript>ActionScript 3.0 Settings. So I had to enter it in both places. It is working now. Now if only I could get the coding correct so that the functions actually work in Captivate. For that I'll switch to the other forum.

Thanks.

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 Expert ,
May 03, 2013 May 03, 2013
LATEST

the source path only needs to be entered once.  you can enter it in the panel you showed or using edit>preferences>actionscript 3 settings.  it just needs to be entered correctly and it only needs to be entered once.

they reason you had a problem was the paths shown in your screenshots are incorrect.  one path should be to the folder containing the com folder (where com has subfolders adobe>captivate>widgets) and another path should be to the folder containing the adobe folder (where adobe has subfolders captivate>events).

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