Skip to main content
Participant
May 2, 2013
Question

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

  • May 2, 2013
  • 2 replies
  • 1507 views

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.

This topic has been closed for replies.

2 replies

Participant
May 2, 2013

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

Amy Blankenship
Legend
May 2, 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)?

Participant
May 3, 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.

kglad
Community Expert
Community Expert
May 2, 2013

attach a screenshot showing the library paths you added.

Participant
May 2, 2013

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

Amy Blankenship
Legend
May 2, 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.