aye, Observer Pattern doth rock. I see your Observer Pattern and raise you Observer Pattern + Decorator Pattern..hrmmm...
heheheh nice work. (sigh) it annoys me that for years I spent time in a DHTML shunned world and now its finally getting some look-ins in terms of power - now i'm in FLEX ....kinda feels like a big ol waste of skillset. On Thu, 31 Mar 2005 14:45:43 +0200, Micha Schopman <[EMAIL PROTECTED]> wrote: > I uses a same technique (observer pattern) for my menu. You define > listeners within each button scope. Don't mind missing images.. this is > an older version :) > > http://www.mschopman.demon.nl/menu/ > http://www.mschopman.demon.nl/menu/config.xml > > observers = []; > function observer(){ > this.listeners = []; > observers.push(this); > } > observer.prototype.notify = function(){ > var i=this.listeners.length;while(i--){ > this.listeners[i].notify(); > } > } > observer.prototype.attach = function(oListener){ > this.listeners.push(oListener); > } > observer.prototype.detach = function(){ > > } > obsOnNodeSelect = new observer(); -- Regards, Scott Barnes http://www.mossyblog.com http://www.flexcoder.com (Coming Soon) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:200947 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

