Click to See Complete Forum and Search --> : Flash Page Turner


tobyc
04-09-2007, 05:39 AM
Hi,

ive need help creating a page turning effect in flash. i have looked at scripts but they are too complex for what i want (no mouse dragging to turn the pages). What i want is the "content" pages to be tabbed and when you click on the tab for the "book/folder" to turn through some different "dummy" pages until it reaches the requested page (will use a movieclip array).

so in summary, i would like the code that produces the animation that can be applied to the pages (so i dont have to physically animate each dummy page).

im probably confusing you, im having a hard time explaining what i want. ill give you an example of code ive been working on.

PageArray =?? // movieclips to act as the pages
pageNum =?? // the pageNum will be passed through the tabbed "button"
currentPage = 1 // the current page displayed
turnPage(pageNum) {

if (pageNum > currentPage){
do {
//Animation effect is apllied to current movie clip selected in array then moves on to next page in array and adds to counter until the pageNum==currentPage
PageArray++
currentPage++;
}

while (pageNum != currentPage);
}

if (pageNum < currentPage) {
do {
//The same but turning page back
PageArray--
currentPage--;
}

while (pageNum != currentPage);
}

if (pageNum==currentPage){

break;

}

}