{"action":"created","issue":{"url":"https://api.github.com/repos/Gamua/Starling-Framework/issues/766","labels_url":"https://api.github.com/repos/Gamua/Starling-Framework/issues/766/labels{/name}","comments_url":"https://api.github.com/repos/Gamua/Starling-Framework/issues/766/comments","events_url":"https://api.github.com/repos/Gamua/Starling-Framework/issues/766/events","html_url":"https://github.com/Gamua/Starling-Framework/issues/766","id":106933679,"number":766,"title":"Loading bitmap font texture from texture atlas","user":{"login":"b005t3r","id":757150,"avatar_url":"https://avatars.githubusercontent.com/u/757150?v=3","gravatar_id":"","url":"https://api.github.com/users/b005t3r","html_url":"https://github.com/b005t3r","followers_url":"https://api.github.com/users/b005t3r/followers","following_url":"https://api.github.com/users/b005t3r/following{/other_user}","gists_url":"https://api.github.com/users/b005t3r/gists{/gist_id}","starred_url":"https://api.github.com/users/b005t3r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/b005t3r/subscriptions","organizations_url":"https://api.github.com/users/b005t3r/orgs","repos_url":"https://api.github.com/users/b005t3r/repos","events_url":"https://api.github.com/users/b005t3r/events{/privacy}","received_events_url":"https://api.github.com/users/b005t3r/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-17T08:24:47Z","updated_at":"2015-09-17T11:31:31Z","closed_at":null,"body":"Not sure if this is the expected behavior, but I sure wasn't expecting it to work this way :)\r\n\r\nI have a bitmap font texture inside texture atlas named \"board/font/digits\" and an xml file \"digits.fnt\", where I changed the file name to match my texture path inside texture atlas (so it's \"board/font/digits\" as well). However, when I try to load the xml file using AssetManager, I get an error because it it tries to load \"digits\" texture instead of the full name I wanted it to use. The magic is happening here:\r\n\r\n```as3\r\nprotected function getName(rawAsset:Object):String\r\n{\r\n    /* ... */\r\n    if (name)\r\n    {\r\n        name = name.replace(/%20/g, \" \"); // URLs use '%20' for spaces\r\n        name = getBasenameFromUrl(name);\r\n        if (name) return name;\r\n        else throw new ArgumentError(\"Could not extract name from String '\" + rawAsset + \"'\");\r\n    }\r\n    /* ... */\r\n}\r\n```\r\n\r\nNot sure why this is processed using ```getBasenameFromUrl()```, hopefully it is a bug :)"},"comment":{"url":"https://api.github.com/repos/Gamua/Starling-Framework/issues/comments/141049680","html_url":"https://github.com/Gamua/Starling-Framework/issues/766#issuecomment-141049680","issue_url":"https://api.github.com/repos/Gamua/Starling-Framework/issues/766","id":141049680,"user":{"login":"jamikado","id":826630,"avatar_url":"https://avatars.githubusercontent.com/u/826630?v=3","gravatar_id":"","url":"https://api.github.com/users/jamikado","html_url":"https://github.com/jamikado","followers_url":"https://api.github.com/users/jamikado/followers","following_url":"https://api.github.com/users/jamikado/following{/other_user}","gists_url":"https://api.github.com/users/jamikado/gists{/gist_id}","starred_url":"https://api.github.com/users/jamikado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamikado/subscriptions","organizations_url":"https://api.github.com/users/jamikado/orgs","repos_url":"https://api.github.com/users/jamikado/repos","events_url":"https://api.github.com/users/jamikado/events{/privacy}","received_events_url":"https://api.github.com/users/jamikado/received_events","type":"User","site_admin":false},"created_at":"2015-09-17T11:31:31Z","updated_at":"2015-09-17T11:31:31Z","body":"PS This was just asked in the forums 4 days ago: http://forum.starling-framework.org/topic/merging-font-atlases-and-assetmanager-issue"}}