2 Replies Latest reply on Oct 30, 2010 6:30 AM by Ned Murphy

    Please help me how to set the UIScrollBar object(instancename) scroller at the end?

    imrankhanbscs

      this is my Code

       

      onClipEvent(load)
      {
      conversationbox.wordWrap = true;
      //my_bt.move(300, 100);
      scrollInstanceName.enabled=true;
      // Set the target text field.
      scroller.setScrollTarget(conversationbox);
      //if(scroller.height == conversationbox.maxScrollV)
      //{
          //Move it next to the text field.
          scroller.move(conversationbox.x +  conversationbox.width , conversationbox.y);
          scroller.height = conversationbox.height;
          scroller.scrollPosition = conversationbox.maxscroll - 1;
          conversationbox.scroll = conversationbox.maxscroll;
      //}
          scroller.update();
      }