1 Reply Latest reply on Aug 13, 2010 12:17 PM by learner_7n

    Why I am getting Error: 1026 "Constructor Functions must be instanst methods"?

    learner_7n Level 1

      Hi,

       

      Why I am getting the Error: 1026 "Constructor Functions must be instanst methods". Please help.

       

      Using the following code:

       

      stop();

       

      import fl.transitions.Tween;
      import fl.transitions.TweenEvent;
      import fl.transitions.easing.*;

      var homeTween:Tween = new Tween(content_mc,"x",Regular.easeOut,content_mc.x,100,1,true);

       

      home.addEventListener(MouseEvent.CLICK, clickSection);
      activities.addEventListener(MouseEvent.CLICK, clickSection);
      services.addEventListener(MouseEvent.CLICK, clickSection);
      gallery.addEventListener(MouseEvent.CLICK, clickSection);

       

      function clickSection(evtObj:MouseEvent){
          //trace shows what's happening.. in the output window
          trace ("The "+evtObj.target.name+" button was clicked!")
          //go to the section clicked on...
          gotoAndStop(evtObj.target.name);
      }

       

       

       

      Thanks.