A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Functions

  1. #1
    Junior Member
    Join Date
    May 2002
    Posts
    26
    Has anyone created their own functions in KoolMoves?

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Posts
    3,512
    Hilary has. That functionality is working.

  3. #3
    Senior Member
    Join Date
    Sep 2001
    Location
    Australia
    Posts
    379
    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

    --

  4. #4
    undead creature necromanthus's Avatar
    Join Date
    Feb 2002
    Location
    ROM
    Posts
    1,890
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center