lunedì, marzo 24, 2008

Preloading SWFs and FLVs in AS3

Last week I was exploring preloading options, and found several terrific tutorials/articles. Sheckemout.

Preload a SWF, JPG, PNG or GIF in Flash CS3

I was grateful for this post on newmovieclip.wordpresscom which was the best simple example I could find.

ActionScript 3.0 for developers and designers – Part 1: Creating a preloader

This was a good (and amusing) article presented by Big Spaceship on Adobe.com. It includes all the files you’ll need, and nice explanations. Ultimately, though, I found the design of the featured preloader to be a bit cumbersome.

FLV Preloading Using the NetStream Object

A nice example is at the bottom of the thread on ultrashock.com. Most advanced users seem to prefer using a netstream object rather than Adobe’s FLV Player component. However, it seems like (to noive moi) NetStream favors those lucky enough to have a streaming server option rather than a progressive download.

AS3 Custom Preloader

Create a 100 frame MovieClip animation in companion with this code to create a preloader. Place the rest of your Flash application on the following Scene or Frame.”

Image Fill Preloader (ActionScript only)

This is a pretty remarkable bit of code. It would be nice if it actually included an FLA…

FLV Preloader Example with the Progress Bar Component

Nice example; it also includes source files.

Preloader Bug: IE6 AS3 Preloader Events Failing

Pixelfumes expounds on this strange bug. It only applies to files loaded on the main timeline, not external files.

Flash CS3 Blog by FlepStudio - Preloader with Flash CS3

http://www.flepstudio.org/english/tutorials/mix/preloader-with-flash-cs3-2007062650.html

How to create a site loading external SWF with Flash CS3

Flep Studios has an impressive preloader that includes source code (you’ll have to sign up for the site).

Preloader Component

Finally, a few components that could be purchased. Nahhh. :)

Uniloader

Advanced Loader