Hi everyone,
just discovered the forum here, so I’m new.
I hope someone can help me with my problem.
I’m making a website, the main idea is a street that needs to slide right or left with a mouse movement. I’ve looked, found and came up with this solution.
http://www.poppemie.com/testpage2.htm
There is only one problem, I can’t but buttons anymore on the doors to go to a next page.
How did I make the testpage 2:
- I’ve made 2 MC with the illustration of the street in it. I’ve given them an instance name “foto1” and “foto2”
-I’ve put an empty MC on the stage with action:
[color=Red]// X1, X2 and Y are the x and y coordinates of the 2 photo’s
onClipEvent (load) {
x1 = getProperty (_root.foto1, _x );
x2 = getProperty (_root.foto2, _x);
y = getProperty (_root.foto1, _y );
}
onClipEvent (enterFrame) {
if (_root.beweeg==1) {
speedx = -(-25+_xmouse)/8;
if (speedx>-3&&speedx<3) {
speedx = 0;
}
x1 = x1+speedX;
x2 = x2+speedX;
setProperty("_root.foto1", _x, x1);
setProperty("_root.foto2", _x, x2);
if (x2>2560) {
x2 = getProperty (_root.foto1, _x)-2560.0;
}
if (x1>2560){
x1 =getProperty (_root.foto2, _x)-2560.0;
}
if (x2<-2260) {
x2 =getProperty (_root1, _x)+2560.0;
}
if (x1<-2260) {
x1 =getProperty (_root.foto2,_x)+2650.0;
}
speedY = -(-100+_ymouse)/10;
if (speedY>-2&&speedy<2) {
speedy = 0;
}
Y = Y+speedY;
if (y<80) {
Y =80;
}
if (y>80) {
Y = 80;
}
setProperty("_root.foto1", _y, Y);
setProperty("_root.foto2", _y, Y);
}
}[/color]
-Finaly I’ve put an unvisible mask size 800 x 600 (the size of the website) that marks the mouse movement. There is also action on it:
[color=Red]on (rollOver) {
beweeg = 1;
}
on (rollOut) {
beweeg = 0;
}
[color=Black]
As you see on testpage2.htm the scrolling goes smooth and it’s perfect for what I want, but it’s not possible to put buttons on the illustration street cos of the invisible button.
So here’s my cry for help! Does anyone has an other solution to get the same effect and also gets the buttons to work? Any other ideas are welcome.
Eternally grateful!!
[/color][/color]