If I understand this correctly the movie clip will point in some direction and when it is clicked the clip moves off in that direction. If this is correct there are several ways to handle this. First I will assume you want the clip to move off in a straight line, curves can be done as well but require a bit more calculations. The easiest way is to pick several off screen points that the clip will move to. Say the clip can point in 8 different directions then select the end points of each of those directions and use the following formula to calculate intermediate points
_y - yendpoint = (_ystartpoint - _yendpoint)/(_xstartpoint - _xendpoint)(_x - _xendpoint) Where you simply loop through a for loop that starts at _xstartpoint and ends at _xendpoint. If I knew what you were using to rotate the clip I could suggest alternate methods that would use the current position of the clip to calculate the motion in question. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Kurt Dommermuth Sent: Monday, March 12, 2007 1:30 PM To: [email protected] Subject: [Flashcoders] trig? calculus? put me out my misery Hi all, I have what I initially thought was simple problem, but I've been racking my brains, searching the web and I just don't get it. I have a movieclip that the user can rotate . When they click the movieclip shoots off in the direction it's pointing. It's goes off the stage and simply stops. the speed is fixed. there is no gravity. How do I determine the _x and _y value somewhere off stage? I'd appreciate any help. even if someone could let me know what to search for. thank you! Kurt _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com _______________________________________________ [email protected] To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com

