{"action":"created","issue":{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/662","labels_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/662/labels{/name}","comments_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/662/comments","events_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/662/events","html_url":"https://github.com/GoodBoyDigital/pixi.js/issues/662","id":29807906,"number":662,"title":"Event informing about DO visual creation & CacheAsBitmap on Cocoon","user":{"login":"cinkonaap","id":2312526,"avatar_url":"https://avatars.githubusercontent.com/u/2312526?v=3","gravatar_id":"","url":"https://api.github.com/users/cinkonaap","html_url":"https://github.com/cinkonaap","followers_url":"https://api.github.com/users/cinkonaap/followers","following_url":"https://api.github.com/users/cinkonaap/following{/other_user}","gists_url":"https://api.github.com/users/cinkonaap/gists{/gist_id}","starred_url":"https://api.github.com/users/cinkonaap/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cinkonaap/subscriptions","organizations_url":"https://api.github.com/users/cinkonaap/orgs","repos_url":"https://api.github.com/users/cinkonaap/repos","events_url":"https://api.github.com/users/cinkonaap/events{/privacy}","received_events_url":"https://api.github.com/users/cinkonaap/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/labels/CocoonJS","name":"CocoonJS","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-03-20T10:32:39Z","updated_at":"2015-04-12T18:44:35Z","closed_at":"2015-04-12T18:44:35Z","body":"Hey,\r\n\r\ntoday I encountered a problem that some functions operating on my visuals were called to early, and it happened to break my program ( without any error ). \r\n\r\n```javascript\r\nthis.viewComponent.navigator.show( e.getBody() );\r\nthis._currentMediatorName = mediatorClass.NAME;\r\nthis.facade.registerMediator( new mediatorClass(undefined, this.viewComponent.navigator.currentView) );\r\n```\r\n\r\nMediator was starting some TweenMax animation on viewComponent too early, so what I did is something that Flash is offering, namely I added at the end of the ( in that case ) DisplayObjectContainer functions : _renderWebGL and _renderCanvas line:\r\n\r\n```javascript\r\nthis.dispatchEvent( { type : 'FRAME_CONSTRUCTED' } );\r\n```\r\n\r\nSo I could wait with registering my mediator on that event callback.\r\n\r\nI think it should be considered. This won't happen on your PC browser, but it happened to me on Cocoons Android and iOS.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/comments/92099591","html_url":"https://github.com/GoodBoyDigital/pixi.js/issues/662#issuecomment-92099591","issue_url":"https://api.github.com/repos/GoodBoyDigital/pixi.js/issues/662","id":92099591,"user":{"login":"GoodBoyDigital","id":3112434,"avatar_url":"https://avatars.githubusercontent.com/u/3112434?v=3","gravatar_id":"","url":"https://api.github.com/users/GoodBoyDigital","html_url":"https://github.com/GoodBoyDigital","followers_url":"https://api.github.com/users/GoodBoyDigital/followers","following_url":"https://api.github.com/users/GoodBoyDigital/following{/other_user}","gists_url":"https://api.github.com/users/GoodBoyDigital/gists{/gist_id}","starred_url":"https://api.github.com/users/GoodBoyDigital/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoodBoyDigital/subscriptions","organizations_url":"https://api.github.com/users/GoodBoyDigital/orgs","repos_url":"https://api.github.com/users/GoodBoyDigital/repos","events_url":"https://api.github.com/users/GoodBoyDigital/events{/privacy}","received_events_url":"https://api.github.com/users/GoodBoyDigital/received_events","type":"User","site_admin":false},"created_at":"2015-04-12T18:44:35Z","updated_at":"2015-04-12T18:44:35Z","body":"as this issue is nearly a year old I think now is a good time to close it.. unless someone objects :D"}}