FlexBook

11 篇文章 0 订阅

FlexBook

March 5th, 2007

Somewhere around two years ago (really? Wow, it’s been a while), we got our first builds of the new flash player and flex framework up and running. To celebrate, I took a crack at building one of my favorite flash components in flex, the Book component. I got some basic proof of concept up and running, but had to set it aside amid the day to day details of getting Flex 2 built.

Well a few weeks ago, I dug the old code out and polished it up. So here, for your enjoyment, is the FlexBook component.

FlexBook can act as a container, allowing the developer to flip through its children components:

Example 1: FlexBook as a container

FlexBook can be driven by a list of data and an itemRenderer, like a List control or DataGrid. Here’s a porfolio viewer, driven by an XML data file and an MXML component itemRenderer:

Example 2: FlexBook as a List

FlexBook Supports a wide variety of configuration options. Play with some of them here:

Example 3: FlexBook’s styles and settings

FlexBook supports full transparency on its pages. This example is in honor of (and made possible by) my mom, who’s a world class medical illustrator:

Example 4: FlexBook’s transparent Anatomy

This example doesn’t show any new functionality, but it’s a nicely put together example of a dataDriven FlexBook, combined with a state/transition driven item renderer;

Example 5: FlexBook as an image browser

Here’s an example that combines the FlexBook with the Landscape Zoomer component to browse images. Turn the page until you find a picture you like, then click on the image to zoom in. Click again to zoom back out.

Example 6: FlexBook with the Landscape Zoomer

Interested in learning how FlexBuilder works? Take a peek at this walkthrough (work in progress)

A walk through the FlexBook page flip effect

The code for this component is written from scratch, using AS3, flex concepts, and player 9 functionality, but it is by no means original. The functionality is inspired by this excellent example from Macc/iparigrafika.

Questions, Comments, Feedback, Kudos or Criticisms? As always, it’s very much appreciated. Leave them here.

Enjoy!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值