hey there's this cool effect i saw on a webpage i frequent...
http://www.joshuadavis.com/pound.htmlit's the little part where he shows his work... when you press 1, 2, or whatever it jumps to that image but with a little running intro. sweet effect and i'm sure there's some specific scripting for it. just was wondering if people could point me in the right direction.
[Edit:]
ok figured that bit out and i have coding now but it's not working right for some reason... here's what it was origionally:
onClipEvent (load) {
_x = 0;
_y = 0;
div = 5;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/div;
_y += (endY-_y)/div;
_root.home.onRelease = function() {
endX = 0;
endY = 0;
};
_root.works.onRelease = function() {
endX = -250;
endY = 0;
};
_root.skills.onRelease = function() {
endX = -500;
endY = 0;
};
_root.bio.onRelease = function() {
endX = 0;
endY = -200;
};
_root.links.onRelease = function() {
endX = -250;
endY = -200;
};
_root.contact.onRelease = function() {
endX = -500;
endY = -200;
};
}
that worked fine until i changed it to be:
onClipEvent (load) {
_x = 0;
_y = 0;
div = 5;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/div;
_y += (endY-_y)/div;
_root.1.onRelease = function() {
endX = 0;
endY = 0;
};
_root.2.onRelease = function() {
endX = -100;
endY = 0;
};
_root.3.onRelease = function() {
endX = -200;
endY = 0;
};
}
which gives me the error message:
Symbol=sliding content, Layer=Layer 2, Frame=1: Line 11: ';' expected
_root.1.onRelease = function(){
Symbol=sliding content, Layer=Layer 2, Frame=1: Line 15: ';' expected
_root.2.onRelease = function(){
Symbol=sliding content, Layer=Layer 2, Frame=1: Line 19: ';' expected
_root.3.onRelease = function(){
any thoughts people?