-
scrolling board
k I have used this code to create my scrolling panel >
stop();
board.onRollOver = boardOver;
function boardOver() {
this.onEnterFrame = scrollboard;
delete this.onRollOver;
}
var b = stroke.getBounds(_root);
function scrollboard() {
if(_xmouse<b.xMin || _xmouse>b.xMax || _ymouse<b.yMin || _ymouse>b.yMax) {
this.onRollOver = panelOver;
delete this.onEnterFrame;
}
if(board._x >= 650) {
board._x = 650;
}
if(board._x <= -400) {
board._x = -400;
}
var xdist = _xmouse - 400;
board._x += Math.round(-xdist / 15);
}
I have placed this in my main timeline - I am not sure as to how I can make my board scroll vertical and it would look so much cooler.
Thanks..
Jan
p.s.Flash8
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|