Classed stage objects with empty library

If you wish to read the original article instead of this one which I am archiving for my own reference as I keep scrambling for the link everytime I try to refer to, then head over to Peter Hall’s post on How to create classed stage objects with an empty library? Below is the reproduction of my friend, Peter Hall’s article;

Some time back, Peter Hall reported that every class is associated with a library symbol. This means that every class has a corresponding library symbol with a predictable linkage name derived from the full class name. So, we can simply include a component without adding a symbol to the library. Well this help prevent tightly coupling your class codes from your FLA.

Continue reading

Sorta powerpoint in Flash

I was reading Peter’s blog and saw a link to one of the clipping from FFNYC 2003, look at the clipping at first, second and the third. It is sorta “Flashed” Powerpoint. While you are there, take a look at Breeze Live demo showing its screen sharing and powerpoint slide sharing capability on this clipping.

Dynamic background color

Peter Hall posted a solution to setting the background color using Actionscript, actually drawing a rectangle on the background below any other elements on the document. Someone on the Macromedia Flash Forum re-iterated that question, so I thought some of you may still would like to have a look at a modified version.

This one will only fill the viewable stage and not the whole maximum allowable space of 5760 px of the Flash Document Scene.

//define a var for sh and sw
//let us add 2 px each as flash eats them
//in the Stage Object from the actual flash dimension
var sh = Stage.height + 4;
var sw = Stage.width + 4;
var rp = 0; //let us have a start point
trace("stage height = " + sh + "& stage width = " + sw + " in pixels");
setBG = function (col) {
 with (_level0) {
  if (col != undefined) {
   moveTo(rp, rp);
   lineTo(sw, rp);
   lineTo(sw, sh);
   lineTo(rp, sh);
 this.__bg__ = col;
getBG = function () {
 return this.__bg__;
Stage.addProperty("bgColor", getBG, setBG);
delete setBG;
delete getBG;

Stage.bgColor = 0x0000ff;

That’s it.