Thanks a lot! I'll study harder in the future.
(btw I'm also looking for a way to play an animation in a custom function... but this gives me an inspiration. thanks anyway