Author Topic: Strange behavior with Call When Finished  (Read 3992 times)

Shorinji

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Strange behavior with Call When Finished
« on: July 10, 2012, 11:17:46 AM »
Hi,
I have a strange behavior with call when finished.
I have some panels whose animation can be played from different objects. On some object, i want to call a callback when animation is finished. On other object, i want nothing to happen when the animation is finished.
However in some cases ( i have not been able to determine yet a more precise definition of "in some cases", however i have a reproducible case), the callback will always be called no matter which object requested the animation to be played, as long as the callback has been called once.
To correct this issue, i added the following code line 172 of the file UIButtonPlayAnimation :
  1. else
  2. {
  3.     anim.eventReceiver = null;
  4.     anim.callWhenFinished = "";
  5. }
  6.  
I suspect that this issue might appear for your tweens too.
Can you please let me know if you have been able to reproduce this issue? Or if it is a normal behavior in your opinion?
Thanks in advance.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Strange behavior with Call When Finished
« Reply #1 on: July 10, 2012, 06:05:29 PM »
Sounds to me like it's one of those "who will ever use it like that?" issues. I'll add your fix.

Shorinji

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 17
    • View Profile
Re: Strange behavior with Call When Finished
« Reply #2 on: July 10, 2012, 11:41:47 PM »
Hi,
Yes, you will eventually have more and more of this kind of issues if your GUI is more and more successful.
If people report them, it's a good sign for you :D
Anyway thanks for your quick support.