{"action":"closed","issue":{"url":"https://api.github.com/repos/pdelia/away3d/issues/171","labels_url":"https://api.github.com/repos/pdelia/away3d/issues/171/labels{/name}","comments_url":"https://api.github.com/repos/pdelia/away3d/issues/171/comments","events_url":"https://api.github.com/repos/pdelia/away3d/issues/171/events","html_url":"https://github.com/pdelia/away3d/issues/171","id":85753924,"number":171,"title":"AnimationEvent.SQUENCE_DONE: does not dispatch properly.","user":{"login":"pdelia","id":12096091,"avatar_url":"https://avatars.githubusercontent.com/u/12096091?v=3","gravatar_id":"","url":"https://api.github.com/users/pdelia","html_url":"https://github.com/pdelia","followers_url":"https://api.github.com/users/pdelia/followers","following_url":"https://api.github.com/users/pdelia/following{/other_user}","gists_url":"https://api.github.com/users/pdelia/gists{/gist_id}","starred_url":"https://api.github.com/users/pdelia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdelia/subscriptions","organizations_url":"https://api.github.com/users/pdelia/orgs","repos_url":"https://api.github.com/users/pdelia/repos","events_url":"https://api.github.com/users/pdelia/events{/privacy}","received_events_url":"https://api.github.com/users/pdelia/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/pdelia/away3d/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/pdelia/away3d/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/pdelia/away3d/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-06T13:38:43Z","updated_at":"2015-06-06T13:38:44Z","closed_at":"2015-06-06T13:38:44Z","body":"#3 Issue by __GoogleCodeExporter__, created on: 2015-04-24T07:50:58Z\n\n```\nWhat steps will reproduce the problem?\n1. (character.handle as Mesh).addOnSequenceDone(doCharacterStance);\n2. (character.handle as Mesh).play(new AnimationSequence(action, true,\nfalse, 12));\n3. Wait until animation finishes for the \"doCharacterStance\" function to\nexecute.\n\nWhat is the expected output? What do you see instead?\ndoCharacterStance() should have been called, but wasn't. Verified several\ntimes.\n\nWhat version of the product are you using? On what operating system?\n2.1.0, Windows Vista Premium\n\nPlease provide any additional information below.\n\nI fixed this problem by adding the following to the \"BaseMesh.tick\" function:\n\nif (_animation) {\n\tif (_animation.frame == _animation.sequence.length - 1) {\n\t\tif (hasSequenceEvent) {\n\t\t\tif (_sequencedone == null)\n\t\t\t\t_sequencedone = new AnimationEvent(AnimationEvent.SQUENCE_DONE, null);\n\t\t\tdispatchEvent(_sequencedone);\n\t\t}\n\t}\n}\n\nThis is obviously a hack that will get me through until the sources are\nproperly patched.\n\nSincerely,\nCaleb Gray\n```\n\nOriginal issue reported on code.google.com by `PhotonRe...@gmail.com` on 25 May 2008 at 11:40"}}