HaxeFlixel/flixel-ui — pull request #54 by evanwalsh (2014-04-19 16:58:33+00:00)
Title: Fix extension bug when loading XML

This corrects a small bug that severely impacts loading XML from a non-standard path.

The `U.xml` function starts like this:

```haxe
public static function xml(id:String, extension:String = "xml",getFast:Bool=true,dir="assets/xml/"):Dynamic {
var str:String = Assets.getText(dir + id + "." + extension);
````

As you can see, it takes an extension without a period (as it adds it in the first line). Ergo, the call that's corrected in this PR results in this problem in the current version:

```
Assets.hx:526: [openfl.Assets] There is no String asset with an ID of "assets/xml/data/gui/main_menu.xml"
Assets.hx:526: [openfl.Assets] There is no String asset with an ID of "data/gui/main_menu..xml"
```

Double periods!