1 Reply Latest reply on Sep 17, 2006 6:58 PM by Newsgroup_User

    text box within an mc problem

    bwclan
      hi all - i am trying to have a scrolling text box that is within an mc - i just cannot get it to work lol - the annoying thing is it works if its on the main timeline - just not in an mc - is there something i am doing wrong here - should i ne using _root somewhere within the action script
      here is the code
      this is on my up button

      onClipEvent (enterFrame) {
      if (scrolling) {
      _root.textField.scroll--;
      }
      }


      this is on the down button

      onClipEvent (enterFrame) {
      if (scrolling) {
      _root.textField.scroll++;
      }
      }

      and this is the text which uses a dynamic text box

      textField = "Here you have it:\n"

      +"blah blah etc \n"

      cheers all
      craig
        • 1. Re: text box within an mc problem
          Level 7


          bwclan wrote:
          > hi all - i am trying to have a scrolling text box that is within an mc - i just
          > cannot get it to work lol - the annoying thing is it works if its on the main
          > timeline - just not in an mc - is there something i am doing wrong here -
          > should i ne using _root somewhere within the action script
          > here is the code
          > this is on my up button

          this line "_root.textField.scroll--;" confine the action to seek the text
          field on the main timeline (root of the movie)
          And it is no longer there once you place it in movie clip.
          You need to adjust the paths accordingly. _root.MovieClip.textField



          --
          Best Regards

          Urami


          --


          <urami>
          If you want to mail me - DO NOT LAUGH AT MY ADDRESS
          </urami>