简体   繁体   English

processXmlResource无法到达xml文件

[英]processXmlResource cannot reach the xml file

I'm trying to replicate this hello world example with Haxe and HaxeUI. 我正在尝试使用Haxe和HaxeUI复制此世界示例 When i compile the project everything seems fine but when i try to execute the swf from browser i have an error like: Cannot access a property or method of a null object reference referred to processXmlResource (in the root folder i have the main.hx and in a subfolder the xml). 当我编译项目时,一切似乎都很好,但是当我尝试从浏览器中执行swf时,出现类似以下错误: Cannot access a property or method of a null object referenceprocessXmlResource Cannot access a property or method of a null object reference (在根文件夹中,我具有main.hx和在子文件夹xml中)。

Below is the screenshot of the error i get: 以下是我得到的错误的屏幕截图: 在此处输入图片说明

Have you modified your applications application.xml (or project.xml ) to find the asset in your project root? 您是否修改了应用程序application.xml (或project.xml )以在项目根目录中找到资产? Or put all your assets in an assets sub folder and let then reference that from you application.xml ? 还是将所有资产放在assets子文件夹中,然后再从application.xml引用它?

Basically it seems it is not finding your xml resource. 基本上,似乎找不到您的xml资源。 This sample might be a good example of a basic project setup: https://github.com/ianharrigan/haxeui/tree/master/samples/hello_world_xml 该示例可能是基本项目设置的一个很好的示例: https : //github.com/ianharrigan/haxeui/tree/master/samples/hello_world_xml

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM