2 Replies Latest reply on Oct 23, 2010 5:01 AM by vpxav

    How to declare a function on slider change event in AS3?

    vpxav Level 1

      Hello everyone,

      I have a function that adds a slider to a Panel;

      I would like this slider to launch another function on change event.


      I'm trying to do this:

      function(){return A.apply(null,[this].concat($A(arguments)))}


      public var mySlider : Hslider = new Hslider;

      private function addSlider():void{

           mySlider.change=onSliderChanged(event);  /* <= This line is my problem */




      Any help would be really appreciated.

      Thanks a lot.