Old Articles - 3 years, 9 months ago - 0 Comments

Generic Preloader <= 1k

Nothing too exciting, but quite useful. Recently i got really sick of creating the same old preloader, over and over again and so i finally got around to making a Flash Movie, which contains a smooth preloader bar. You can pass the name of a movie into the preloader movie using the object/embed tags and it will preload it. You can also resize the preloader movie in the object/embed tags of the containing html page and the preloader bar will center itself inside the movie. Now as i said this is a smooth preloader bar, which means it resizes using intertia, as opposed to simply jumping to its new size, which is a funky little effect. The other good thing, is that the preloader movie itself, is actually less than 1k in size.

Remember, if you use this preloader movie, that the movie you are loading should not contain any actionscript that references root (absolute references), this is bad practice anyway, you should always right code with relative references. The source is here, so you can change the graphics.

Embed this preloader in your HTML page using the following XHTML compliant object/embed markup (AKA Flash Satay):

<object type='application/x-shockwave-flash' data='generic%20preloader.swf?movie=yourFlashMovie.swf‘ width=’400‘ height=’300‘>
    <param name=’movie’ value=’generic%20preloader.swf?movie=yourFlashMovie.swf‘ />
</object>

Modify the items in bold above to reflect the state of the movie you want to load.



Note: This is an old article!

Please be aware that the content of this article may no longer be accurate and the links contained within could be broken.

Update Notifications

You can add our RSS feed to your favorite feed reader or recieve an email when a new article is posted by entering your email address below.

    Shu Player allows you to distribute your AIR Applications to users that dont have the AIR Runtime by converting them to standalone applications. Shu Player also adds more commands to do things like open external applications etc…


    If you hate the Adobe Updater like most of us, then just get rid of it.


    Want to quickly find out what version of the Flash Player a client has installed? Send them to www.playerversion.com


    Yet more pv3d goodness. Im loving this funky 3D Flash Lab, the work of Mathieu Badimon. [Update: Apparently this uses Five3D not PaperVision]


    There is an old interview with me on The FWA, its fairly long at 8 pages.


    If you do alot of travelling then it makes sense to get yourself a Priority Pass, which will get you access to over 500 airport lounges worldwide, regardless of whether your flying enconomy, business or first.


    Freelance Switch is a freelancer community with forums, jobs, daily tips and a complete 212 page e-book titled “How to be a rockstar freelancer” for sale.


    Lots of new media jobs at Creative Pool.


    BBC IPlayer is awesome, but its ashame that BBC News is still using Windows Media Player and Real video. Real player is officially badware.


More In Actionscript


More In Adobe Flash


More In Freelancing