3
我正在使用ASDocr,這是用於命令行Flex asdoc
文檔生成器的Adobe AIR應用程序GUI界面。我的班級使用幾個外部庫和創建的文檔時,它產生1046錯誤:生成ASDoc的問題
/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 {
^
正如你可以看到我使用SWFAddress
但只有SWFAddressEvent
類拋出一個錯誤。線40和類(Timeline.as)的41:
import com.asual.swfaddress.SWFAddress;
import com.asual.swfaddress.SWFAddressEvent;
這是命令行指令:
/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
我的應用程序的工作就好了。只有在生成文檔時纔會顯示編譯錯誤。此應用程序將AS3腳本文件與FLA接口文件結合使用。
EDIT
我添加外部庫路徑就像他們是在FDT到編譯器,現在,它引發此命令行指令:
/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源一起使用」。
謝謝。如果我選擇「排除依賴性」,我會得到「錯誤:排除依賴關係不能與doc源一起使用。」 – mga 2010-01-20 14:55:43