4 Replies Latest reply on Jul 11, 2007 9:52 PM by kglad

    Function...malfuntioning.

      I'm trying to create a function without getting "statement must appear within on handler" in the error box.

      This appears in the flash help file and also registers an error:

      function traceMe() {
      trace("your message");
      }
      traceMe();

      I need the code to attach to a button and also to call without the button like:

      on (release) = function();

      and:

      function();

      Anyone know how to do this?