View Full Version : stop() function?

05-18-2007, 01:27 PM
I want to stop in the middle of a function if a certain coindition is met, my first try of how to fix this ( moveThis.stop() ) magically worked. Until I discovered that FF gives an error:

moveThis.stop is not a function.

I tried searching for the correct usage but I found next to nothing...

How should this be used? I want to stop the funcion moveThis() somewhere in the middle.

05-18-2007, 01:32 PM
What about to use:



05-18-2007, 01:39 PM
Ah, worked perfectly, thanks!

I did not know return actually stops a function, I always used it at the end of a function to return a value.

What about the stop function though, is it still in use, or whats the deal with that? (just curious)

05-18-2007, 02:24 PM
I am not sure if is it possible stop the function Kirl... :) I have no idea