9 Replies Latest reply on Dec 11, 2008 1:13 PM by kglad

    Scroll Bar doesn't work well with button with action script

    anney1120
      I tried to attach a scroll bar to the dynamic text field. If I just assign a number for a loop to print strings to the dynamic text filed directly, the scroll bar can be seen. However, if I add a button for text inputs then create a loop to print strings in the dynamic text field, the scroll bar is not visible and can't be scrolled. The dynamic text field is assigned with an instance name from the beginning. Can somebody help, please? Thank you so so much. The codes with the button function is below:

      sum=0;
      display="";


      //button action
      enterButton.onRelease= function()
      {
      display="";
      for(i=0;i<input;i++)
      {
      sum=sum+i;
      display= display +i +", ";
      }

      //Add the sum to the display
      display= display +"\n"+ "The sum of the above numbers is:"+sum;
      }