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!
Flash Navigation Scroller
Started by ::WebCreate::, Mar 03 2008 06:21 AM
1 reply to this topic
#1
Posted 03 March 2008 - 06:21 AM
#2
Posted 03 March 2008 - 04:04 PM
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:
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)
Edited by MediaDesign, 03 March 2008 - 04:04 PM.
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users
