View Full Version : flippingbook.com
undercover
02-14-2005, 01:48 PM
I purchased the flip book from http://www.flippingbook.com, but I wanted to add the one-click flip that's used on http://www.iparigrafika.hu/pageflip/
Has anyone else tried this? I'm assuming it would take some kind of invisible button and a goto page function.
Any ideas?
constsi
02-14-2005, 09:49 PM
You can use onClick(i) event.
For example:
_root.myBook.onClick = function(i)
{
if (i%2 == 0) this.flipForward();
else this.flipBack();
};
Here "myBook" is the component instance name.
undercover
02-15-2005, 05:51 PM
Beautiful, works like a charm.
With a little experimentation I found it was different if you wanted the book to start open or closed. If closed, your AS was right, but if you want it open, it needs to be flipped:
_root.myBook.onClick = function(i)
{
if (i%2 == 0) this.flipBack();
else this.flipForward();
};
Thanks for you help!
constsi
02-15-2005, 08:40 PM
The general solvation is something like this:
_root.myBook.onClick = function(i)
{
if( _root.myBook.alwaysOpenedProp )
if (i%2 == 0) this.flipBack();
else this.flipForward();
else
if (i%2 == 0) this.flipForward();
else this.flipBack();
};
undercover
02-16-2005, 01:50 PM
Is there a better way to preload the pages? With the onClick added, the images don't load until they've completed flipping. Leaving the viewer with an ugly loadbar. Would it be possible to say on page load, load the next 2 pages?
constsi
02-16-2005, 08:29 PM
You can create your own preloader symbol and use it. Also you can preload all pages before run by setting preload pages on demand to false.
undercover
02-16-2005, 10:03 PM
I thought setting the preload on demand to false would fix my problem too, but instead most of the pages don't load at all. Here's an example:
http://5.marathonweb.com/album
When I view in safari, none of the pages load, but in ie mac, the first few pages load, but the later pages do not.
reded78
04-23-2005, 02:17 AM
undercover- how did implement the 1 flip click? I'm not big on functions but I want a button that has an action that flips the book directly to a specific page, instead of flipping through all of my pages.
stefchir
02-24-2009, 04:13 PM
Hi,
I purchased the HTML Edition of the flipping book. I would like to modify it so that the book flips completely automatically without involving any user clicks (kind of like a slideshow).
Is there a way of doing this? If yes, can someone please walk me through it?
Thanks in advance
stefchir
kkbbcute
02-25-2009, 06:15 AM
You can use setInterval and then just flip the page by running whatever function is run whenever you click. I have done something like that before using iparigrafika's flip page thing-a-magick.
stefchir
02-25-2009, 09:33 AM
Thanks dude, very much
stefchir
02-25-2009, 10:07 AM
Ok, sorry to bother you again but, which part of the four .js files is the flipforward code? I know there is a part in the flippingbook.js file that says:
FlippingBook.prototype.flipforward = function()
{
flippingbook.getFlippingBookReference().flipforwar d();
}
but is that the actual flipping code? I mean is flipforward() a function of javascript? Or is it calling some other part?
Thanks again
I purchased the flip book from http://www.flippingbook.com, but I wanted to add the one-click flip that's used on http://www.iparigrafika.hu/pageflip/
Has anyone else tried this? I'm assuming it would take some kind of invisible button and a goto page function.
Any ideas?
i am having to do the same, can you help me - i am new at this. PLEASE help, this is my last day to get this done ;-)
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.