Help - Search - Members - Calendar
Full Version: Flash Navigation Scroller
Pixel2Life Forum > Help Section > Adobe Flash
::WebCreate::
Hi, I am looking for help or a tutorial on how to create a naviation scoller in flash, like the one in the following link: http://www.unilever.co.za

It is close to the bottom of the page, and it scrolls to the left & right.
Thanx!
Ben
It depends how flexible it's going to be; do you want your links loaded externally, internally, or static? (outside of Flash, inside the Flash library, on the stage). Either way, you're going to have you links in a movieclip. Then have two buttons either side of it, and on the left one:
CODE
leftclip.onRollOver = function() { // leftclip is the name of your left button
movieclip.onEnterFrame = function() { // movieclip contains your links
if(this._x < 0) {
this._x += 4; // how fast do you want the links to move?
} else {
this._x = 0; // the 0's mean it will be placed right on the edge of the stage. Might want to fix that so you have room for arrows.
}
}
}
leftclip.onRollOut = leftclip.onReleaseOutside = function() {
delete movieclip.onEnterFrame;
}
rightclip.onRollOver = function() { // rightclip = right button
movieclip.onEnterFrame = function() {
if(this._x > Stage.width-this._width) {
this._x -= 4;
} else {
this._x = Stage.width-this._width;
}
}
}
rightclip.onRollOut = rightclip.onReleaseOutside = function() {
delete movieclip.onEnterFrame;
}

(goes on first frame)
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.