SLX_Angel 2014年02月08日
关于FlippingBook逼真flash翻页效果问题,如何自动翻页,急求!!!!!
[size=13px]各位大虾,我在网上找了一个FlippingBook,具有flash翻页效,demo里面的翻页都是手动鼠标点,或者鼠标滚轮效果,而我想做成自动翻页的效果,比如多少秒自动翻页,我在网上找了相关资料,但是还是没有找到,求各位知道的大虾给个方法或者相应代码,万分感谢!!!![/size]

function FlippingBook() {
this.pages = [];
this.zoomPages = [];
this.printPages = [];
this.contents = [];

this.stageWidth = "100%";
this.stageHeight = "100%";

this.settings = {
bookWidth: 640,
bookHeight: 480,
pagesSet: this.pages,
zoomPagesSet: this.zoomPages,
printPagesSet: this.printPages,
scaleContent: true,
preserveProportions: false,
centerContent: true,
hardcover: false,
hardcoverThickness: 3,
hardcoverEdgeColor: 0xFFFFFF,
highlightHardcover: true,
frameWidth: 0,
frameColor: 0xFFFFFF,
frameAlpha: 100,
firstPageNumber: 1,
autoFlipSize: 5000,
navigationFlipOffset: 30,
flipOnClick: true,
handOverCorner: true,
handOverPage: true,
alwaysOpened: false,
staticShadowsType: "Asymmetric", // Asymmetric, Symmetric, Default
staticShadowsDepth: 1,
staticShadowsLightColor: 0xFFFFFF, // works for "Symmetric" shadows only
staticShadowsDarkColor: 0x000000,
dynamicShadowsDepth: 1,
dynamicShadowsLightColor: 0xFFFFFF, // works for "dark" pages only
dynamicShadowsDarkColor: 0x000000,
moveSpeed: 5,
closeSpeed: 3,
gotoSpeed: 3,
rigidPageSpeed: 5,
flipSound: "",
hardcoverSound: "",
preloaderType: "Thin", // "Progress Bar", "Round", "Thin", "Dots", "Gradient Wheel", "Gear Wheel", "Line", "Animated Book", "None"
pageBackgroundColor: 0x99CCFF,
loadOnDemand: true,
allowPagesUnload: true,
showUnderlyingPages: false,
playOnDemand: true,
freezeOnFlip: false,
darkPages: false,
smoothPages: false,
rigidPages: false,
flipCornerStyle: "manually",// "first page only", "each page", "manually"
flipCornerPosition: "bottom-right",// "bottom-right","top-right","bottom-left","top-left"
flipCornerAmount: 50,
flipCornerAngle: 20,
flipCornerRelease: true,
flipCornerVibrate: true,
flipCornerPlaySound: false,
zoomEnabled: true,
zoomPath: "pages/large/",
zoomImageWidth: 900,
zoomImageHeight: 1165,
zoomOnClick: true,
zoomUIColor: 0x8f9ea6,
zoomHint: "Double click for zooming.",
zoomHintEnabled: false,
centerBook: true,
useCustomCursors: true,
dropShadowEnabled: true,
dropShadowHideWhenFlipping: true,
backgroundColor: 0xFFFFFF,
backgroundImage: "img/bookBackground.png",
backgroundImagePlacement: "fit", // "top left", "center", "fit"
printEnabled: true,
printTitle: "Print Pages",
downloadURL: "",
downloadTitle: "Download PDF",
downloadSize: "Size: 4.7 Mb",
downloadComplete: "Complete",
extXML: ""
};

this.containerId = "fbContainer";
this.forwardButtonId = "fbForwardButton";
this.backButtonId = "fbBackButton";
this.zoomButtonId = "fbZoomButton";
this.printButtonId = "fbPrintButton";
this.downloadButtonId = "fbDownloadButton";
this.currentPagesId = "fbCurrentPages";
this.totalPagesId = "fbTotalPages";
this.contentsMenuId = "fbContentsMenu";
};
...全文
474 点赞 收藏 2
写回复
2 条回复

还没有回复,快来抢沙发~

发动态
发帖子
Java EE
创建于2007-09-28

3.7w+

社区成员

22.5w+

社区内容

J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区公告
暂无公告