all groups > flash actionscript > february 2007 >
You're in the

flash actionscript

group:

Vertical Thumbnail Scroller problem


Vertical Thumbnail Scroller problem brandon_haslip
2/5/2007 8:07:55 PM
flash actionscript:
I have a vertical thumbnail scroller that scrolls up or down depending on where
your mouse is. The problem is that when the movie starts the thumbnails start
scrolling.

Does anybody know a way for me to have it be still until someone rolls over
it. Also, i would like it to stop when someone rolls out of it. Any help would
be greatly appreciated.

Here is a link to the FLA.
http://www.rdgcreative.com/clients1/vertical_scroll.fla

Thanks.
Re: Vertical Thumbnail Scroller problem myIP
2/5/2007 8:23:04 PM
Copy and paste the code below on the first frame. Then I would make a
shape/graphic as a background for photo movieclip. So you would need to go
inside of this mc and create the shape on the bottom layer of the timeline.
This will ensure a smooth tween.

Where did you find this code?


stop();
this.photo.onRollOver = function ()
{
gotoAndPlay(2);
}

this.photo.onRollOut = function ()
{
gotoAndStop(1);
}
Re: Vertical Thumbnail Scroller problem SymTsb
2/5/2007 8:25:20 PM
go to the following url.... one of the best scrolling thumbnail box tutorials (with actionscript) out there.

Re: Vertical Thumbnail Scroller problem myIP
2/5/2007 8:47:58 PM
Ah thanks for the link SymTsb! I was just curious on the code that was in
brandon_haslip?s FLA, it only uses a few lines of code to do the animation!
Also brandon_haslip you probably would also want to put the following line of
code directly below on the same frame, this will ensure that the user doesn?t
ReleaseOutside and keep it scrolling;


this.photo.onReleaseOutside = this.photo.onRollOut;
AddThis Social Bookmark Button