FlexBook

March 5th, 2007

[app]: http://demo.quietlyscheming.com/book/app.html
[formContent]: http://demo.quietlyscheming.com/book/FormContent.html
[boundaries]: http://demo.quietlyscheming.com/book/boundaries.html
[anatomy]: http://demo.quietlyscheming.com/book/Anatomy.html
[fullPage]: http://demo.quietlyscheming.com/book/FullPage.html
[dataDriven]: http://demo.quietlyscheming.com/book/DataDriven.html
[walkthrough]: http://demo.quietlyscheming.com/book/walkthrough.html
[inspiration]: http://www.iparigrafika.hu/pageflip/
[comments]: http://www.quietlyscheming.com/blog/2007/03/06/new-flex-component-flexbook/

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][app]

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][formContent]

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

### Example 3: [FlexBook's styles and settings][boundaries]

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][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][fullPage]

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][dataDriven]

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

### [A walk through the FlexBook page flip effect][walkthrough]

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][inspiration].

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

Enjoy!

30 Responses to “FlexBook”

  1. Quietly Scheming » Blog Archive » New Flex Component: FlexBook Says:

    [...] The source will follow, along with a little more explanation, when I’ve had a chance to clean it up. But until then, check out the FlexBook samples, then come back here and let me know what you think. [...]

  2. Quietly Scheming » Blog Archive » Whoops! FlexBook exposed! Says:

    [...] I guess I get sloppy at 12:30 AM. If you tried to check out the FlexBook example but got hit with a password request, my apologies. The password has been removed, so you should be able to see it now. [...]

  3. Quietly Scheming » Blog Archive » New Flex Component: FlexBook (repost) Says:

    [...] The source will follow, along with a little more explanation, when I’ve had a chance to clean it up. But until then, check out the FlexBook samples, then come back here and let me know what you think. [...]

  4. Sönke Rohde » FlexBook - Flipbook/Pageflip engine Says:

    [...] Ely Greenfield (Quietly Scheming) has made a wonderful flipbook engine which is open source. Bookmark to:           – Posted in Flash by Sönke   [...]

  5. Thanks, Mister! » Day 2 - 360Flex Conference Says:

    [...] Ely talked about Flex component building, which was similar to his talk at Adobe Max back in October, except for an awsome example of Templating in Flex.  His Flex Book example really impressed the crowd and was a terrific way to end the discussion.     I was really amazed with his   Transparent Anatomy book, this totally floored me, what an excellent idea. Ely is a great speaker with a strong voice and command of Flex component building.  I only wish he would not be so “lazy” when he develops some of his Flex component examples, but he explains that he develops these in the wee hours of the morning, so I think that is probably a valid excuse given his role at Adobe and the number of components examples he has produced.  [...]

  6. caché.yestoall.com » Blog Archive » flexbook Says:

    [...] http://www.quietlyscheming.com/blog/components/flexbook/ [...]

  7. polyGeek.com » Blog Archive » Better than a Lego Vagina award for 360Flex Says:

    [...] There were lots of wow moments during the conference. But the best of the best of the best doesn’t go to any of the Apollo demos, or the new features in Flex 3. It doesn’t go to the Flash 9 IDE. And it doesn’t go to anything mentioned during the keynote. Nope, the better than a Lego Vagina award goes to Ely Greenfields Flip book component. [...]

  8. blog.dsetia.com» Blog Archive » debrief from Flex 360 conference Says:

    [...] Flexbook [...]

  9. Flex Page-flip component « The Algorithmist Says:

    [...] Flex Page-flip component Ely Greenfield has developed a wicked Flex page-flip component. You can see it here, complete with tutorial! It also appears that an Apollo version is coming. [...]

  10. Quietly Scheming » Blog Archive » Why the Flex in FlexBook, or…Why a Flash Author should care (a lot!) about Flex. Says:

    [...] There’s been an interesting little discussion going on in the comments of this blog post on PolyGeek about the FlexBook component — mostly pointing out the relationship between this component and the previous flash-authoring based versions, and questioning what value Flex is adding to the effect. [...]

  11. // JPZ » FlexBook.. cool demo! Says:

    [...] Quietly Scheming » FlexBook [...]

  12. Jeff Kirsch » links for 2007-03-19 Says:

    [...] Quietly Scheming » FlexBook Looks interesting (tags: code book MIT tutorial UI) [...]

  13. smalls blogger » Blog Archive » WebDU 2007 - Day 2 Says:

    [...] We were shown some very cool things that have already been done in Flex, one of which was this Awesome FlipBook in flash. I spent a few minutes looking for it, and found it. Check this out, its amazing – just a brilliant combination of design and programming. An example of the transpartent Flex Flip-book can be found here. [...]

  14. Robert Shiue’s Blog » Blog Archive » Excellent Flex Effects Says:

    [...] Flex Book Component [...]

  15. FlexBook at hh Says:

    [...] Flipbook/Pageflip engine für Flex. Das ganze ist open source und die Beispiele sehen echt gut aus. [...]

  16. Tom’s Graphic Design Journal » The Power of Adobe Flex Says:

    [...] I came across an example for a book. Sure, we’ve all seen variations of book page turning in Flash. However, Flex does it right and Ely Greenfield’s Flex Book work is shining proof of what everyone has been wishing Flash could do. His examples are beautiful, especially the one with transparency effect for the medical anatomy overlay book. It’s also nice to note that he’s also used Apollo to create a desktop application for this. I think quite a few encyclopedias and medical companies will be knocking on his door. Of course Ely has been extremely gracious enough to publish his source code so he’s put everyone at a level playing field. Ahh, the joys of open source. Well, of course he’s always going to have a better knowledge than anyone and can always create something even better. [...]

  17. links for 2007-05-02 « toonz Says:

    [...] Quietly Scheming » FlexBook (tags: flex) [...]

  18. prayank.mxml » Archives » BEA Dev2Dev Tech Days: Mashups and Portals Says:

    [...] BEA Dev2Dev Tech Days: Mashups and Portals Yesterday I presented Flex at my first BEA Dev2Dev Tech Day at Royal Orchid hotel, Bangalore. The Dev2Dev TechDays are half day developer focused seminars that provide a guide for building enterprise mashups. Presented by technical experts from throughout BEA – these events will provide you with the latest technologies for creating a Mashup. The BEA presenter Mr. Raju Suravarjjala, started the day by talking about Mashups, portals, microformats, and he gave an overview of the various technologies that are being used to build mashups. He then demoed building a mashup using BEA WebLogic Platform. You can actually try out building mashups with BEA products yourself – they have a online Weblogic Portal 10 Playground at their BEA Web 2.0 technology lab (http://wlp.bea.com/) – you can actually build your own mashups using this app with the various portlets available on the site. (you will need to register to use it) My session was after Mr. Raju’s session, and I introduced Flex to the community (there were 268 registrants present – quite a number!) I started by demoing FlexBook and YourMinis, both of which were very well received. Then came the hard part, I did some real live coding in-front of the entire crowd. It was a mashup built using Flex, Amazon eCommerce Service, Yahoo Weather APIs and some java coding. The best part is that I had the FlexBuilder installed as a plugin inside of BEA Weblogic Platform Workshop. Within 15 mins, I was able to create the Flex app, convert it into a portlet and embed it into a portal – running on BEA Weblogic Portal. I was actually very amazed with the ease with which the BEA Workshop allowed me to convert the Flex app into a portlet – really developer friendly. I would suggest everyone interested in building mashups and portals to come to following Dev2Dev events. (see this link for more details on where we are having it in India – BEA Dev2Dev Tech Days in India) Last Modified : June 2nd, 2007 Filed under : Flex Events, Events Navigate : Previous post / [...]

  19. Tested Unit » Blog Archive » FlexBook in Flex3 running in Adobe AIR Says:

    [...] Sorry for the long silence, it’s been extremely busy at work for the past weeks. I’ve also been making a website for my wedding next month, and for that I wanted to use the magnificent FlexBook component written by Elijah Greenfield. I struggled a little getting it to work on my MacBook Pro without FlexBuilder installed, but finally managed to get it to work and I’d love to share it with you as the tutorials for this component on the web seem to be non-existing. [...]

  20. 1 Blog » Blog Archive » imatges Says:

    [...] Veure FlexBook [...]

  21. FlexBook, it’s really awesome!!! « Flash Enabled - Get Ready With Flash… Says:

    [...] You can find the full article as also source files here. [...]

  22. IdleTogether » Blog Archive » FlexBook, the must have component for flex Says:

    [...] Create simple book looking applications with this full-on Flex component. The source is now available! Check out The FlexBook component and the source. Also with Adobe Air as ApolloBook. [...]

  23. FlexBook component « FlashColony webmaster’s blog Says:

    [...] More here and the source is here! [...]

  24.   List of 31 Flex APIs, Libraries, Components and Tools by Sean // the flash guy Says:

    [...] FlexBook Flex flip book component. Supports transparantcy. http://www.quietlyscheming.com/blog/components/flexbook/ [...]

  25. Sélection de composants Flex utiles et gratuits | Yoann NUSSBAUMER Says:

    [...] Quietly Scheming : ce blog propose un certain nombre de composants vraiment sympa visuellement, comme par exemple : Fisheye Component, Flexbook, différents graphiques, etc … [...]

  26. on AIR Weblog Says:

    [...] At 360Flex last week, Ely Greenfield gave a talk on creating Flex components. I video taped the entire session, except for the last 3 minutes (my tape ran out). Unfortunately, that is when Ely showed the coolest stuff. He was cool enough to talk with me after the session and demonstrated his new FlexBook component. [...]

  27. Flex for dummies « mplebani Says:

    [...] Flex Component (http://flex.org/components/): some commercial and not Flex component. My preferred are the Book (http://www.quietlyscheming.com/blog/components/flexbook/), the FishEye (http://www.quietlyscheming.com/blog/components/fisheye-component/), and the iFrame (http://ccgi.arutherford.plus.com/blog/wordpress/?p=133) [...]

  28. Bill White’s Blog » PeekPanel - My New Flex Component Says:

    [...] cool way to hide options or preferences in an application.  It borrows the look and feel from the FlexBook/PageFlip components already out there, but instead of simulating a book, this is more of a way to [...]

  29. Renaun Erickson » myFeedz in a FlexBook Says:

    [...] all the FlexBook component was quite easy to use. It took me a bit to find that the “content” attribute is the [...]

  30. deeps Says:

    hi all,
    can i incorporate one more thing in this,such that when i click on any page,it zooms to cover the entire screen…and when i again click on the zoomed page,it comes back to its original size…can anybody provide the code for this effect in flex….thanks in advance..

Leave a Reply