{"action":"opened","issue":{"url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1678","labels_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1678/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1678/comments","events_url":"https://api.github.com/repos/HaxeFlixel/flixel/issues/1678/events","html_url":"https://github.com/HaxeFlixel/flixel/issues/1678","id":123169780,"number":1678,"title":"stamp() with FlxText fails right after creation with FlxG.renderTile","user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/HaxeFlixel/flixel/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-20T16:14:25Z","updated_at":"2015-12-20T16:14:25Z","closed_at":null,"body":"Originally reported [here](http://haxeflixel.com/forum/?place=msg%2Fhaxeflixel%2FA_83sqYB0Lk%2F7_bhqcWlBQAJ).\r\n\r\nWorks on flash. Also used to work with tilesheet rendering on 3.3.x. The issue is that `text.graphic` is still null at the time of the `stamp()` call.\r\n\r\n```haxe\r\npackage;\r\n\r\nimport flixel.FlxSprite;\r\nimport flixel.FlxState;\r\nimport flixel.text.FlxText;\r\n\r\nclass PlayState extends FlxState\r\n{\r\n\toverride public function create():Void\r\n\t{\r\n\t\tvar text = new FlxText(0, 0, 50, 'Text');\r\n\t\tvar sprite = new FlxSprite();\r\n\t\tsprite.makeGraphic(100, 100, 0, true);\r\n\t\tsprite.stamp(text);\r\n\t}\r\n}\r\n```\r\n\r\n```\r\nCannot stamp to or from a FlxSprite with no graphics.\r\nCalled from flixel.FlxSprite::stamp line 707\r\nCalled from PlayState::create line 14\r\nCalled from flixel.FlxGame::switchState line 639\r\nCalled from flixel.FlxGame::create line 341\r\nCalled from openfl._legacy.events.EventDispatcher::dispatchEvent line 98\r\nCalled from openfl._legacy.display.DisplayObject::__dispatchEvent line 182\r\nCalled from openfl._legacy.display.DisplayObject::dispatchEvent line 70\r\nCalled from openfl._legacy.display.DisplayObject::__onAdded line 362\r\nCalled from openfl._legacy.display.DisplayObjectContainer::__onAdded line 379\r\nCalled from openfl._legacy.display.DisplayObject::__setParent line 423\r\nCalled from openfl._legacy.display.DisplayObjectContainer::addChild line 31\r\nCalled from Main::new line 11\r\nCalled from DocumentClass::new line 217\r\nCalled from DocumentClass::$init line 217\r\nCalled from Type::createInstance line 108\r\nCalled from ApplicationMain::main line 119\r\nCalled from openfl._legacy.Lib::create line 122\r\n```\r\n"}}