Archive for March, 2007

Loading and Tracking Multiple Files at the Same Time (Part 2)

Friday, March 16th, 2007
ActionScript 2.0

Three weeks ago, I started a two-part series on using a MovieClipLoader instance in a custom class to track the loading of multiple external files at the same time. When we left off, our custom MultiLoader class was complete enough to provide a decent amount of convenience:  an addClip() method managed a specified external file, a target movie clip, and arbitrary event handlers; a loadClips() method set the mass download in motion.  In the final paragraph, I said I’d follow up with a way to report the total group load progress.  This is that follow-up.  Keep reading »

Dude, Where Do I Put My Code?

Thursday, March 8th, 2007
ActionScript 2.0 Flash

One of the recurring issues I see on the Adobe forums involves the “Statement must appear within on/onClipEvent handler” error, which is a baffling message if you don’t how what on or onClipEvent are — all the more so because, often as not, neither of those functions is necessary, as no events are being handled:  it’s just that the ActionScript has been typed or pasted into the wrong place.  I started a new series on Community MX that I hope will address this issue.  The first article is free.

Note, this is specifically an overview.  It doesn’t go into ActionScript syntax in any great detail — it’s not a how-to-program tutorial — but it should give newcomers a better understanding of the placement choices they have when experimenting with code.