Some simple Trig actually.

As an example, name a movieClip "myClip" and rotate it. Then add this code
to the frame.

this.onEnterFrame = function(){
   rads = myClip._rotation * (Math.PI/180);
   myClip._x += Math.sin(rads);
   myClip._y -= Math.cos(rads);
}

That should get you started.

By the way, Danny K's book on Math for Programmers is a good buy.

Charles P.



On 3/12/07, Kurt Dommermuth <[EMAIL PROTECTED]> wrote:

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

Reply via email to