{"action":"created","issue":{"url":"https://api.github.com/repos/kittykatattack/learningPixi/issues/97","repository_url":"https://api.github.com/repos/kittykatattack/learningPixi","labels_url":"https://api.github.com/repos/kittykatattack/learningPixi/issues/97/labels{/name}","comments_url":"https://api.github.com/repos/kittykatattack/learningPixi/issues/97/comments","events_url":"https://api.github.com/repos/kittykatattack/learningPixi/issues/97/events","html_url":"https://github.com/kittykatattack/learningPixi/issues/97","id":301720944,"number":97,"title":"Failed to create Sprite by following tutorial","user":{"login":"birdkingz","id":1677727,"avatar_url":"https://avatars1.githubusercontent.com/u/1677727?v=4","gravatar_id":"","url":"https://api.github.com/users/birdkingz","html_url":"https://github.com/birdkingz","followers_url":"https://api.github.com/users/birdkingz/followers","following_url":"https://api.github.com/users/birdkingz/following{/other_user}","gists_url":"https://api.github.com/users/birdkingz/gists{/gist_id}","starred_url":"https://api.github.com/users/birdkingz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birdkingz/subscriptions","organizations_url":"https://api.github.com/users/birdkingz/orgs","repos_url":"https://api.github.com/users/birdkingz/repos","events_url":"https://api.github.com/users/birdkingz/events{/privacy}","received_events_url":"https://api.github.com/users/birdkingz/received_events","type":"User","site_admin":false},"labels":[{"id":149260738,"url":"https://api.github.com/repos/kittykatattack/learningPixi/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-03-02T10:29:14Z","updated_at":"2018-03-05T01:28:39Z","closed_at":"2018-03-05T01:28:39Z","author_association":"NONE","body":"Hi, I'm new to Pixi and I've been following the tutorial until \"Creating Sprite\". I followed the codes but my browser wasn't showing any images.\r\n\r\nI don't know why it's not working.\r\n\r\n```\r\n<html>\r\n    <style>* {padding: 0; margin: 0}</style>\r\n<head>\r\n  <meta charset=\"utf-8\">\r\n  <title>Test PIXI</title>\r\n</head>\r\n  <script src=\"pixi/pixi.min.js\"></script>\r\n<body>\r\n  <script type=\"text/javascript\">\r\n    //Create a Pixi Application\r\n      let app = new PIXI.Application();\r\n\r\n      //Add the canvas that Pixi automatically created for you to the HTML document\r\n      document.body.appendChild(app.view);\r\n\r\n      PIXI.loader.add(\"images/alien_a.png\").load(setup);\r\n      \r\nfunction setup()\r\n{\r\n    let cat = new PIXI.Sprite(PIXI.loader.resources[\"images/alien_a.png\"].texture);\r\n    \r\n    app.stage.addChild(cat);\r\n}\r\n  </script>\r\n</body>\r\n</html>\r\n```\r\n\r\nI've an image file located in folder \"images\" and I have a \"pixi\" folder storing pixi.min.js file\r\n\r\nFrom the Browser's console there's an error message\r\n_Uncaught DOMException: Failed to execute 'texImage2D' on 'WebGLRenderingContext': The image element contains cross-origin data, and may not be loaded._"},"comment":{"url":"https://api.github.com/repos/kittykatattack/learningPixi/issues/comments/370285111","html_url":"https://github.com/kittykatattack/learningPixi/issues/97#issuecomment-370285111","issue_url":"https://api.github.com/repos/kittykatattack/learningPixi/issues/97","id":370285111,"user":{"login":"birdkingz","id":1677727,"avatar_url":"https://avatars1.githubusercontent.com/u/1677727?v=4","gravatar_id":"","url":"https://api.github.com/users/birdkingz","html_url":"https://github.com/birdkingz","followers_url":"https://api.github.com/users/birdkingz/followers","following_url":"https://api.github.com/users/birdkingz/following{/other_user}","gists_url":"https://api.github.com/users/birdkingz/gists{/gist_id}","starred_url":"https://api.github.com/users/birdkingz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/birdkingz/subscriptions","organizations_url":"https://api.github.com/users/birdkingz/orgs","repos_url":"https://api.github.com/users/birdkingz/repos","events_url":"https://api.github.com/users/birdkingz/events{/privacy}","received_events_url":"https://api.github.com/users/birdkingz/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T01:28:39Z","updated_at":"2018-03-05T01:28:39Z","author_association":"NONE","body":"You are right. I tested it on Firefox and it works!\r\nThanks."}}
{"actor":{"display_login":"birdkingz"}}