{"action":"closed","issue":{"url":"https://api.github.com/repos/openfl/openfl/issues/533","labels_url":"https://api.github.com/repos/openfl/openfl/issues/533/labels{/name}","comments_url":"https://api.github.com/repos/openfl/openfl/issues/533/comments","events_url":"https://api.github.com/repos/openfl/openfl/issues/533/events","html_url":"https://github.com/openfl/openfl/issues/533","id":60797565,"number":533,"title":"Bitmap.clone() does not work on html5","user":{"login":"T1mL3arn","id":9349164,"avatar_url":"https://avatars.githubusercontent.com/u/9349164?v=3","gravatar_id":"","url":"https://api.github.com/users/T1mL3arn","html_url":"https://github.com/T1mL3arn","followers_url":"https://api.github.com/users/T1mL3arn/followers","following_url":"https://api.github.com/users/T1mL3arn/following{/other_user}","gists_url":"https://api.github.com/users/T1mL3arn/gists{/gist_id}","starred_url":"https://api.github.com/users/T1mL3arn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/T1mL3arn/subscriptions","organizations_url":"https://api.github.com/users/T1mL3arn/orgs","repos_url":"https://api.github.com/users/T1mL3arn/repos","events_url":"https://api.github.com/users/T1mL3arn/events{/privacy}","received_events_url":"https://api.github.com/users/T1mL3arn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-12T10:22:47Z","updated_at":"2015-03-17T01:19:49Z","closed_at":"2015-03-17T01:19:49Z","body":"Sample code\r\n```Haxe\r\nvar bmd1 = new BitmapData(100, 100, false, 0xAA0000);\r\nvar bmd2 = bmd1.clone();\r\n\r\nvar bmp1 = new Bitmap(bmd1);\r\nvar bmp2 = new Bitmap(bmd2);\r\n\r\nbmp1.y = bmp2.y = 100;\r\nbmp1.x = 100;\r\nbmp2.x = 220;\r\n\r\nbmd1.fillRect(new Rectangle(0, 50, 100, 20), 0x00AA00);\r\n\r\naddChild(bmp1);\r\naddChild(bmp2);\r\n```\r\nFlash result\r\n![img1](https://cloud.githubusercontent.com/assets/9349164/6616029/6c6b6c6c-c8f5-11e4-9b83-cf6709d3b26b.PNG)\r\nHtml5-canvas result\r\n![img2](https://cloud.githubusercontent.com/assets/9349164/6616031/75f12fd8-c8f5-11e4-9308-2af679e19891.PNG)\r\n"}}