Bone tool

need help on manipulating Bone Tool through AS… im trying to build an octopus (when you grab it, its legs with move around then stop (kind of physics like)

any suggestions or tutorials will be appreciated
thanks