var Class = { create : function() { var properties = arguments[0]; function self() { this.initialize.apply(this, arguments); } for(var i in properties) { self.prototype[i] = properties[i]; } if(!self.prototype.initialize) { self.prototype.initialize = function() {}; } return self; } }; var Bitmap = Class.create({ initialize : function(source, context) { this.bitmapData = new Image(); this.bitmapDa