{ "id": "108547", "key": "AC-1808", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "6", "description": "", "name": "Hold" }, "resolutiondate": "2013-03-15T18:19:20.000+0000", "created": "2013-01-25T10:17:06.000+0000", "labels": [ "animation", "event", "ios", "triage" ], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:40:42.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When you add the start and the complete event to an animation, both of these events are not fired!", "attachment": [], "flagged": false, "summary": "Start and complete event for animation are not working", "creator": { "name": "elmarmaan", "key": "elmarmaan", "displayName": "Elmar Maan", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "elmarmaan", "key": "elmarmaan", "displayName": "Elmar Maan", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK 3.0.0GA\r\nOnly on IOS", "comment": { "comments": [ { "id": "235896", "author": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "body": "Hi Elmar,\n\nPlease provide more details:\n\n1. A simple reproducible test case (app.js)\n\n2. Your system details i.e Mac OS version, Titanium Studio version.\n\nThanks.", "updateAuthor": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "created": "2013-01-25T17:34:18.000+0000", "updated": "2013-01-25T17:34:18.000+0000" }, { "id": "236331", "author": { "name": "hardbyte", "key": "hardbyte", "displayName": "Craig Jones", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Apologies for jumping in, I took the following snippet from an old project I was updating and found the same issue. Just trying to action a function (alert in the demo below) after an animation has completed. \r\n\r\nSnow Leopard, iOS6, SDK3.0.0\r\n\r\n{code}\r\n//Page intro copy to fade in\r\nvar pageIntro = Ti.UI.createLabel({\r\n text: \"Some intro copy...\",\r\n font: {fontSize: 15, fontFamily: \"Verdana\"},\r\n color: '#000',\r\n width: 192,\r\n height: 70,\r\n top: 55,\r\n textAlign: 'center',\r\n opacity: 0\r\n}),\r\n pageIntroAnimation = Titanium.UI.createAnimation({\r\n curve:Ti.UI.ANIMATION_CURVE_EASE_IN,\r\n opacity:1,\r\n duration:800\r\n });\r\n \r\nwin.add(pageIntro);\r\n \r\n//Page intro copy fades in ok\r\npageIntro.animate(pageIntroAnimation);\r\n \r\npageIntroAnimation.addEventListener('complete', function(){\r\n //Not getting in here to action a function/alert\r\n alert(\"Animation complete\");\r\n});//complete\r\n{code}\r\n", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-01-28T23:31:19.000+0000", "updated": "2013-02-04T17:53:12.000+0000" }, { "id": "237090", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Unable to reproduce using this code and 3.0.0.GA in the simulator:\n{code}\n\nvar sampleSetWindow = Ti.UI.createWindow({\n});\n \nvar submitSampleButton = Ti.UI.createButton({\n title: \"Click to animate\",\n top: 20\n});\n \nsubmitSampleButton.addEventListener(\"click\", function(e){\n sampleSetWindow.animate(closeAnimation);\n});\n \nvar closeAnimation = Ti.UI.createAnimation({\n duration: 800,\n right: Ti.Platform.displayCaps.getPlatformWidth(),\n left: -Ti.Platform.displayCaps.getPlatformWidth(),\n});\n\ncloseAnimation.addEventListener(\"start\", function(e){\n\tTi.API.info(\"Animation start\");\n});\n\ncloseAnimation.addEventListener(\"complete\", function(e){\n Ti.API.info(\"Animation complete\");\n});\n\nsampleSetWindow.add(submitSampleButton);\nsampleSetWindow.open();\n{code}\n\nAlso tried Craig's code, with the addition of the var \"win\" to get it to work. Was unable to reproduce with 3.0.0.GA in simulator. Will try device.\n\nTo all, please provide additional info, such as iOS version, Xcode version, Mac OS version, CLI version (\"ti -v\" in terminal) and studio version.\n\n", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-04T20:01:23.000+0000", "updated": "2013-02-04T20:01:23.000+0000" }, { "id": "237111", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Both examples work on device built with SDK 3.0.0.GA. Will revisit if we can get more info.", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-04T21:45:13.000+0000", "updated": "2013-02-04T21:45:13.000+0000" }, { "id": "237628", "author": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "body": "The code sample on its own works for Craig, but not in his app, created possibly circa 2.1.3. His app works when 2.1.3 is selected. He upgraded to Xcode 4.6 and no change. He discovered this work around for his issue and will provide more detail when he has time.\n\n{code}\npageIntro.animate({\n curve:Ti.UI.ANIMATION_CURVE_EASE_IN,\n opacity:1,\n duration:800\n }, function(evt) {\n //run function\n alert(\"Animation Complete!\");\n });\n{code}", "updateAuthor": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-02-07T17:58:36.000+0000", "updated": "2013-02-07T17:58:36.000+0000" }, { "id": "242484", "author": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Will reopen when we get more information.", "updateAuthor": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2013-03-15T18:19:20.000+0000", "updated": "2013-03-15T18:19:20.000+0000" } ], "maxResults": 7, "total": 7, "startAt": 0 } } }