Great, it worked!!! Thanks!!!
some points to ponder upon:
When I used the code: duck.state(0), it worked as the duck won't move when the duck is first added.
If state(0) is invalid then why won't the program return an error remark?
also to keep in mind, when the duck is first added, it wouldn't be idle, but be in the 'ik.CAF' state.
so putting duck.state(0) the duck goes into the idle mode. if it works once then why won't it work again in the action end callback function?
sorry to ask so many questions, but I am just curious.
-Amit