1 Reply Latest reply on Feb 28, 2008 11:27 AM by micgamb

    importing scroll

    micgamb
      hello,

      I have created (with loads of help of the forum) a scroll mcl called "scroll forum.swf" when I 'm importing the file into my main time line into an empty mcl (holder2) the scroll effect disapear!!! and with it all the properties given. What can I do??
      I had a similar problem of losing button usability when importing external swf but I have resolved using _level0 target but in this scroll file I do no know where to place the code..
      thank you so much

      this is the code of the button in the main time line that triggers the scrolling file:
      var mcl:MovieClipLoader = new MovieClipLoader ();
      var mclL:Object = new Object ();
      trace(holder2);

      mclL.onLoadProgress = function (target,loaded,total) {
      loader.percent.text = Math.round ((loaded/total) * 100) +"%";
      }

      mclL.onLoadInit = function () {
      loader._visible = false;
      loader.percent.text ="";

      }

      mcl.addListener(mclL)


      b1.onRelease = function () {
      loader._visible = true
      mcl.loadClip("scroll forum.swf", holder2);
      }

      and these are the codes in the scrolling file :

      onClipEvent (enterFrame) {
      this._x = -(_root.scroll_movie.cursore.b);
      }

      onClipEvent (load) {
      setProperty(this, _x, int(_x));

      }

      ////////

      onClipEvent (load) {
      setProperty(this, _x, int(_x));
      }
      onClipEvent (enterFrame) {
      a = new Object();
      a.y = this._y;
      a.x = this._x;
      _root.scroll_movie.barra.globalToLocal(a);
      b = int(a.x*2);
      }

      /////

      _root.scroll_movie.cursore.p_barra.onPress = function() {
      _root.scroll_movie.cursore.startDrag(false,8,8,600,8);
      };
      _root.scroll_movie.cursore.p_barra.onRelease = function() {
      _root.scroll_movie.cursore.stopDrag();
      };

      _root.scroll_movie.cursore.p_barra.onReleaseOutside = function() {
      _root.scroll_movie.cursore.stopDrag();
      };


      /////


      onClipEvent (enterFrame) {
      this._x = -(_root.scroll_movie.cursore.b);
      }

      onClipEvent (load) {
      setProperty(this, _x, int(_x));

      }


      there is evertrhing....
      thank you so much