I think you're trying to access properties of movieclips which haven't been yet created. Check that you have your targets created before you try to move them.