3 Replies Latest reply: Apr 5, 2007 12:15 PM by toucansu RSS

    Cannot expand movieclip any more

    toucansu Community Member
      I have a movie that I inherited that I think was made with Flash 5. I am working on a movie clip in it that scrolls almost 40 thumbnail images (now) horizontally using < > buttons. That's all good. I was adding thumbnails one by one and the movie clip area would expand to include them each time, until now. I have about 3 more to add and the movie clip won't expand any more. I can expand how far the 'scroll' will go to well beyond where the thumbnails end, but I can't physically add them any more. The properties box for the movie clip won't allow me to make the width larger either, but I think it would just stretch the symbol anyway, distorting it.

      I had posted this problem in an other area yesterday and someone wanted to see the .fla file. I didn't know how to attach that. All I see is the Attach Code button below and that doesn't sound appropriate. So if someone wants to see it, please let me know how to do that.

      Thanks,
      Sue
        • 1. Re: Cannot expand movieclip any more
          za beezo
          So is it a scroller??? If so you may need to update the max and min x positions after adding the new photos...using the info box...this is because flash no longer know how far to to scroll to.

          Hope this helps.

          -B
          • 2. Re: Cannot expand movieclip any more
            toucansu Community Member
            Yup, it's a scroller. I have messed with some of those values. This is the code for the "scroll" instance of this scroll movie clip:

            onClipEvent (load) {
            _root.movespeed = 120;
            }
            onClipEvent (enterFrame) {
            if (Key.isDown(Key.RIGHT)) {
            this._x -= _root.movespeed;
            if (this._x<=-1420.4) {
            setProperty("_root.scroll", _x, -1420.4);
            }
            } else if (Key.isDown(Key.LEFT)) {
            this._x += _root.movespeed;
            if (this._x>=87) {
            setProperty("_root.scroll", _x, 87);
            }
            }
            }

            I tried changing the 1420.4 value but it didn't seem to have any effect. The other value was so small I didn't think it was the right one. I have very limited understanding of Actionsript as I'm sure is painfully obvious!

            There are also "left scroll" and "right scroll" movie clips that hold the code for how far the clip goes to each side. this is "left scroll":

            var thisTime = getTimer();
            if (lastTime) {
            var elapsedTime = (thisTime - lastTime) / 1000;
            move = _root.movespeed * elapsedTime
            } else {
            move = 0;
            }
            lastTime = thisTime;
            if (_root.scroll._x>=2920) {
            lastTime = 0;
            gotoAndStop (1);
            } else {
            _root.scroll._x += move
            }

            I have changed the 2920 value. That will make the scroll go past where the thumbnails end if I put in a larger number but the movie clip itself will not expand to allow more thumbnails. The 1000 value, I believe, is the speed of the scroll, which is perfect, so I left that alone. To see this in action I have a dummy page here: http://www.drycreekdigital.com/erictrabert.com/thegallery.htm
            I'm still polishing it so, you know....

            Am I making any sense as to what my problem is?

            Sue
            • 3. Re: Cannot expand movieclip any more
              toucansu Community Member
              "If so you may need to update the max and min x positions after adding the new photos...using the info box...this is because flash no longer know how far to to scroll to."

              I tried changing the values in the info box while the scroll movie clip has the focus on the Scene's stage, I get an "invalid size and position" error and it changes it back to the previous value. (while in the scroll movie clip the info box only gives the position of whatever thumbnail has the focus) I can't add more thumbnails because the area will not enlarge to let them in. I put them so far over I can't even see the whole thumbnail. I can't move them all the way to where they need to be because the area will not enlarge and I can't get there, That is the big problem here.

              Sue