A Visual Inspector for BulkLoader

Debugging BulkLoader usage just got easier.

A couple of weeks ago I exchanged a few emails with Chris O'Byrne. He was writing a loading lib for actionscritp and was taking some ideas and code from BulkLoader. The result is MultiLoader. I haven't look much into it, but one thing struck me. He created a visual inspector, a GUI that let's helps to understand what is being loaded. I thought this would be a nice addition to BulkLoader, mainly to help others debug and understand what BulkLoader is doing. As they say, good artists copy, great artists steal ;).

It ocurred to me that anything but the simplest interface would require a GUI toolkit. It made sense to do it in Flex.

It turns out that the inspector is very useful, and helped to visualize a few issues with BulkLoader my self. Here is what it looks like:

The inspector running

Since it uses Flex, you need to use it differently, depending on what your project is. If you are coding a Flex application, then just instanciate the BulkLoaderInspectorPanel, and you should be all set. If you are working on a regular (non-flex) project, you should load a compiled swf. But since flex apps have a very specific lifecycle, there are some steps you need to take. The easiest path is to just create a Bootstrapper (trunk/inspector/Bootstrapper.as). Just setup the path to the swf, and it should just work.

There a few visual adjustments to be made, but it's very useful as is. If you're into flex and would like to improve on it, patches are very welcome.

Note however, that since it compiles the entire flex framework, hence it has a big file size, it should only be used while debugging.

getting a third opinion

1.
Bear says at

This is cool! I'd wanna try this thx for work

2.
Chris O'Byrne says at

Nice work! It looks good, and I'm glad you found inspiration from mine!

3.
Danilo says at

Pretty nice extension dude, i'd like to suggest another extension, which shows the images, videos, swfs, audio or anything else that can be displayed (audio can be shown as an small player), so you can kinda preview the loaded content, as well as other info about it.

4.
Arthur Debert says at

@Danilo:

That's a good idea... I'll save it for a future realse, thanks!

posted by
Arthur Debert

on

Tagged with:

5 comments so far.
Say something

Other months availabe in 2009

The complete blog archive

The latest entries

Subscribe to comments on this entry: rss feed

Cloud me:
  • Saurabh in Loading Reloaded on

    Brilliant brilliant class. Takes the preloader pain away. Thanks Arthur.

    For anyone else struggling with the infamous null Object errors when loading swfs via Bulkloader, here's something basic you could ...

  • Fernando in Loading Reloaded on

    Hi, Arthur!

    I just want to let you know that I added Bulk Loader to my site called AS3GameGears (http://www.as3gamegears.com/).

    I am using it on one of our projects. ...

  • Nitin Sharma in Loading Reloaded on

    Hi Junio Vitorino, I am facing the same problem. Can you please tell me, how did you solve this.

    1046: Type was not found or was not a compile-time constant: ...

  • slopps in AS3 Sad bits #1: Deep copying or cloning on

    Wow...good info. I cannot fathom how this was left out of AS3...so frustrating.

    To be clear, if a custom class extends MovieClip (or any DisplayObject) and you attempt to clone ...

  • Elmar Nieser in Maxhaus on

    Thanks for all the information!

    I wanted to show my Isometric Engine wich works pretty ok now thanks to all this info :)

    www.uber.nl <-- its just the engine so ...

Feeds: Entries rss feed Linksrss feed Worksrss feed

A Django joint. hosted on Slicehost