Copy link to clipboard
Copied
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:
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.
Copy link to clipboard
Copied
attach a screenshot showing the library paths you added.
Copy link to clipboard
Copied
They're long directories, and that window isn't scaleable, so here are two screenshots:
Copy link to clipboard
Copied
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.
Copy link to clipboard
Copied
Yeah, I have posted there as well.
Copy link to clipboard
Copied
Got it sorted out. The paths needed to be added under Edit>Preferences>ActionScript>ActionScript 3.0 Settings as well.
Copy link to clipboard
Copied
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)?
Copy link to clipboard
Copied
No, although I was beign too specific with the paths.
What I had entered:
What I should have entered:
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.
Copy link to clipboard
Copied
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).
Find more inspiration, events, and resources on the new Adobe Community
Explore Now