3 Replies Latest reply on Dec 17, 2007 8:01 PM by creoe

    Can't set HScrollBar "Scroll" variable inside of function in <mx:Script>

    creoe
      Why can't I set the scroll function for a ScrollBar from a function. It can only be hard coded and not dynamically set. This makes it hard to make Scroll bars on the fly.

      I want to do the following:
      var myBar:HScrollBar = new HScrollBar();
      myBar.scroll="myFunction();";

      Buit it says that myBar does not have a variable named scroll. What is the deal?!!!