{ "id": "87740", "key": "AC-3019", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2012-03-30T16:31:35.000+0000", "created": "2012-03-12T12:49:09.000+0000", "labels": [ "android" ], "versions": [], "issuelinks": [ { "id": "16258", "type": { "id": "10002", "name": "Duplicate", "inward": "is duplicated by", "outward": "duplicates" }, "inwardIssue": { "id": "87747", "key": "TIMOB-8461", "fields": { "summary": "iOS: View animate() not firing the CallBack with Ti.UI.createAnimation", "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" } }, "priority": { "name": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:48:03.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": "Using the example found in documentation for Titanium.UI.Animation we are unable to get the animate() function to work properly with Ti.UI.createAnimation\r\n\r\n{code:title=app.js - Does not work |borderStyle=solid}\r\nTi.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({title:'Window'});\r\nvar box = Ti.UI.createView({\r\n backgroundColor : 'red',\r\n height : '100',\r\n width : '100'\r\n});\r\nwin.add(box);\r\nwin.open();\r\n\r\nbox.addEventListener('click', function() {\r\n var matrix = Ti.UI.create2DMatrix()\r\n matrix = matrix.rotate(180);\r\n matrix = matrix.scale(2, 2);\r\n\r\n var a = Ti.UI.createAnimation({\r\n transform : matrix,\r\n duration : 2000,\r\n autoreverse : true,\r\n repeat : 3\r\n });\r\n box.animate(a);\r\n});\r\n{code} \r\n\r\nHowever if we create an object with using Ti.UI.createAnimation it works just fine!\r\n{code:title=app.js - Works |borderStyle=solid}\r\nTi.UI.setBackgroundColor('#000');\r\nvar win = Titanium.UI.createWindow({title:'Window'});\r\nvar box = Ti.UI.createView({\r\n backgroundColor : 'red',\r\n height : '100',\r\n width : '100'\r\n});\r\nwin.add(box);\r\nwin.open();\r\n\r\nbox.addEventListener('click', function() {\r\n var matrix = Ti.UI.create2DMatrix()\r\n matrix = matrix.rotate(180);\r\n matrix = matrix.scale(2, 2);\r\n\r\n box.animate({\r\n transform : matrix,\r\n duration : 2000,\r\n autoreverse : true,\r\n repeat : 3\r\n });\r\n});\r\n{code} ", "attachment": [], "flagged": false, "summary": "View animate() not working with Ti.UI.createAnimation", "creator": { "name": "peteberry@ewrinc.com", "key": "peteberry@ewrinc.com", "displayName": "Pete Berry", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "peteberry@ewrinc.com", "key": "peteberry@ewrinc.com", "displayName": "Pete Berry", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium Studio, build: 1.0.7.201112152014\r\nSDK versions 1.7.2 - 1.8.1\r\nAndroid API: Android 2.2 and Google APIs Android 2.3.3\r\n", "comment": { "comments": [ { "id": "189369", "author": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "body": "Not exactly the same as TIMOB-8461. This bug (TC-718) is about the animation not running. TIMOB-8461 is about the \"completion\" callback (of the animate method) not firing.", "updateAuthor": { "name": "bitshftr", "key": "bitshftr", "displayName": "Shawn Lipscomb", "active": true, "timeZone": "America/New_York" }, "created": "2012-03-30T19:24:56.000+0000", "updated": "2012-03-30T19:24:56.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }