7 Replies Latest reply: Jul 20, 2010 4:44 PM by Andrei1 RSS

    error: 1026: Constructor functions must be instance methods.

    richyboytbn

      I am follwoing a tutorial on linda.com about creating a website in Flash

       

      everything was going well until i started trying to copy the action script in the online examples

       

      now I keep getting this error message and can't figure out how to get rid of it:

       

      1026: Constructor functions must be instance methods.

       

      any assistance wouold be much appreciated, thank you

       

      here is the action script I am using for my buttons:

       

      stop();

      tv.addEventListener(MouseEvent.CLICK, clickSection);

      function clickSection(evtObj:MouseEvent){

      gotoAndStop("tv");
      }