Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2386] Animation 'complete' event does not fire if animation created with passed object

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-04-05T20:59:38.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsDocumentation
Labelsapi
ReporterJohn Law
AssigneeShak Hossain
Created2012-12-15T16:21:26.000+0000
Updated2016-03-08T07:41:25.000+0000

Description

The following code does not work var tableFadeIn = Titanium.UI.createAnimation({duration:1000}); tableFadeIn.opacity = 1; tableFadeIn.visible = true; //tableFadeIn.duration = 1000; tableFadeIn.addEventListener('complete',function() { Ti.API.info("never gets here"); }); The following code does work var tableFadeIn = Titanium.UI.createAnimation(); tableFadeIn.opacity = 1; tableFadeIn.visible = true; tableFadeIn.duration = 1000; tableFadeIn.addEventListener('complete',function() { Ti.API.info("gets here"); });

Comments

  1. Davide Cassenti 2013-04-05

    Tested with SDK 3.0.2.GA and the following code:
       var win = Ti.UI.createWindow({
           backgroundColor: 'black'
       });
       
       var view = Ti.UI.createView({
           backgroundColor: 'yellow',
           width: 100,
           height: 100,
           opacity: 0
       });
       
       var tableFadeIn = Titanium.UI.createAnimation({duration:1000});
       tableFadeIn.opacity = 1;
       tableFadeIn.visible = true;
       tableFadeIn.addEventListener('complete',function() { Ti.API.info("never gets here"); });
       
       win.add(view);
       
       win.open();
       
       view.animate(tableFadeIn);
       
    At the end of the animation, I can see the message in the log.
  2. Shak Hossain 2014-01-01

    We have not heard back from you since you posted the issue. Not sure if this is still an issue that need a fix from our platform team. If so, please send us a test case so that we can take next necessary step to fix. If we don't hear back, we will assume the issue is no longer valid and close it.

JSON Source