PDA

View Full Version : sliding pages


indianleo
11-30-2006, 01:03 PM
Hi Friends

I had made a sliding page effect the script i had used is took from a net which is given below my problem is that i want to used next and prev btnand when i click on next or prev btn the page should slide respectively so please help me out

onClipEvent (load) {
_x = 0;
_y = 0;
spd = 8;
// this is the scrolling speed, the hight the number the faster it scrolls//
}
onClipEvent (enterFrame) {
_x += (endX-_x)/spd;
_y += (endY-_y)/spd;
_root.page1.onRelease = function() {
endX = 0;
endY = 0;
};
_root.page2.onRelease = function() {
endX = -364;
endY = 0;
};
_root.page3.onRelease = function() {
endX = -728;
endY = 0;
};
_root.page4.onRelease = function() {
endX = -1092;
endY = 0;
};
_root.page5.onRelease = function() {
endX = -1456;
endY = 0;
};
_root.page6.onRelease = function() {
endX = -1820;
endY = 0;
};
_root.page7.onRelease = function() {
endX = -2184;
endY = 0;
};
_root.page8.onRelease = function() {
endX = -2548;
endY = 0;
};
_root.page9.onRelease = function() {
endX = -2912;
endY = 0;
};
_root.page10.onRelease = function() {
endX = -3276;
endY = 0;
};
_root.page11.onRelease = function() {
endX = -3640;
endY = 0;
};
_root.page12.onRelease = function() {
endX = -4004;
endY = 0;
};
}

davidj
12-01-2006, 01:42 PM
hi mate

sorry i have taken time to reply

i have written an example on paging nav

i hope this helps. You should be able to tweak the Ascript to get this to work as you want

indianleo
12-02-2006, 10:53 AM
Thanks Bro,

for sending this example I am very thankful If you dont mind can u add me my email ID is kundannaidu@hotmail.com I am online Actually sometime I have problem & I ned help and u r the right person who can help meso pls add me If you dont mind to

davidj
12-02-2006, 10:58 AM
you can add me but i dont give one to one help

that would make this forum pointless and if i did it for you others would expect the same service

indianleo
12-02-2006, 12:06 PM
t for being a friend u can add me

indianleo
12-06-2006, 07:09 AM
Getting problem in sliding pages its not working ur file worksbut when i did its not and isthere any needtomake manually the slide moving backwards

davidj
12-06-2006, 07:16 AM
if your saying my movie works but yours doesnt then you havnt written it correctly!


is there any need to make manually the slide moving backwards


there is no need to do this but let me point you to your original post...


is that i want to used next and prev btnand


its always best to be able to navigate in both directions