Help with a If/else thingy

Hi

I have made an page-flip thing and now I want to add a script that turn the page in the right direction. Ex. If I reading page 9 and want to jump to 10 then I´m playing a “turnpagefromtheright”- movie clip. But if I reading page 10 and want to go to page 7 then I want the movie to play a “turnpagefromtheleft”- movie clip.

So I need to compare the current page number with the page number I´m going to and if that number is less than the current number I play 1 Mc and if it´s higher it plays another Mc.

So this is what I want but I don´t know how to code it… since I´m not as good as you are… Could you help me please??

Are you using scenes/frames or what as your pages?? :-/

I´m using a modified version of Kirupas own tutorial “[color=#800080]Preloader & Transitions for Dynamic Files[/color]

So the answer is that when pressing a button, I first play a movieclip (simulating the pageflip) and then I import a swf for the content.

something like:

[color=blue]currentpage = 2;[/color]
[color=blue][/color]
[color=blue]on(release){[/color]
[color=blue]if (clickedpage < currentpage){[/color]
[color=blue]_root.gotoAndPlay(“flipleft”);[/color]
[color=blue]}[/color]
[color=blue]else {[/color]
[color=blue]gotoAndPlay(“flipright”)[/color]
[color=blue]}[/color]

you know…
and apply that to the left and right page corners (mc’s)

It seems to work just fine! Thank you so much!

Cheers

Tony