Home

Downloads

FAQs

Sample Book

Features

Forum

 

Loading pageflip into flash movies

What do I mean by this? Well, suppose you have several books and you want your users to be able to switch between books you might decide to create a Flash launcher which loads the relevent book into a movie clip.

This isn't something I've done or tested but others have - and apparently have gotten it working.

Two things need to be considered:-

using _lockroot=true

Within pageflip you can access functions and variables by using the _root prefix. However, if you load pageflip into another movieclip the _root becomes the container movieclip.

Using _lockroot ensures that ..

An alternative would be to re-write the pageflip code to reference the main timeline using _parent. However, I didn't know that when I set out to develop ths project

removing the mouse listener

_root.removeML() must be called to allow another book to have access to the mouse.