Problems creating an ASDoc

I am using ASDocr , which is the graphical interface of the Adobe AIR application for the asdoccommand line Flex documentation generator . My class uses several external libraries and generates error 1046 when creating documentation:

/Users/mga/Documents/FDT Workspace/vgline/src/com/pingpongestudio/timeline/Timeline.as(1569): col: 39 Error: Type was not found or was not a compile-time constant: SWFAddressEvent.
private function handleSWFAddress(e:SWFAddressEvent):void {
                                    ^

As you can see, I use SWFAddress, but only the class SWFAddressEventcauses an error. Lines 40 and 41 of this class (Timeline.as):

import com.asual.swfaddress.SWFAddress;
import com.asual.swfaddress.SWFAddressEvent;

This is the command line command:

/Applications/Adobe Flex SDK 4/bin/asdoc -source-path "/Users/mga/Documents/FDT Workspace/vgline/src" -output "/Users/mga/Documents/FDT Workspace/vgline/doc" -doc-sources "/Users/mga/Documents/FDT Workspace/vgline/src" -lenient

My application is working fine. Compilation errors appear only when creating documentation. This application uses AS3 script files in conjunction with a FLA interface file.


EDIT

I added the external library paths in the same way as they are in the FDT for the compiler, and now it issues this command line command:

/Applications/Adobe Flex SDK 4/bin/asdoc -source-path "/Users/mga/Documents/FDT Workspace/vgline/src" -output "/Users/mga/Documents/FDT Workspace/vgline/doc" -doc-sources "/Users/mga/Documents/FDT Workspace/vgline/src" -library-path+="/Users/mga/Desktop/stuff/as3 classes/dashedline" -library-path+="/Users/mga/Desktop/stuff/as3 classes/webdevils" -library-path+="/Users/mga/Desktop/stuff/as3 classes/as3corelib-.92.1/src" -library-path+="/Users/mga/Desktop/stuff/as3 classes/swfaddress-2.4/dist/as/3" -library-path+="/Applications/Adobe Flex SDK 4/frameworks/libs/player/10/playerglobal.swc" -library-path+="/Applications/Adobe Flex SDK 4/frameworks/libs/flex.swc" -library-path+="/Applications/Adobe Flex SDK 4/frameworks/libs/framework.swc" -library-path+="/Applications/Adobe Flex SDK 4/frameworks/libs/rpc.swc" -library-path+="/Applications/Adobe Flex SDK 4/frameworks/libs/utilities.swc" -library-path+="/Users/mga/Desktop/stuff/as3 classes/greensock-tweening-platform-as3" -lenient

- .

, ": - doc-".

+3
1

-library-path "/Users/mga/Documents/FDT Workspace/vgline/libs", swc swf , .

-exclude-dependencies, .

+1

Source: https://habr.com/ru/post/1729234/


All Articles