Groups | Blog | Home
all groups > flash actionscript > may 2005 >

flash actionscript : limit scrolling of holder MC based on dimensions of attached MC?


macron
5/8/2005 4:30:31 AM
hi all,

i have a holder MC called 'thumbholder' into which the user can load several
different sets of thumbnail images. these sets of images are individual movie
clips, and are loaded into 'thumbholder' via attachMovie. there is a script i
put directly on 'thumbholder' to limit the up or down scrolling movement of the
first set of thumbs.

onClipEvent(enterFrame){
if(this.up==true and _y>-420)
this._y-=8;
if(this.down==true and _y<50)
this._y+=8;
}

but some of the sets of thumbs are a little taller, or a little shorter. so,
is there a way to change the up or down scrolling limits based on the height of
the thumbnail MC that has been loaded into 'thumbholder'?

any ideas?

cheers,
macron.

p.s. does anyone else notice that each time you get closer to finishing a
flash site, you get further away?
macron
5/9/2005 12:00:00 AM
if anyone wants to look at the file, it's

http://www.belindagrayphotography.com/test/weddings5.html
(the .fla is http://www.belindagrayphotography.com/weddings5.fla)

clicking the blue and green buttons toggles between the first two sets of
thumbs. i realize there's another problem. if you scroll down in one of the
thumbnail MCs, when you toggle between the thumb MCs, they're loaded into the
'thumbholder' MC in the same position. is there a way to modify the loadThumb
scripts so that 'thumbholder' gets reset to its original position?

cheers,
macron.


macron
5/10/2005 12:00:00 AM
hi all,

any takers? i'm stuck. :brokenheart;

yours,
AddThis Social Bookmark Button