;

PDA

Click to See Complete Forum and Search --> : Functions


BreakPoint
07-06-2002, 07:03 AM
Has anyone created their own functions in KoolMoves?

Bob Hartzell
07-06-2002, 09:19 AM
Hilary has. That functionality is working.

bridelh
07-07-2002, 12:06 PM
Yes,
User defined functions were implemented from KM ver 3.2

The only thing that does not work at the moment is Function Literals:

I.E. you cannot define a function like so:
myFunction = function (a, b) { return a + b };

Only works like this:

function addNumbers(a, b){
return a + b;
}

Functions are a big plus because they allow you to put most of your code on the first frame of the movie and invoke the functions from anywhere.

addNumbers(2, 4);

Hilary

--

necromanthus
07-07-2002, 07:25 PM
Originally posted by BreakPoint
Has anyone created their own functions in KoolMoves?


You'll find an intresting example in my KoolMoves section in a couple of days.