Ramblings

June 15, 2008

Pure AS3 preloader

Filed under: as3, dev, flash, flashdevelop, flex, tip — michaelangela @ 12:09 am

Well I wasn’t making a game but I just went through what the author describes: finishing up the app, gotta set up the preloader. I did a manual version of this but I like this idea. However I am not using FlashDevelop. 😦 I am in the Flash IDE for compiling. I have thought of being able to just embed assets from Flash CS3 into a Flexbuilder / Flashdevelop AS3 project. And it seems to be becoming a popular thing to do.

gamepoetry » The Last Preloader You’ll Ever Need

Zero Effort Preloading

Based on the fundamentals established in the bit-101 article, I have
provided an AbstractPreloader class. You must subclass this class in
order to create a meaningful preloader for your game. These are the
steps required to get your preloader working:

  1. Extend the provided AbstractPreloader class.

  2. Override the following protected functions: beginLoading,
    updateLoading( percent ), endLoading. If your Main class is not called
    “Main”, then override the mainClassName function too.

  3. Embed the preloader with a single line of code.

  4. Be mindful of gotchas.

That’s it, really.

Advertisements

1 Comment »

  1. the cleanest way to do a pure as3 preloader is here:

    http://omar-fouad.net/blog/?p=69

    which follows the FlashDevelop “ActionScript 3 Project with Preloader” template.

    the only thing I do different than Omar is to name my Preloader class whatever my project is, so I get a WhateverProject.swf instead of another random Preloader.swf

    Comment by starpause — February 4, 2009 @ 11:52 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: