2 Replies Latest reply on Apr 16, 2006 2:05 AM by biiin

    Dynamic scrollbars

    biiin
      Hi!
      I have created a dynamic scrollbar with the code :

      _root.createEmptyMovieClip("textHolderMC",1);
      textHolderMC.loadVariables("boende.txt");
      textHolderMC.onData = function() {
      tf.text = this.boende;
      sb.setScrollContent("tf");
      };

      But now i need an other one on the same page, so i did thise :

      _root.createEmptyMovieClip("textHolderMC",1);
      textHolderMC.loadVariables("boende.txt");
      textHolderMC.onData = function() {
      tf.text = this.boende;
      sb.setScrollContent("tf");
      };
      _root.createEmptyMovieClip("accessMC",2);
      accessMC.loadVariables("access.txt");
      accessMC.onData = function() {
      tf2.text = this.access;
      sb2.setScrollContent("tf2");
      };
      But the second one won´t scroll.

      any ideas? You can dowload my fla here (test.zip, about 1kb).

      Thank you!