0

我已经对这个问题进行了一些搜索,但我没有得到任何可靠的答案。我得到的最接近的是这里提出的一个问题:How to use a relative path for a swc library in Flash Builder 4.6但这并不是我想要的。

当我的项目中出现错误时,我可以在 Flash 调试器中看到我的 .swc 文件的完整路径。

    TypeError: Error #1085: The element type "link" must be terminated by the matching end-tag "</link>". at utility::utilController/receiveData()[/Users/myUserName/Documents/Public/packages/DataController/src/data/MainData.as:256]

为了进一步解释,所发生的是加载和解析一个 XML 文件。有时加载的 XML 文件会出错,即使我有一个 IO_ErrorEvent 处理程序,上面提到的错误仍然会在运行时出现在调试器中。我只是想找出一种方法来隐藏我的 MainData.as 文件的路径。所以而不是看到

TypeError: Error #1085: The element type "link" must be terminated by the matching end-tag "</link>". at utility::utilController/receiveData()[/Users/myUserName/Documents/Public/packages/DataController/src/data/MainData.as:256]

你会看到类似的东西:

TypeError: Error #1085: The element type "link" must be terminated by the matching end-tag "</link>". at utility::utilController/receiveData()[../data/MainData.as:256]

这样我的 .as 文件的完整路径就不会出现。希望这能解决我的问题。

4

1 回答 1

0

我最终只是做了一个发布版本。无论如何,我将不得不这样做,所以这解决了我的问题。

于 2013-11-13T18:31:55.243 回答