Controlling ik with script

sorry, this is probably a very basic thing…

i have an ik armature set up with “runtime” selected. when i test the swf i can pull the hand and the arm follows, but when i animate the hand with as3 it detaches from the body, any ideas?