【发布时间】:2013-11-19 23:13:55
【问题描述】:
我已经对这个问题进行了一些搜索,但我没有得到任何可靠的答案。我得到的最接近的是这里提出的一个问题: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 文件的完整路径就不会出现。希望这能解决我的问题。
【问题讨论】:
-
真的不清楚你的问题是什么。你在制作你的自定义库吗?您是否正在尝试将 SWC 文件添加到您的项目中?请详细描述您的问题。
-
我说更改路径后运行完整构建,应该这样做。
-
另外,看起来您删除了错误中最重要的部分(开头)。错误号是多少?
-
我重新组织了我的问题。一时兴起,这似乎是有道理的,但几天后看了它,我意识到我根本不是很清楚。
标签: actionscript-3 flash-builder swc