[FMX] Math is Sour

Im working on some simple tests using Math in flash. The first thing I tried was a small marble game where you could click-and-drag, then release, and it would fly off in the opposite direction you dragged going at a certain speed depending on how far you pulled back. Except it didn’t work… It always shoots off in some random direction… Might anyone have an idea of what my source code should look like? (im using the school comp and dont have the actual source.)