Original Post
THIS IS THE CODE I AM USING for more info the animationRootFrame is from the SimpleAnimation Sample and i am getting the error on the line AC.SetTrackAnimationSet(1, AS);
[source lang=c#]
AnimationSet AS;
AnimationSet AS2;
//testBody.rootFrame AnimationRootFrame
//ModheshBody.rootFrame AnimationRootFrame
AS = testBody.rootFrame.AnimationController.GetAnimationSet(0);
AS2 = ModheshBody.rootFrame.AnimationController.GetAnimationSet(0);
AnimationController AC = ModheshBody.rootFrame.AnimationController.Clone(50, 30, 10, 30);
AC.SetTrackAnimationSet(0, AS2);
AC.SetTrackAnimationSet(1, AS);
ModheshBody.rootFrame.AnimationController.SetTrackEnable(0, true);
ModheshBody.rootFrame.AnimationController.SetTrackPosition(0, 0);
ModheshBody.rootFrame.AnimationController.SetTrackSpeed(0, elspsedTime);
ModheshBody.rootFrame.AnimationController.SetTrackWeight(0, 1);
ModheshBody.rootFrame.AnimationController.SetTrackAnimationSet(0, AS);