This content has been marked as final.
Show 3 replies
-
1. Re: Cannot expand movieclip any more
za beezo Apr 5, 2007 10:35 AM (in response to toucansu)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 Apr 5, 2007 11:16 AM (in response to toucansu)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 Apr 5, 2007 12:15 PM (in response to za beezo)"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
