4 Replies Latest reply on Jul 5, 2011 12:43 AM by ziofonta222

    no property named "onMotionFinished"


      Hello everybody,

      i'm experiencing a strange issue,  until now i alwasy have used "onMotionFinished" without problem, like in this way


      import mx.transitions.Tween;

      import mx.transitions.easing.*;

      var anim:Tween = new Tween(this, "_alpha", Strong.easeOut, 100, 0, 0.6, true);

      anim.onMotionFinished=function() {




      suddendly, without any reasons, i get this error in the compiler when trying to publish


      no property named "onMotionFinished"


      (i translated it from italian language)


      i tried also opening other fla i created with the same actionscript, that have always worked fine.

      there is no way to use the property again....


      i finally founded a similar thread here http://www.kirupa.com/forum/archive/index.php/t-217738.html

      while i was typing this thread.

      it has been solved removing the strict type declaration on the tween


      var anim:Tween = new Tween.....




      var anim = new Tween


      very strange but it is so, as the author suggested. with strict declaration it doesn't work for some strange reason.