Flash for Android: Introduction to BitmapScroller
videos

Flash for Android: Introduction to BitmapScroller

Tutorial Details
  • Program: FDT
  • Difficulty: Intermediate

This is an introduction to my BitmapScroller class. I’ll explain how to get it up and running with ANT and FDT.


Section 1: BitmapScroller and ANT

The BitmapScroller class allows you to scroll multiple bitmaps as if they were a single image. I have used it on several sites, most noteworthy being thejohnnycashproject.com. In this video you will also see how I use ANT to help automate building a web and mobile version of this app.

Don’t like ads? Download the screencast, or subscribe to Activetuts+ screencasts via iTunes!


Section 2: BitmapScroller on Android

In part two of my introduction to the BitmapScroller I show you what it looks like when running on an Android phone. The BitmapScroller runs surprisingly well at 30 fps when idle and 19-21 fps when scrolling. The source code can be found at http://github.com/theflashbum/BitmapScroller.

Don’t like ads? Download the screencast, or subscribe to Activetuts+ screencasts via iTunes!

Don’t forget you can tart up your desktop and mobile devices with the Flash for Android Wallpaper!

Tags: Videos
  • http://www.juxt2.com Dimitree

    You rock!

    • http://flashartofwar.com Jesse Freeman

      Thanks!

  • http://flashartofwar.com Jesse Freeman

    For a more in depth look into how the Bitmap Scroller works please read this post: http://insideria.com/2010/08/advanced-blitting-bitmap-scrol.html

  • http://www.nitras.be peter

    great great stuff!

    just a little downside that the initial scrub is slower indeed, however…

    After loading all bitmaps, i did a hardcoded scrub from front to back and repos to x = 0
    after that i show the images. Okay it takes longer to actually see the images, but my client was gutted for the initial “slower scrub” curse him to hell… really… :)
    So that seemed to soothe & hused him down.

    Ok so far so good, but it can get better i thought.

    Now just recently I’ve done some experiments with adding cacheAsBitmapMatrix = new Matrix();
    and it seems to work well. But i am not very sure if its needed. I’d like your opinion on this.
    I am totally new to mobile development but eager to learn.

    really nice work on the class! it sure helps me as a photographer/flash developer *cough* to focus more on photo-apps / photosites for my clients.

    thanks!
    best regards from belgium.