2013-03-07 67 views
1

我遇到Flash Builder的问题。 只有在将output folderoutput folder url设置为基本上是对JBoss文件夹位置的引用的路径时,才会出现这种情况。Flash生成器代码导航失败

  • 一切编译和运行正常,但是与 CTRL+CLICK代码导航显示Source could not be found for <path>.swc错误:

enter image description here

  • 项目布局:一个主要应用+ 1个库项目

enter image description here

  • 主应用程序的构建路径:

enter image description here

  • 为库项目的构建路径:

enter image description here

    包括为库项目
  • 的类:主应用程序MXML的

enter image description here

  • 内容:

    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" 
          xmlns:s="library://ns.adobe.com/flex/spark" 
          xmlns:mx="library://ns.adobe.com/flex/mx" 
          minWidth="955" 
          minHeight="600" 
          xmlns:local="*" 
          xmlns:test="be.some.test.*"> 
        <fx:Declarations> 
         <test:SomeLibraryComponent/> <!--ctrl + click failing--> 
        </fx:Declarations> 
        </s:Application> 
    
  • .actionScriptProperties文件中的主要应用:

    <actionScriptProperties analytics="false" mainApplicationPath="TestCodeNavi.mxml" projectUUID="d4c352fe-5d3a-454e-bb58-db0d96bd9edd" version="10"> 
        <compiler additionalCompilerArguments="-locale en_US" autoRSLOrdering="true" copyDependentFiles="true" fteInMXComponents="false" generateAccessible="true" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderLocation="MIRAGE_JBOSS_SERVER/deploy/mirage-server.war/TestCodeNavi" outputFolderPath="bin-debug" removeUnusedRSL="true" rootURL="http://localhost:8080/mirage-server/TestCodeNavi" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true"> 
    <compilerSourcePath/> 
    <libraryPath defaultLinkType="0"> 
        <libraryPathEntry kind="4" path=""> 
        <excludedEntries> 
         <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/> 
         <libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/core.swc" useDefaultLinkType="false"/> 
        </excludedEntries> 
        </libraryPathEntry> 
        <libraryPathEntry kind="3" linkType="1" path="/TestCodeNaviLibrary/bin-debug/TestCodeNaviLibrary.swc" sourcepath="/TestCodeNaviLibrary" useDefaultLinkType="false"/> 
    </libraryPath> 
    <sourceAttachmentPath> 
        <sourceAttachmentPathEntry kind="3" linkType="1" path="/TestCodeNaviLibrary/bin-debug/TestCodeNaviLibrary.swc" sourcepath="/TestCodeNaviLibrary" useDefaultLinkType="false"/> 
    </sourceAttachmentPath> 
        </compiler> 
        <applications> 
        <application path="TestCodeNavi.mxml"/> 
        </applications> 
        <modules/> 
        <buildCSSFiles/> 
        <flashCatalyst validateFlashCatalystCompatibility="false"/> 
    </actionScriptProperties> 
    

真的会很欣赏这个指针。

干杯

+0

由于两个项目都在同一个工作区中,而不是将SWC添加到库路径;尝试添加项目。 – JeffryHouser 2013-03-07 15:24:40

+0

我以为我正在那样做?@see部分:主应用程序的构建路径 – 2013-03-07 15:27:38

+0

您是对的;我的错误是没有仔细检查屏幕截图。我不确定为什么会发生这种情况。 – JeffryHouser 2013-03-07 15:47:24

回答

0

尝试以下操作:

  1. 关闭所有的项目在Flash Builder在记事本++
  2. 打开.actionScriptProperties文件中并查看库路径和源路径。如果在库路径中找到任何额外条目,则可以将其删除,再次保存文件并打开Flash Builder。

此外,另一个问题可能是,检查库项目“类”选项卡,您已选择所有类,需要包括在项目中。

+0

你可以通过“extra entry”来表达你的意思吗?目前只有一个,这对我来说似乎没有问题。更新我的问题以包含.actionscript属性。我的图书馆资源被设置为“全部包括” – 2013-03-08 11:38:48

相关问题