0 Replies Latest reply on Mar 1, 2007 9:48 PM by Kasem_Abotel

    How can I have menu scroll after certaing size

    Kasem_Abotel
      Hi

      I am creating a menu via teh following code

      private var point1:Point = new Point();
      private var myMenu:Menu;

      // Create and display the Menu control.
      private function showMenu():void {
      myMenu= Menu.createMenu(panel, myMenuData, false);
      myMenu.labelField="@label"
      myMenu.addEventListener("itemClick", menuHandler);

      // Calculate position of Menu in Application's coordinates.
      point1.x=mybutton.x;
      point1.y=mybutton.y;
      point1=mybutton.localToGlobal(point1);

      myMenu.show(point1.x + 25, point1.y + 25);
      }

      now I have a case where menu data are long and I want the menu to scroll

      I tried set verticalScrollPolicy to "auto" or "true" and that did not work
      I tried set the max height and it did not work

      Am I missing something

      Thanks for help

      Kasem