AS3 BufferingIndicator Class

March 28th, 2008 | by Matt |

Out of boredom the other day I wrote this class to create a simple animated buffering indicator, you know...the ones we always see everywhere that look like a pinwheel. Here's an example of what you can do with it:

Here's the code that generated this example:

var bi:BufferingIndicator = new BufferingIndicator();
bi.x = 40
bi.y = 45
this.addChild( bi );

bi = new BufferingIndicator( 50, 20, 7, 20, 0xCC0000, 6, 0.2, 25 );
bi.x = 130;
bi.y = 65;
this.addChild( bi );

bi = new BufferingIndicator( 75, 40, 8, 25, 0x0000FF, 10, 0.2, 100 );
bi.x = 270;
bi.y = 90;
this.addChild( bi );

And here's where you can download the class file: BufferingIndicator.as

  1. 4 Responses to “AS3 BufferingIndicator Class”

  2. Very nice. I think I may extend it so you can pass in a custom class/object for the “ticker” blades.

    BM on Mar 29, 2008 | Reply

  3. Nice one, thanks. It flickers a bit on Safari on a Mac.

    fritz on Mar 31, 2008 | Reply

  4. Sounds like you need a new browser.

    Matt on Mar 31, 2008 | Reply

  5. Your link is broken :)
    It should be: http://blog.nobien.net/wp-content/uploads/2008/03/bufferingindicator.as

    Ash on Apr 29, 2008 | Reply

Post a Comment