DEV Community

Cover image for Flash is gone! We dedicate this book
Dr Abstract
Dr Abstract

Posted on

Flash is gone! We dedicate this book

I created so much with Flash and would like to honor its demise (December 2020) with a remake of the classic Flash Book but made with ZIM. Here is an example:

https://zimjs.com/cat/book.html

The example book, while being primarily pictures, can be completely interactive inside the pages as well. You can see some buttons in there but there could be animations, draggable objects, sliders, dials, particle emitters, etc.

Alt Text

One of the buttons leads to a second book:

https://zimjs.com/darklo - on the famous VR Potter.

Alt Text


Check out the ZIM code - perhaps this will be what gets you started coding in ZIM! https://zimjs.com/five/book.html We hope so.

// The pages in the book can be fully interactive
// but here is an example of just loading images into the book
// note - import ZIM and CreateJS in a script file above
// copy the template from https://zimjs.com/code.html

var path = "covers/"; // the folder with the images
var assets = ["build.jpg", "castle.jpg", "ganymede.jpg", "lastyear.jpg", "martian.jpg"];
const frame = new Frame("fit", 1024, 768, darker, darker, assets, path);
frame.on("ready", () => {
    const stage = frame.stage;

    // get one picture to find the size of the book
    const pic = asset("build.jpg");
    new Book(pic.width*2, pic.height, assets).center();

    stage.update();
}); // end of ready
Enter fullscreen mode Exit fullscreen mode



If you have not checked out the Canvas recently - you simply must! Here is the ZIM Dev Site and some In-depth Guides by Dr Abstract including Your Guide to Coding Creativity on the Canvas.

Latest comments (1)

Collapse
 
zimlearn profile image
Dr Abstract

I can tell by the response that we have many Flash fans here!! Woot!